Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: reinstall node_modules with npm 6 since we're not yet on npm 7 as an organization #307

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

adamstankiewicz
Copy link
Member

@adamstankiewicz adamstankiewicz commented Sep 3, 2021

A previous commit had installed node_modules using Node 14 and NPM 7. This caused the package-lock.json file to use lockfileVersion: 2 and means any time someone next installs node_modules using NPM 6, the package-lock.json file would revert back to using lockfileVersion: 1, as it does in this PR.

Our micro-frontends across the organization are still using Node 12 and NPM 6, so this PR handles that switch back to lockfileVersion: 1 as to not cause surprises why there are 25,000+ line changes in package-lock.json in future PRs even when no new packages are installed.

FWIW, the Frontend Working Group is currently gearing up to upgrade all our frontends to use Node 16 and NPM 7 as described in this issue, but until then we should stay using Node 12 and NPM 6.

@adamstankiewicz adamstankiewicz changed the title build: reinstall node_modules with npm 6 since were not yet on npm 7 as an organization build: reinstall node_modules with npm 6 since we're not yet on npm 7 as an organization Sep 3, 2021
@adamstankiewicz adamstankiewicz merged commit 80f46a6 into master Sep 3, 2021
@adamstankiewicz adamstankiewicz deleted the astankiewicz/revert-package-lock-npm-6 branch September 3, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants