diff --git a/package.json b/package.json index 03e52ef4..7e6ff1e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-pipes", - "version": "1.4.0", + "version": "1.4.1", "author": "Dan Revah", "description": "Useful angular2 pipes", "license": "MIT", @@ -8,7 +8,7 @@ "scripts": { "start": "ng serve", "test": "ng test", - "build:js": "ngc -p tsconfig.json" + "build:js": "ngc -p tsconfig-aot.json" }, "main": "src/app/index.js", "keywords": [ diff --git a/tsconfig-aot.json b/tsconfig-aot.json new file mode 100644 index 00000000..126c8246 --- /dev/null +++ b/tsconfig-aot.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "declaration": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "noImplicitAny": true, + "sourceMap": true, + "lib": ["es6", "dom"], + "module": "commonjs", + "moduleResolution": "node", + "target": "es5", + "typeRoots": [ + "../node_modules/@types" + ] + }, + "include": [ + "src/app/pipes.module.ts", + "src/app/index.ts", + "index.ts" + ], + "exclude": [ + "node_modules", + "**/*.spec.ts" + ], + "angularCompilerOptions": { + "strictMetadataEmit": true, + "skipTemplateCodegen": true + } +} diff --git a/tsconfig.json b/tsconfig.json index 38f9c024..226f4df0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,8 +20,5 @@ "exclude": [ "node_modules", "**/*.spec.ts" - ], - "angularCompilerOptions": { - "strictMetadataEmit": true - } + ] }