Skip to content

Conversation

@AmrDhaliwal
Copy link
Contributor

Fixed the bug that required a minimum node version by adding the engine field to package.json.

@Dexterp37
Copy link
Contributor

Hey @AmrDhaliwal , thank you for your PR and welcome!

This PR is currently failing our CI tests. Would you kindly check why that's happening? You can also run some tests locally with npm run test:core.

Copy link
Contributor Author

@AmrDhaliwal AmrDhaliwal left a comment

Choose a reason for hiding this comment

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

Removed an extra comma from line 103 in package.json in glean that was causing errors.

@AmrDhaliwal
Copy link
Contributor Author

Hi @Dexterp37,

It seems there was an extra comma that was causing the problems.
But, I removed it and all the tests are now passing!

Copy link
Contributor

@Dexterp37 Dexterp37 left a comment

Choose a reason for hiding this comment

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

Thanks for making the tests pass! I have one additional small request.

},
"engines": {
"node": ">=12.20.0",
"npm": ">7.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think what we really want is >= here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have gone ahead and made that change.

"uuid": "^8.3.2"
},
"engines": {
"node": ">=12.20.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you kindly add an entry to our CHANGELOG.md file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @Dexterp37,

I have added the bug as an entry into the CHANGELOG.md file.

Copy link
Contributor

@Dexterp37 Dexterp37 left a comment

Choose a reason for hiding this comment

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

We're almost there! Thanks again for this!

CHANGELOG.md Outdated

[Full changelog](https://github.com/mozilla/glean.js/compare/v0.10.2...main)

* [#260](https://github.com/mozilla/glean.js/pull/260): Set minimum node version to "node": ">=12.0.0".
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* [#260](https://github.com/mozilla/glean.js/pull/260): Set minimum node version to "node": ">=12.0.0".
* [#260](https://github.com/mozilla/glean.js/pull/260): Set minimum node (>= 12.0.0) and npm (>= 7.0.0) versions.

},
"engines": {
"node": ">=12.20.0",
"npm": ">7.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please run npm i --package-lock-only to update the lock file

@AmrDhaliwal
Copy link
Contributor Author

Hi @Dexterp37,

I updated the CHANGELOG.md and updated the lock file.
Sorry this is taking me so long and thanks for the help.

Copy link
Contributor

@Dexterp37 Dexterp37 left a comment

Choose a reason for hiding this comment

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

Thank you! And don't worry about the delays, there's no rush :)

@Dexterp37 Dexterp37 merged commit 6020080 into mozilla:main Apr 29, 2021
@AmrDhaliwal AmrDhaliwal deleted the fix-node-version branch April 29, 2021 07:46
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