Update ts.js
This commit is contained in:
parent
29ab1468a6
commit
d2e8a4c02e
4
ts.js
4
ts.js
@ -48,7 +48,7 @@ function clean(filePaths, done) {
|
|||||||
* @param {function(Error)} done
|
* @param {function(Error)} done
|
||||||
*/
|
*/
|
||||||
function compile(filePaths, done) {
|
function compile(filePaths, done) {
|
||||||
if (isTest) return done(null);
|
if (isTest) return done(null);
|
||||||
var execPath = path.join(__dirname, 'node_modules/.bin/tsc');
|
var execPath = path.join(__dirname, 'node_modules/.bin/tsc');
|
||||||
var options = '--declaration --module CommonJS --noImplicitAny --outDir dist';
|
var options = '--declaration --module CommonJS --noImplicitAny --outDir dist';
|
||||||
childProcess.exec([execPath, options].concat(filePaths).join(' '), function(err, stdout) {
|
childProcess.exec([execPath, options].concat(filePaths).join(' '), function(err, stdout) {
|
||||||
@ -89,4 +89,4 @@ function read(done) {
|
|||||||
var filePaths = [];
|
var filePaths = [];
|
||||||
while ((matches = expression.exec(contents))) filePaths.push(matches[1]);
|
while ((matches = expression.exec(contents))) filePaths.push(matches[1]);
|
||||||
done(null, filePaths);
|
done(null, filePaths);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user