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

Fix glob pattern to work with Node 20 and its NPM version #8059

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Mar 8, 2024

We are upgrading all our Github workflows from Node 16 and Node 20, and noticed this broke E2E tests that install from NPM.

It seems sometime between Node 16 and Node 18 there may have been a bump in NPM version, and this NPM change has a difference in the way it handles glob patterns in the files field package.json. Previously we used the pattern "**/dist/" and it included any file in any dist folder under packages/firebase, but after the bump to Node 20 (and consequent NPM version bump) it only included package.json files, no js or ts files, basically removing the entry points to all modular versions of products.

When changed to "**/dist/**/*", it seems to work as it previously did.

If not fixed, this will break all releases.

@hsubox76 hsubox76 requested review from a team as code owners March 8, 2024 21:15
Copy link

changeset-bot bot commented Mar 8, 2024

🦋 Changeset detected

Latest commit: cf8c12b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
firebase Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

@google-oss-bot
Copy link
Contributor

@hsubox76 hsubox76 merged commit 2b22838 into master Mar 8, 2024
36 checks passed
@hsubox76 hsubox76 deleted the ch-npmfix branch March 8, 2024 22:42
@google-oss-bot google-oss-bot mentioned this pull request Mar 11, 2024
@firebase firebase locked and limited conversation to collaborators Apr 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants