From 6e80361cb0af379f5d3adc2ba7dbcd3c00a05c98 Mon Sep 17 00:00:00 2001 From: Oleg Chirukhin Date: Thu, 10 Mar 2016 20:37:17 +0600 Subject: [PATCH] change invocation of tsb.create(string) to tsb.create(require(string)) for typescript example --- node-express-typescript/gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-express-typescript/gulpfile.js b/node-express-typescript/gulpfile.js index a5234fd..5011570 100644 --- a/node-express-typescript/gulpfile.js +++ b/node-express-typescript/gulpfile.js @@ -59,7 +59,7 @@ gulp.task('nodemon', function (cb) { }); // TypeScript build for /src folder, pipes in .d.ts files from typings folder -var tsConfigSrc = tsb.create('src/tsconfig.json'); +var tsConfigSrc = tsb.create(require('./src/tsconfig.json')); gulp.task('build', function () { return gulp.src(['typings/**/*.ts', 'src/**/*.ts']) .pipe(tsConfigSrc()) @@ -68,7 +68,7 @@ gulp.task('build', function () { // TypeScript build for /tests folder, pipes in .d.ts files from typings folder // as well as the src/tsd.d.ts which is referenced by tests/tsd.d.ts -var tsConfigTests = tsb.create('tests/tsconfig.json'); +var tsConfigTests = tsb.create(require('./tests/tsconfig.json')); gulp.task('buildTests', function () { // pipe in all necessary files return gulp.src(['typings/**/*.ts', 'tests/**/*.ts', 'src/tsd.d.ts'])