fix(gatsby): remove npm_config_legacy_peer_deps (#6698)
This commit is contained in:
parent
3351ef80bc
commit
f96c5371c0
@ -94,7 +94,7 @@ describe('create-nx-workspace', () => {
|
||||
const wsName = uniq('gatsby');
|
||||
const appName = uniq('app');
|
||||
runCreateWorkspace(wsName, {
|
||||
preset: 'next',
|
||||
preset: 'gatsby',
|
||||
style: 'css',
|
||||
appName,
|
||||
packageManager,
|
||||
|
||||
@ -486,10 +486,6 @@ async function createApp(
|
||||
nxWorkspaceRoot = `\\"${nxWorkspaceRoot.slice(1, -1)}\\"`;
|
||||
}
|
||||
}
|
||||
// For gatsby, when doing npm install, it does not require the flag --legacy-peer-deps
|
||||
if (parsedArgs.preset === Preset.Gatsby && packageManager === 'npm') {
|
||||
process.env.npm_config_legacy_peer_deps = 'false';
|
||||
}
|
||||
const fullCommandWithoutWorkspaceRoot = `${pmc.exec} tao ${command}/generators.json --cli=${cli}`;
|
||||
|
||||
let workspaceSetupSpinner = ora('Creating your workspace').start();
|
||||
|
||||
@ -42,7 +42,6 @@ function updateDependencies(host: Tree) {
|
||||
});
|
||||
|
||||
const isPnpm = host.exists('pnpm-lock.yaml');
|
||||
process.env.npm_config_legacy_peer_deps = 'false';
|
||||
return addDependenciesToPackageJson(
|
||||
host,
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user