From 9606606f0163d56b785620881d5b01985f9218e3 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Wed, 5 Jul 2023 11:20:58 -0700 Subject: [PATCH] feat: add config option to not update npm --- lib/config.js | 2 +- lib/content/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/config.js b/lib/config.js index f2da45d9..0c6333c3 100644 --- a/lib/config.js +++ b/lib/config.js @@ -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, diff --git a/lib/content/index.js b/lib/content/index.js index 8b7c1d5c..54af4cf6 100644 --- a/lib/content/index.js +++ b/lib/content/index.js @@ -159,6 +159,7 @@ module.exports = { npm: 'npm', npx: 'npx', npmSpec: 'latest', + updateNpm: true, dependabot: 'increase-if-necessary', unwantedPackages: [ 'eslint',