diff --git a/src/lib/supervisor-version.ts b/src/lib/supervisor-version.ts index 8a3a522e..6d95b797 100644 --- a/src/lib/supervisor-version.ts +++ b/src/lib/supervisor-version.ts @@ -1,7 +1,8 @@ import * as _ from 'lodash'; import * as packageJson from '../../package.json'; -let version = (packageJson as any).version; +let version = packageJson.version; + const tagExtra = process.env.SUPERVISOR_TAG_EXTRA; if (!_.isEmpty(tagExtra)) { version += '+' + tagExtra; diff --git a/tsconfig.json b/tsconfig.json index c7e0a7db..069a9f14 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,10 +8,11 @@ "removeComments": true, "sourceMap": true, "strictNullChecks": true, - "outDir": "./build/src/", + "outDir": "./build/", "lib": [ "es6" - ] + ], + "resolveJsonModule": true }, "include": [ "src/**/*.ts", diff --git a/typings/typings.d.ts b/typings/typings.d.ts deleted file mode 100644 index 82bb19a3..00000000 --- a/typings/typings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Allow importing of json files with typescript -declare module '*.json' { - const value: { [key: string]: any }; - export default value; -}