feat: add swc to complie

This commit is contained in:
Innei
2023-09-05 22:10:11 +08:00
parent 52b16b3396
commit d23f71ade0
3 changed files with 448 additions and 319 deletions

View File

@@ -2,6 +2,7 @@
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"builder": "swc",
"plugins": []
}
}

View File

@@ -22,7 +22,7 @@
"repl": "npm run start -- --entryFile repl",
"bundle": "rimraf out && npm run build && cd dist/src && npx ncc build main.js -o ../../out -m -t && cd ../.. && chmod +x out/index.js",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"packages/**/*.ts\"",
"start": "cross-env NODE_ENV=development nest start -w --path tsconfig.json -- ",
"start": "cross-env NODE_ENV=development nest start -w --type-check --path tsconfig.json -- ",
"start:debug": "cross-env NODE_ENV=development nest start --debug --watch",
"start:cluster": "cross-env NODE_ENV=development nest start --watch -- --cluster --workers 2",
"start:prod": "cross-env NODE_ENV=production node dist/src/main",
@@ -127,6 +127,7 @@
"@nestjs/cli": "10.1.17",
"@nestjs/schematics": "10.0.2",
"@nestjs/testing": "10.2.4",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.82",
"@types/babel__core": "7.20.1",
"@types/bcrypt": "5.0.0",

763
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff