Use require to load package json

This commit is contained in:
Kevin Sawicki 2016-07-06 14:19:47 -07:00
parent d42d10a47c
commit 88fe667f66

View file

@ -229,7 +229,7 @@ function loadApplicationPackage (packagePath) {
if (fs.existsSync(packageJsonPath)) {
let packageJson
try {
packageJson = JSON.parse(fs.readFileSync(packageJsonPath))
packageJson = require(packageJsonPath)
} catch (e) {
showErrorMessage(`Unable to parse ${packageJsonPath}\n\n${e.message}`)
return