Skip to content

Commit

Permalink
Add bump:eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jul 20, 2023
1 parent 7ae229f commit b9dc6b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"license": "MIT",
"scripts": {
"build": "cd packages/use-memo-map && npm run build",
"bump": "npm run bump:prod && npm run bump:dev && npm run bump:auditfix && npm run bump:packages",
"bump": "npm run bump:prod && npm run bump:dev && npm run bump:auditfix && npm run bump:packages && npm run bump:eslintrc",
"bump:auditfix": "npm audit fix || exit 0",
"bump:dev": "if [ `cat package.json | jq -r '(.devDependencies // {}) | length'` -ne 0 ]; then npm install $(cat package.json | jq -r '(.pinDependencies // {}) as $p | ((.devDependencies // {}) | keys) | map(. + \"@\" + ($p[.] // [\"latest\"])[0]) | .[]'); fi",
"bump:eslintrc": "if [ -f packages/use-memo-map/node_modules/react/package.json ]; then REACT_VERSION=`cat packages/use-memo-map/node_modules/react/package.json | jq -r '.version'` sh -c 'cat .eslintrc.yml | docker run -i --rm mikefarah/yq \".settings.react.version = \\\"$REACT_VERSION\\\"\" > .eslintrc.yml.tmp && mv .eslintrc.yml.tmp .eslintrc.yml'; fi",
"bump:packages": "npm run bump:packages:main && npm run bump:packages:integration-test",
"bump:packages:integration-test": "cd packages/integration-test && npm run bump",
"bump:packages:main": "cd packages/use-memo-map && npm run bump",
Expand Down

0 comments on commit b9dc6b7

Please sign in to comment.