Skip to content

Commit 179176c

Browse files
authored
fix: Update package.json build script to use yarn instead of npm. (outline#1476)
* fix: Update package.json build script to yarn. Update package.json build script to use yarn instead of npm to maintain consistency with the rest of scripts. I was running into an issue with the Dockerfile when using nvm with yarn and this fixed the issue.
1 parent c446a91 commit 179176c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
"clean": "rimraf dist",
77
"build:webpack": "NODE_ENV=production webpack --config webpack.config.prod.js",
88
"build:analyze": "NODE_ENV=production webpack --config webpack.config.prod.js --json > stats.json",
9-
"build": "npm run clean && npm run build:webpack",
9+
"build": "yarn clean && yarn build:webpack",
1010
"start": "NODE_ENV=production node index.js",
1111
"dev": "NODE_ENV=development nodemon --watch server index.js",
1212
"lint": "eslint app server shared",
1313
"flow": "flow",
1414
"deploy": "git push heroku master",
15-
"heroku-postbuild": "npm run build && npm run sequelize:migrate",
15+
"heroku-postbuild": "yarn build && yarn sequelize:migrate",
1616
"sequelize:create-migration": "sequelize migration:create",
1717
"sequelize:migrate": "sequelize db:migrate",
18-
"test": "npm run test:app && npm run test:server",
18+
"test": "yarn test:app && yarn test:server",
1919
"test:app": "jest",
2020
"test:server": "jest --config=server/.jestconfig.json --runInBand --forceExit",
2121
"test:watch": "jest --config=server/.jestconfig.json --runInBand --forceExit --watchAll"
@@ -191,4 +191,4 @@
191191
"js-yaml": "^3.13.1"
192192
},
193193
"version": "0.46.0"
194-
}
194+
}

0 commit comments

Comments
 (0)