Use tsc to build instead of swc (#4128)

This commit is contained in:
Fleny
2025-02-12 19:23:28 +01:00
committed by GitHub
parent e387f2cae2
commit 039c1945cc
20 changed files with 27 additions and 9301 deletions

View File

@@ -1,24 +0,0 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"target": "es2022",
"keepClassNames": true,
"loose": true
},
"module": {
"type": "es6",
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
}
}

View File

@@ -9,7 +9,7 @@
"packageManager": "yarn@4.6.0",
"scripts": {
"start": "node dist/index.js",
"build": "swc src --strip-leading-paths --delete-dir-on-start --out-dir dist"
"build": "tsc"
},
"dependencies": {
"@discordeno/bot": "20.0.0",
@@ -17,8 +17,6 @@
"dotenv": "^16.4.5"
},
"devDependencies": {
"@swc/cli": "^0.5.0",
"@swc/core": "^1.9.2",
"@types/node": "^22.9.0",
"typescript": "^5.6.3"
}

View File

@@ -6,6 +6,7 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"moduleResolution": "node",
"outDir": "dist",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"strict": true,

File diff suppressed because it is too large Load Diff

View File

@@ -1,24 +0,0 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"target": "es2022",
"keepClassNames": true,
"loose": true
},
"module": {
"type": "es6",
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
}
}

View File

@@ -9,7 +9,7 @@
"packageManager": "yarn@4.6.0",
"scripts": {
"start": "node dist/index.js",
"build": "swc src --strip-leading-paths --delete-dir-on-start --out-dir dist"
"build": "tsc"
},
"dependencies": {
"@discordeno/bot": "20.0.0",
@@ -18,8 +18,6 @@
"dotenv": "^16.4.5"
},
"devDependencies": {
"@swc/cli": "^0.5.0",
"@swc/core": "^1.9.2",
"@types/node": "^22.9.0",
"typescript": "^5.6.3"
}

View File

@@ -6,6 +6,7 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"moduleResolution": "node",
"outDir": "dist",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"strict": true,

File diff suppressed because it is too large Load Diff

View File

@@ -1,24 +0,0 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"target": "es2022",
"keepClassNames": true,
"loose": true
},
"module": {
"type": "es6",
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
}
}

View File

@@ -11,8 +11,8 @@
"start:bot": "node dist/bot/index.js",
"start:rest": "node dist/rest/index.js",
"start:gateway": "node dist/gateway/index.js",
"build": "swc src --strip-leading-paths --delete-dir-on-start --out-dir dist",
"build:watch": "swc src --strip-leading-paths --delete-dir-on-start --watch --out-dir dist",
"build": "tsc",
"build:watch": "tsc --watch",
"dev:bot": "node --watch --watch-preserve-output dist/bot/index.js",
"dev:rest": "node --watch --watch-preserve-output dist/rest/index.js",
"dev:gateway": "node --watch --watch-preserve-output dist/gateway/index.js"
@@ -27,8 +27,6 @@
"fastify": "^5.2.0"
},
"devDependencies": {
"@swc/cli": "^0.5.2",
"@swc/core": "^1.10.4",
"@types/amqplib": "^0.10.6",
"@types/node": "^22.10.2",
"chokidar": "^3.6.0",

View File

@@ -6,6 +6,7 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"moduleResolution": "node",
"outDir": "dist",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"strict": true,

File diff suppressed because it is too large Load Diff

View File

@@ -1,24 +0,0 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"target": "es2022",
"keepClassNames": true,
"loose": true
},
"module": {
"type": "es6",
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
}
}

View File

@@ -9,7 +9,7 @@
"packageManager": "yarn@4.6.0",
"scripts": {
"start": "node dist/index.js",
"build": "swc src --strip-leading-paths --delete-dir-on-start --out-dir dist"
"build": "tsc"
},
"dependencies": {
"@discordeno/bot": "20.0.0",
@@ -17,8 +17,6 @@
"dotenv": "^16.4.5"
},
"devDependencies": {
"@swc/cli": "^0.5.0",
"@swc/core": "^1.9.2",
"@types/node": "^22.9.0",
"typescript": "^5.6.3"
}

View File

@@ -6,6 +6,7 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"moduleResolution": "node",
"outDir": "dist",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"strict": true,

File diff suppressed because it is too large Load Diff

View File

@@ -1,24 +0,0 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"target": "es2022",
"keepClassNames": true,
"loose": true
},
"module": {
"type": "es6",
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
}
}

View File

@@ -8,15 +8,13 @@
"packageManager": "yarn@4.6.0",
"scripts": {
"start": "node dist/index.js",
"build": "swc src --strip-leading-paths --delete-dir-on-start --out-dir dist"
"build": "tsc"
},
"dependencies": {
"@discordeno/bot": "20.0.0",
"dotenv": "^16.4.5"
},
"devDependencies": {
"@swc/cli": "^0.5.0",
"@swc/core": "^1.9.2",
"@types/node": "^22.9.0",
"typescript": "^5.6.3"
}

View File

@@ -6,6 +6,7 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"moduleResolution": "node",
"outDir": "dist",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"strict": true,

File diff suppressed because it is too large Load Diff