Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use builder swc #1601

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"target": "es2020",
"keepClassNames": true,
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
}
},
"sourceMaps": true,
"minify": false,
"module": {
"type": "commonjs",
"noInterop": true
}
}
6 changes: 5 additions & 1 deletion example/nest-cli.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"collection": "@nestjs/schematics",
"sourceRoot": "src"
"sourceRoot": "src",
"compilerOptions": {
"builder": "swc",
"typeCheck": true
}
}
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"clean": "rimraf dist",
"lint": "tsc -p . --noEmit",
"start": "nest start",
"start:dev": "nest start --watch",
"start:dev": "nest start -b swc --type-check --watch",
"test": "jest"
},
"dependencies": {
Expand Down
5,051 changes: 2,413 additions & 2,638 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@
"devDependencies": {
"@9renpoto/tsconfig": "^7.6.0",
"@nestjs/testing": "^10.3.0",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.67",
"@swc/jest": "^0.2.26",
"@types/jest": "^29.5.11",
"husky": "^8.0.3",
"jest": "^29.5.0",
"jest-mock-extended": "^3.0.5",
"lint-staged": "^15.2.0",
"ts-jest": "^29.1.0"
"lint-staged": "^15.2.0"
},
"jest": {
"preset": "ts-jest",
"transform": {
"^.+\\.(t|j)s?$": [
"@swc/jest"
]
},
"collectCoverage": true,
"collectCoverageFrom": [
"packages/*/src/*.ts"
Expand Down
1 change: 0 additions & 1 deletion packages/nestjs-firebase/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"outDir": "./lib",
"noEmit": false
},
"exclude": ["node_modules", "**/*.spec.ts", "dist"],
"include": ["src"]
}
1 change: 0 additions & 1 deletion packages/nestjs-graphql-relay/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"outDir": "./lib",
"noEmit": false
},
"exclude": ["node_modules", "dist"],
"include": ["src"]
}
1 change: 0 additions & 1 deletion packages/nestjs-slack-webhook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"outDir": "./lib",
"noEmit": false
},
"exclude": ["node_modules", "dist"],
"include": ["src"]
}
Loading