Skip to content

Commit

Permalink
feat: add config option to not update npm
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Jul 5, 2023
1 parent 73d7bf1 commit 9606606
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const getFullConfig = async ({
isLatest,
// whether to install and update npm in ci
// only do this if we aren't using a custom path to bin
updateNpm: !npmPath.isLocal,
updateNpm: !npmPath.isLocal && pkgConfig.updateNpm,
rootNpmPath: npmPath.root,
localNpmPath: npmPath.local,
rootNpxPath: npxPath.root,
Expand Down
1 change: 1 addition & 0 deletions lib/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ module.exports = {
npm: 'npm',
npx: 'npx',
npmSpec: 'latest',
updateNpm: true,
dependabot: 'increase-if-necessary',
unwantedPackages: [
'eslint',
Expand Down

0 comments on commit 9606606

Please sign in to comment.