Skip to content

Commit 9606606

Browse files
committedJul 5, 2023
feat: add config option to not update npm
1 parent 73d7bf1 commit 9606606

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎lib/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const getFullConfig = async ({
195195
isLatest,
196196
// whether to install and update npm in ci
197197
// only do this if we aren't using a custom path to bin
198-
updateNpm: !npmPath.isLocal,
198+
updateNpm: !npmPath.isLocal && pkgConfig.updateNpm,
199199
rootNpmPath: npmPath.root,
200200
localNpmPath: npmPath.local,
201201
rootNpxPath: npxPath.root,

‎lib/content/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ module.exports = {
159159
npm: 'npm',
160160
npx: 'npx',
161161
npmSpec: 'latest',
162+
updateNpm: true,
162163
dependabot: 'increase-if-necessary',
163164
unwantedPackages: [
164165
'eslint',

0 commit comments

Comments
 (0)
Please sign in to comment.