Skip to content

Commit d2b6b92

Browse files
committed
refactor: modify way of parsing tsconfig.json
1 parent 6e22085 commit d2b6b92

5 files changed

Lines changed: 272 additions & 361 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
"node-gyp": "^8.4.1",
7878
"npm": "^6.13.4",
7979
"oracledb": "^4.2.0",
80-
"param-case": "^3.0.4",
8180
"passport": "^0.5.2",
8281
"passport-google-oauth": "^2.0.0",
8382
"path-platform": "^0.11.15",
@@ -101,6 +100,7 @@
101100
"the-answer": "^1.0.0",
102101
"tiny-json-http": "^7.0.2",
103102
"ts-loader": "^8.3.0",
103+
"tsconfck": "^1.2.2",
104104
"tsconfig-paths": "^3.7.0",
105105
"tsconfig-paths-webpack-plugin": "^3.2.0",
106106
"twilio": "^3.23.2",

src/cli.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,9 @@ async function runCmd (argv, stdout, stderr) {
346346
}
347347
}
348348
if (args["--watch"]) {
349-
ncc.handler(handler);
350-
ncc.rebuild(() => {
349+
const nccWithWatchOption = await ncc
350+
nccWithWatchOption.handler(handler);
351+
nccWithWatchOption.rebuild(() => {
351352
if (ps)
352353
ps.kill();
353354
startTime = Date.now();

0 commit comments

Comments
 (0)