diff --git a/.config/bundle-system.js b/.config/bundle-system.js index 3867b37a7f..b34a051a71 100755 --- a/.config/bundle-system.js +++ b/.config/bundle-system.js @@ -22,9 +22,9 @@ const targetFolder = path.resolve('./bundles'); async.waterfall([ cleanBundlesFolder, getSystemJsBundleConfig, - buildSystemJs({minify: false, sourceMaps: true, mangle: false}), + buildSystemJs({minify: false, sourceMaps: true, mangle: false, noEmitHelpers: false, declaration: true}), getSystemJsBundleConfig, - buildSystemJs({minify: true, sourceMaps: true, mangle: false}), + buildSystemJs({minify: true, sourceMaps: true, mangle: false, noEmitHelpers: false, declaration: true}), gzipSystemJsBundle ], err => { if (err) { diff --git a/package.json b/package.json index c2681895e9..f7297d39ad 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "flow.docs": "npm run typedoc -- --exclude '**/*.spec.ts' ./components/", "flow.install:typings": "./node_modules/.bin/typings install", "flow.compile": "npm run flow.install:typings && npm run flow.compile:common && npm run flow.compile:system", - "flow.compile:common": "./node_modules/.bin/tsc -d", + "flow.compile:common": "./node_modules/.bin/tsc -p tsconfig.publish.json", "flow.compile:system": "./.config/bundle-system.js", "flow.copy:src": "./node_modules/.bin/cpy ng2-bootstrap.ts \"components/*.ts\" ts --parents", "flow.clean": "./node_modules/.bin/del bundles coverage demo-build typings \"components/**/*.+(js|d.ts|js.map)\" dist \"ng2-bootstrap.+(js|d.ts|js.map)\"", diff --git a/tsconfig.publish.json b/tsconfig.publish.json new file mode 100644 index 0000000000..252e8305f8 --- /dev/null +++ b/tsconfig.publish.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "sourceMap": true, + "noEmitHelpers": false, + "noImplicitAny": true, + "declaration": true + }, + "exclude": [ + "node_modules" + ], + "files": [ + "./typings/index.d.ts", + "./demo/custom-typings.d.ts", + "./ng2-bootstrap.ts" + ] +}