Skip to content

Commit

Permalink
fix(Karma):
Browse files Browse the repository at this point in the history
Fixing 'import package.json' issue with Karma
  • Loading branch information
andreasonny83 committed Jun 6, 2017
1 parent 86fb944 commit be8f038
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as pkg from '../../package.json';
const pkg = require('../../package.json');

export const environment = {
production: true,
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as pkg from '../../package.json';
const pkg = require('../../package.json');

export const environment = {
production: false,
Expand Down
6 changes: 0 additions & 6 deletions src/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit be8f038

Please sign in to comment.