Skip to content

Commit

Permalink
Bug fix: add buildUtils script to package.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
gutomarzagao committed Apr 20, 2018
1 parent d54878c commit fb1d768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { execSync } = require('child_process')
const utils = require('../lib/utils')
const packageJsonPath = path.resolve(utils.getRootPath(), 'package.json')

if (!fs.existsSync(packageJsonPath)) {
if (fs.existsSync(packageJsonPath)) {
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'))
packageJson.scripts = packageJson.scripts || {}
packageJson.scripts.buildUtils = 'buildUtils'
Expand Down

0 comments on commit fb1d768

Please sign in to comment.