From 07bbf671a41fe6eced03b90ce612ae7fa7c38a5a Mon Sep 17 00:00:00 2001 From: danrevah Date: Wed, 8 Feb 2017 11:32:44 +0200 Subject: [PATCH] Bug(#24): Fix mapping bug --- package.json | 4 ++-- tsconfig-aot.json | 29 +++++++++++++++++++++++++++++ tsconfig.json | 5 +---- 3 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 tsconfig-aot.json 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 - } + ] }