refactor: use esbuild-register

This commit is contained in:
Il Harper 2024-03-09 20:41:26 +08:00
parent 9c6cea294c
commit b11abb564a
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC
6 changed files with 7 additions and 18 deletions

View File

@ -4,11 +4,6 @@
'use strict'
require('ts-node').register({
scope: true,
scopeDir: __dirname,
swc: true,
transpileOnly: true,
})
require('esbuild-register/dist/node').register()
module.exports = require('./config').config

View File

@ -30,11 +30,9 @@
"@swc/core": "^1.3.78",
"concurrently": "^8.2.1",
"docusaurus-plugin-sass": "^0.2.5",
"esbuild-register": "^3.5.0",
"raw-loader": "^4.0.2",
"sass": "^1.66.1",
"tosource": "^2.0.0-alpha.3",
"ts-node": "^10.9.1",
"typescript": "~5.1.0"
"sass": "^1.66.1"
},
"browserslist": {
"production": [

View File

@ -24,11 +24,10 @@
"@satorijs/element": "^2.5.1",
"@types/mime": "^3.0.1",
"concurrently": "^8.2.1",
"esbuild-register": "^3.5.0",
"ipcman": "^0.1.3",
"mime": "^3.0.0",
"node-fetch": "^3.3.2",
"tosource": "^2.0.0-alpha.3",
"ts-node": "^10.9.1",
"ts-toolbelt": "^9.6.0",
"typescript": "~5.1.0"
}

View File

@ -23,10 +23,9 @@
"@chronocat/shell": "workspace:packages/shell",
"@satorijs/element": "^2.5.1",
"concurrently": "^8.2.1",
"esbuild-register": "^3.5.0",
"ipcman": "^0.1.3",
"node-fetch": "^3.3.2",
"tosource": "^2.0.0-alpha.3",
"ts-node": "^10.9.1",
"ts-toolbelt": "^9.6.0",
"typescript": "~5.1.0"
}

View File

@ -27,8 +27,7 @@
},
"devDependencies": {
"concurrently": "^8.2.1",
"tosource": "^2.0.0-alpha.3",
"ts-node": "^10.9.1",
"esbuild-register": "^3.5.0",
"ts-toolbelt": "^9.6.0",
"typescript": "~5.1.0"
}

View File

@ -32,12 +32,11 @@
"busboy": "^1.6.0",
"bytenode": "^1.5.3",
"concurrently": "^8.2.1",
"esbuild-register": "^3.5.0",
"js-yaml": "^4.1.0",
"logiri": "^0.1.2",
"node-fetch": "^3.3.2",
"protobufjs": "^7.2.5",
"tosource": "^2.0.0-alpha.3",
"ts-node": "^10.9.1",
"ts-toolbelt": "^9.6.0",
"typescript": "~5.1.0",
"typescript-json-schema": "^0.61.0",