feat: add ts-node

This commit is contained in:
JimmFly
2023-01-11 15:27:45 +08:00
parent dae7f99fe8
commit 98692ba790
2 changed files with 97 additions and 2 deletions

View File

@@ -11,9 +11,9 @@
},
"scripts": {
"build": "tsc --project ./tsconfig.json",
"sync-languages": "NODE_OPTIONS=--experimental-fetch ts-node src/scripts/sync.ts",
"sync-languages": "NODE_OPTIONS=--experimental-fetch ts-node-esm src/scripts/sync.ts",
"sync-languages:check": "pnpm run sync-languages --check",
"download-resources": "NODE_OPTIONS=--experimental-fetch ts-node src/scripts/download.ts"
"download-resources": "NODE_OPTIONS=--experimental-fetch ts-node-esm src/scripts/download.ts"
},
"keywords": [],
"repository": {
@@ -27,6 +27,7 @@
},
"devDependencies": {
"@types/prettier": "^2.7.2",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
}
}