Skip to content

Commit

Permalink
build: replace npm in engine and deps with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanraj-r committed May 3, 2022
1 parent a571abd commit d050324
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 176 deletions.
16 changes: 8 additions & 8 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# https://docs.npmjs.com/cli/v8/using-npm/config
# https://pnpm.io/npmrc

# TODO: Can this be used instead of or in addition to nvm in CI and local dev
# pnpm will automatically install the specified version of Node.js and use it for running pnpm run commands or the pnpm node command
# use-node-version=16.13.0

# Save dependencies to package.json with an exact version rather than using npm's default semver range operator
save-exact=true

# Refuse to install (or even consider installing) any package that claims to not be compatible with the current Node.js version.
engine-strict=true

# If a package cannot be installed because of overly strict peerDependencies that collide, it provides a way to move forward resolving the situation.
# TODO (debug):
# npm ERR! While resolving: [email protected]
# npm ERR! Found: @typescript-eslint/[email protected]
legacy-peer-deps=true
# local packages from the workspace are preferred over packages from the registry, even if there is a newer version of the package in the registry
prefer-workspace-packages=true

# Smaller on disk than lockfile version 2, but not interoperable with older npm versions. Ideal if all users are on npm version 7 and higher.
lockfile-version=3
auto-install-peers=true
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
],
"engines": {
"node": ">=16.13.0",
"yarn": ">=1.22.15"
"pnpm": ">=7.0.0"
},
"dependencies": {
"node": "^16.13.0",
"npm": "^8.1.2"
"node": "^16.13.0"
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
Expand Down
Loading

0 comments on commit d050324

Please sign in to comment.