diff --git a/src/app/app.component.e2e-spec.ts b/src/app/app.component.e2e-spec.ts index cea8e72..c4d3d3f 100644 --- a/src/app/app.component.e2e-spec.ts +++ b/src/app/app.component.e2e-spec.ts @@ -1,6 +1,6 @@ import { browser, element, by } from 'protractor'; import { Utils } from '../app.utils.e2e'; -import * as pkg from '../../package.json'; +const pkg = require('../../package.json'); describe('Online Board App', () => { let utils: Utils; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index cac7f5e..70e1a2f 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,4 +1,4 @@ -import * as pkg from '../../package.json'; +const pkg = require('../../package.json'); export const environment = { production: true, diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 4e3f6aa..cb6786b 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -1,4 +1,4 @@ -import * as pkg from '../../package.json'; +const pkg = require('../../package.json'); export const environment = { production: false, diff --git a/src/typings.d.ts b/src/typings.d.ts index c0f0ae3..8ca23e3 100644 --- a/src/typings.d.ts +++ b/src/typings.d.ts @@ -3,9 +3,3 @@ declare var module: NodeModule; interface NodeModule { id: string; } - -declare module '*package.json' { - export const name: string; - export const version: string; - export const homepage: string; -}