Skip to content

Commit

Permalink
refactor: use esbuild-register
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Mar 9, 2024
1 parent 9c6cea2 commit b11abb5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 18 deletions.
7 changes: 1 addition & 6 deletions packages/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
3 changes: 1 addition & 2 deletions packages/engine-chronocat-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
3 changes: 1 addition & 2 deletions packages/engine-chronocat-event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
3 changes: 1 addition & 2 deletions packages/red/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
3 changes: 1 addition & 2 deletions packages/shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b11abb5

Please sign in to comment.