mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 02:40:03 +00:00
Let typescript do the json resolution so we get proper types
Change-type: patch
This commit is contained in:
parent
5084c0c73f
commit
2a17184d32
@ -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;
|
||||
|
@ -8,10 +8,11 @@
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"strictNullChecks": true,
|
||||
"outDir": "./build/src/",
|
||||
"outDir": "./build/",
|
||||
"lib": [
|
||||
"es6"
|
||||
]
|
||||
],
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
|
5
typings/typings.d.ts
vendored
5
typings/typings.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
// Allow importing of json files with typescript
|
||||
declare module '*.json' {
|
||||
const value: { [key: string]: any };
|
||||
export default value;
|
||||
}
|
Loading…
Reference in New Issue
Block a user