Skip to content

Commit

Permalink
package.json should not be a relative import because paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
diminishedprime committed Jul 19, 2019
1 parent 65a44c9 commit 1141f74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as path from 'path';

export const PWD = process.cwd();
// tslint:disable-next-line
export const packageJSON = require('../package.json');
export const packageJSON = require(path.join(__dirname, '..', 'package.json'));

0 comments on commit 1141f74

Please sign in to comment.