From 4ffb901982c89075ed48c78f5c79695dc5ee10d4 Mon Sep 17 00:00:00 2001 From: Jason Blackburn Date: Wed, 18 Apr 2018 15:15:56 -0500 Subject: [PATCH] fix: #2 generate missing metadata.json files --- .gitignore | 1 - package.json | 2 +- tsconfig.json | 20 ++++++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index 8ef8f111..4ffce110 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store package-lock.json -tsconfig.json # Folders to ignore node_modules diff --git a/package.json b/package.json index f53aa066..e3448d24 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "zone.js": "0.8.20" }, "scripts": { - "compile": "node_modules/.bin/ngc -p src/tsconfig.json", + "compile": "node_modules/.bin/ngc -p tsconfig.json", "dist": "npm run compile && npm run lint && npm run htmlcopy && npm run jsoncopy", "htmlcopy": "copyfiles -u 1 src/**/*.html dist", "jsoncopy": "copyfiles -u 1 src/package.json dist", diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..ecd9ee40 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "outDir": "./temp/out-tsc", + "sourceMap": true, + "declaration": true, + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "target": "es5", + "module": "es6", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es6", + "dom" + ] + } +}