Compare commits

...

2 Commits

Author SHA1 Message Date
Jason Jean 86a4da9f7c Release 12.7.1 2021-08-12 13:03:29 -04:00
Emily Xiong e01fe88ca5 fix(gatsby): remove npm_config_legacy_peer_deps (#6698) 2021-08-12 12:54:56 -04:00
4 changed files with 2 additions and 7 deletions
@@ -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,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nrwl/nx-source",
"version": "12.7.0",
"version": "12.7.1",
"description": "Smart, Extensible Build Framework",
"homepage": "https://nx.dev",
"private": true,
@@ -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,
{