Skip to content

Commit

Permalink
chore: enable NODE_ENV=production for prepublishOnly
Browse files Browse the repository at this point in the history
Use cross-env for cross-platform compat. This does not mean other scripts work across platforms, but we should move in that direction.
  • Loading branch information
boneskull committed Aug 2, 2023
1 parent 598b40d commit 9b9495d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 34 deletions.
52 changes: 19 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@metamask/eslint-config-nodejs": "^11.0.1",
"ava": "^5.2.0",
"conventional-changelog-conventionalcommits": "^6.1.0",
"cross-env": "^7.0.3",
"depcheck": "^1.4.0",
"eslint": "^8.40.0",
"eslint-plugin-ava": "^13.2.0",
Expand All @@ -32,7 +33,7 @@
"lint:staged": "lint-staged",
"lint:commit": "commitlint",
"postinstall": "husky install",
"prepublishOnly": "npm run rebuild && npm run test:prep && npm run test",
"prepublishOnly": "cross-env NODE_ENV=production npm run rebuild && npm run test:prep && npm run test",
"publish": "lerna publish",
"setup": "allow-scripts"
},
Expand Down

0 comments on commit 9b9495d

Please sign in to comment.