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 Nov 11, 2023
1 parent 6e41a29 commit be9a760
Show file tree
Hide file tree
Showing 8 changed files with 2,489 additions and 2,698 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
}
}
3 changes: 2 additions & 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 All @@ -19,6 +19,7 @@
"@nestjs/apollo": "^12.0.0",
"@nestjs/cli": "^10.0.0",
"@nestjs/config": "^3.0.0",
"@nestjs/graphql": "^12.0.7",
"@nestjs/platform-fastify": "^10.0.0",
"nestjs-firebase": "^10.0.0",
"nestjs-graphql-relay": "^10.0.0",
Expand Down
Loading

0 comments on commit be9a760

Please sign in to comment.