Skip to content
This repository was archived by the owner on Apr 10, 2021. It is now read-only.

Commit 51ae11f

Browse files
author
John Bouvier
committed
Fixed .json import
1 parent 1aa5237 commit 51ae11f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ng": "ng",
77
"start": "npm run build.electron && node tools/process-manager.js",
88
"build": "ng build --prod --base-href=\"./\" && npm run build.electron",
9-
"build.electron": "tsc --lib es2018,dom --outDir dist/bridge --experimentalDecorators src/electron.ts",
9+
"build.electron": "tsc --resolveJsonModule --lib es2018,dom --outDir dist/bridge --experimentalDecorators src/electron.ts",
1010
"build.all": "npm run build && npm run package.win && npm run package.mac && npm run package.linux",
1111
"prod": "npm run build && electron ./dist/bridge",
1212
"test": "ng test",

src/assets/electron/ipc/request-version.ipc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Import package for versioning
2-
const pkg = require('../../../package.json');
2+
import * as pkg from '../../../package.json';
33

44
import { IpcMainHandler, IpcMainHandlerClass, IpcMessageEvent } from '../shared/ipc-main-handler';
55

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"declaration": false,
88
"module": "es2015",
99
"moduleResolution": "node",
10+
"resolveJsonModule": true,
1011
"emitDecoratorMetadata": true,
1112
"experimentalDecorators": true,
1213
"importHelpers": true,

0 commit comments

Comments
 (0)