Use jsonc-parser instead of LKG compiler in build

Profiling the build roughly half of the time spent loading the
build is spent importing typescript.js, for this one function.

Since this stack is already adding required devDependencies, switch
readJson to use jsonc-parser (published by the VS Code team), rather
than importing the entire LKG typescript.js library.
This commit is contained in:
Jake Bailey
2022-10-08 17:07:26 -07:00
parent d0db80e5c1
commit 394c4ae68b
3 changed files with 16 additions and 37 deletions

View File

@@ -70,6 +70,7 @@
"fs-extra": "^9.1.0",
"glob": "latest",
"hereby": "^1.6.4",
"jsonc-parser": "^3.2.0",
"minimist": "latest",
"mkdirp": "latest",
"mocha": "latest",