diff --git a/index.js b/index.js index 4edf640..35b26c2 100644 --- a/index.js +++ b/index.js @@ -172,7 +172,8 @@ var NpmtsCompile; .pipe(plugins.g.typescript({ out: outputName, declaration: true, - target: "ES5" + target: "ES5", + module: "commonjs" })); var stream = plugins.mergeStream([ tsStream.dts.pipe(plugins.gulp.dest(outputDir)), diff --git a/ts/npmts.compile.ts b/ts/npmts.compile.ts index d8fc779..e28a7b0 100644 --- a/ts/npmts.compile.ts +++ b/ts/npmts.compile.ts @@ -72,7 +72,8 @@ module NpmtsCompile { .pipe(plugins.g.typescript({ out: outputName, declaration: true, - target: "ES5" + target: "ES5", + module: "commonjs" })); var stream = plugins.mergeStream([ tsStream.dts.pipe(plugins.gulp.dest(outputDir)),