Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only update
package-lock.json
when running changeset version script (…
…#2506) #2489 broke the `Release` CI with an error that `patch-package` couldn't be found when running `changeset-version.js`. It looks like the `npm install` script in `changeset-version.js` is only installing production dependencies. Moving `patch-package` to `dependencies` leads to another error that `ink` cannot be found to apply the patch to. However, the only reason we run `npm install` here is to update `package-lock.json`, so we don't need to be running `postinstall` scripts. Therefore, this PR adds the `--package-lock-only` flag. See https://docs.npmjs.com/cli/v9/commands/npm-install.
- Loading branch information