Skip to content

Commit

Permalink
feat: use builder swc
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Dec 23, 2023
1 parent 0c6992d commit f888d4b
Show file tree
Hide file tree
Showing 8 changed files with 2,451 additions and 2,646 deletions.
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"]
}

0 comments on commit f888d4b

Please sign in to comment.