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: avoid modifying singleton variable #210

Merged
merged 1 commit into from Jan 3, 2024
Merged

fix: avoid modifying singleton variable #210

merged 1 commit into from Jan 3, 2024

Conversation

mohd-akram
Copy link
Contributor

No description provided.

@mohd-akram mohd-akram requested a review from a team as a code owner December 8, 2023 18:07
@@ -9,7 +9,7 @@ const packlist = require('../')
const pkg = t.testdir({
'package.json': JSON.stringify({
files: [
'**/*.js',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What code path is this change testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same code path. This glob wasn't sufficient to trigger the test case, as it implicitly excludes the non-root readme/license files already.

@wraithgar wraithgar changed the title fix: avoid modifying global variable fix: avoid modifying singleton variable Dec 8, 2023
@wraithgar
Copy link
Member

🤦 good catch. Things are going to slow down this month so it may be a little while till we can do a full review on this. Probably January.

@wraithgar wraithgar merged commit 837af58 into npm:main Jan 3, 2024
26 checks passed
@github-actions github-actions bot mentioned this pull request Jan 3, 2024
@mohd-akram mohd-akram deleted the fix-global-var branch January 3, 2024 16:35
wraithgar pushed a commit that referenced this pull request Jan 8, 2024
🤖 I have created a release *beep* *boop*
---


## [8.0.2](v8.0.1...v8.0.2)
(2024-01-03)

### Bug Fixes

*
[`728d68a`](728d68a)
[#214](#214) handling of
directory glob (#214) (@mohd-akram)
*
[`837af58`](837af58)
[#210](#210) avoid modifying
singleton variable (#210) (@mohd-akram)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

None yet

2 participants