diff --git a/README.md b/README.md index af6449e6..9f6456b1 100644 --- a/README.md +++ b/README.md @@ -265,7 +265,7 @@ Contributions are always welcome, especially on open issues. If you have somethi ### Pull requests locally -- `PULL_REQUEST=472 && git fetch origin pull/$PULL_REQUEST/head:pr$PULL_REQUEST && git checkout pr$PULL_REQUEST` +- `PR=472 npm run checkout-pr` ### Release prerelease diff --git a/package.json b/package.json index e1a639e6..febfc6d4 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ }, "scripts": { "start": "webpack serve --config webpack.config.mjs --mode=development", + "checkout-pr": "git fetch origin pull/$PR/head:pr$PR && git checkout pr$PR", "start-external": "webpack serve --config webpack.config.mjs --mode=development --host 0.0.0.0", "build": "webpack --mode=production && webpack --mode=production --env minified && npm run buildes && npm run types", "buildes": "rollup --config rollup.config.mjs",