From 29f3832d63a934a507fe3f57dbd5921e608870a3 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Wed, 17 Feb 2016 04:26:26 +0100 Subject: [PATCH] switch to commonjs module as default --- index.js | 3 ++- ts/npmts.compile.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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)),