From 0e9e08e048f73d015e284c508d79f0f9516b4aac Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Fri, 9 Aug 2024 10:36:57 -0400 Subject: [PATCH] fix(misc): init should run add for .nx workspaces on windows --- packages/nx/src/command-line/init/init-v2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/init/init-v2.ts b/packages/nx/src/command-line/init/init-v2.ts index 725a49c4b075e..0cbe3d07cfeeb 100644 --- a/packages/nx/src/command-line/init/init-v2.ts +++ b/packages/nx/src/command-line/init/init-v2.ts @@ -51,7 +51,7 @@ export async function initHandler(options: InitArgs): Promise { generateDotNxSetup(version); const { plugins } = await detectPlugins(); plugins.forEach((plugin) => { - execSync(`./nx add ${plugin}`, { + runNxSync(`add ${plugin}`, { stdio: 'inherit', }); });