-
Notifications
You must be signed in to change notification settings - Fork 302
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
Update dependencies #583
Merged
Merged
Update dependencies #583
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ae7fbf9
Update dependencies
TheJaredWilcurt 0ecc30d
Update README
TheJaredWilcurt d683ae8
Set ^ on deps
TheJaredWilcurt 013b535
Linux package-lock
TheJaredWilcurt f142878
Update Node 14's npm version
TheJaredWilcurt 113ed8d
typo
TheJaredWilcurt 9295461
Trying npm cache tool
TheJaredWilcurt 4cafdfc
Try with Volta
TheJaredWilcurt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- run: npm run install | ||
- run: npm ci | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. File Changes:
|
||
- run: npm run format | ||
- run: npm run lint | ||
- run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ build | |
cache | ||
|
||
yarn.lock | ||
package-lock.json | ||
|
||
npm-debug.log | ||
.pnpm-debug.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -362,17 +362,12 @@ This project was created by [Steffen Müller](https://github.com/steffenmllr) an | |
|
||
1. Pick and install a Node version manager | ||
* Linux/OSX - [nvm](https://github.com/nvm-sh/nvm) | ||
* Windows 8+ - [nvm-windows](https://github.com/coreybutler/nvm-windows) | ||
* Windows 7 - [nodist](https://github.com/nullivex/nodist) | ||
* Win/Lin/OSX - [volta](https://volta.sh) | ||
1. Use your version manager to install Node 14.19, 16.9, 18.2 or above | ||
1. Run `corepack enable` | ||
1. `corepack prepare [email protected] --activate` | ||
1. `pnpm install` | ||
* If you haven't used `pnpm` before, [here is a cheatsheet](https://dev.to/equiman/npm-vs-yarn-vs-pnpm-commands-cheatsheet-3el8) | ||
1. `pnpm demo` to test your changes at first glance | ||
1. `pnpm test` to run unit tests | ||
1. Don't forget to run `pnpm format && pnpm lint` before commiting your changes | ||
* Win 7+/Linux/OSX - [volta](https://volta.sh) | ||
1. Use your version manager to install Node 14.19 or above | ||
1. Run `npm install` | ||
1. `npm run demo` to test your changes at first glance | ||
1. `npm t` to run unit tests | ||
1. Don't forget to run `npm run format && npm run lint` before commiting your changes | ||
|
||
### General Guidelines | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm ci
will install the exact modules listed in thepackage-lock.json
file. So you know that your published version will work exactly the same as it did for you locally. Without a lock file, or usingnpm install
(which updates the lock file), you can end up with a sub-dependency at a different version which may cause unforeseen issues.npm ci
basically solves the "works on my machine" issue. Now it works on all machines.