Skip to content

Commit 690ab22

Browse files
committed
Fix build.js and update to TypeScript 1.7.5
1 parent 97226d7 commit 690ab22

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const watchMode = process.argv[2] === "-w";
88
const bundler = watchMode ? "watchify" : "browserify";
99
const watchArgs = watchMode ? [ "-w" ] : [];
1010

11-
spawn(`tsc${suffix}`, watchArgs.concat([ "-p", `${__dirname}/src` ]), spawnOptions);
1211
spawn(`jade${suffix}`, watchArgs.concat([ `${__dirname}/src/index.jade`, "--out", `${__dirname}/lib` ]), spawnOptions);
1312
spawn(`stylus${suffix}`, watchArgs.concat([ `${__dirname}/src/index.styl`, "--out", `${__dirname}/lib` ]), spawnOptions);
14-
spawn(`${bundler}${suffix}`, [ `${__dirname}/src/index.js`, "-s", "TreeView", "-o", `${__dirname}/lib/TreeView.js` ], spawnOptions);
13+
14+
spawn(`tsc${suffix}`, [ "-p", `${__dirname}/src` ], spawnOptions).on("close", () => {
15+
if (watchMode) spawn(`tsc${suffix}`, watchArgs.concat([ "-p", `${__dirname}/src` ]), spawnOptions);
16+
spawn(`${bundler}${suffix}`, [ `${__dirname}/src/index.js`, "-s", "TreeView", "-o", `${__dirname}/lib/TreeView.js` ], spawnOptions);
17+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"http-server": "~0.8.5",
2929
"jade": "~1.11.0",
3030
"stylus": "~0.53.0",
31-
"typescript": "1.6.2",
31+
"typescript": "~1.7.5",
3232
"watchify": "~3.7.0"
3333
}
3434
}

0 commit comments

Comments
 (0)