Added typescript-cached-transpile package to help improve performance

This commit is contained in:
Madeline 2022-01-08 17:22:44 +11:00
parent b131efca2e
commit e9393683fa
4 changed files with 7 additions and 4 deletions

View File

@ -17,6 +17,7 @@
"internalConsoleOptions": "openOnSessionStart", "internalConsoleOptions": "openOnSessionStart",
"env": { "env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsnode.tsconfig.json", "TS_NODE_PROJECT": "${workspaceFolder}/tsnode.tsconfig.json",
"TS_NODE_COMPILER": "typescript-cached-transpile"
}, },
"resolveSourceMapLocations": null, /* allow breakpoints in modules other than bundle */ "resolveSourceMapLocations": null, /* allow breakpoints in modules other than bundle */
}, },

BIN
bundle/package-lock.json generated

Binary file not shown.

View File

@ -93,6 +93,7 @@
"missing-native-js-functions": "^1.2.18", "missing-native-js-functions": "^1.2.18",
"morgan": "^1.10.0", "morgan": "^1.10.0",
"multer": "^1.4.2", "multer": "^1.4.2",
"nanocolors": "^0.2.12",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"node-os-utils": "^1.3.5", "node-os-utils": "^1.3.5",
"patch-package": "^6.4.7", "patch-package": "^6.4.7",
@ -105,8 +106,8 @@
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typeorm": "^0.2.37", "typeorm": "^0.2.37",
"typescript": "^4.1.2", "typescript": "^4.1.2",
"typescript-cached-transpile": "^0.0.6",
"typescript-json-schema": "^0.50.1", "typescript-json-schema": "^0.50.1",
"ws": "^7.4.2", "ws": "^7.4.2"
"nanocolors": "^0.2.12"
} }
} }

View File

@ -3,7 +3,8 @@
"ts-node": { "ts-node": {
"transpileOnly": true, "transpileOnly": true,
"preferTsExts": true, "preferTsExts": true,
"require": ["tsconfig-paths/register"] "require": ["tsconfig-paths/register"],
"compiler": "typescript-cached-transpile",
}, },
"compilerOptions": { "compilerOptions": {
"rootDir": "../", "rootDir": "../",