Skip to content

Commit

Permalink
🔧 Use swc for default compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ninthsun91 committed Jun 29, 2023
1 parent bb9dd18 commit b444074
Show file tree
Hide file tree
Showing 4 changed files with 597 additions and 19 deletions.
13 changes: 13 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": true,
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"baseUrl": "./"
},
"minify": false
}
4 changes: 3 additions & 1 deletion nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
"deleteOutDir": true,
"builder": "swc",
"typeCheck": true
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"@nestjs/cli": "^9.0.0",
"@nestjs/schematics": "^9.0.0",
"@nestjs/testing": "^9.0.0",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.67",
"@types/bcrypt": "^5.0.0",
"@types/express": "^4.17.13",
"@types/jest": "29.5.0",
Expand Down
Loading

0 comments on commit b444074

Please sign in to comment.