feat(core): remove usage of --legacy-peer-deps (#16271)

This commit is contained in:
Jason Jean 2023-04-12 16:31:46 -04:00 committed by GitHub
parent dc8711d817
commit afcf7ba19f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 7 deletions

View File

@ -132,8 +132,8 @@ export function getPackageManagerCommand({
runUninstalledPackage: `npx --yes`,
install: 'npm install',
ciInstall: 'npm ci',
addProd: `npm install --legacy-peer-deps`,
addDev: `npm install --legacy-peer-deps -D`,
addProd: `npm install`,
addDev: `npm install -D`,
list: 'npm ls --depth 10',
runLerna: `npx lerna`,
},

View File

@ -62,8 +62,6 @@ export function getPackageManagerCommand(
};
case 'npm':
process.env.npm_config_legacy_peer_deps =
process.env.npm_config_legacy_peer_deps ?? 'true';
return {
install: 'npm install --silent --ignore-scripts',
exec: 'npx',

View File

@ -78,7 +78,7 @@ function ensureUpToDateInstallation() {
},
})
);
cp.execSync('npm i --legacy-peer-deps', {
cp.execSync('npm i', {
cwd: path.dirname(installationPath),
stdio: 'inherit',
});

View File

@ -87,8 +87,6 @@ export function getPackageManagerCommand(
};
},
npm: () => {
process.env.npm_config_legacy_peer_deps ??= 'true';
return {
install: 'npm install',
ciInstall: 'npm ci',