From 050b7e1295a7c537775b42d58ba21c4cacbdaf0c Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Wed, 28 Feb 2024 18:10:03 -0500 Subject: [PATCH] fix(core): should populate includedScripts with non-nx command --- packages/devkit/src/utils/update-package-scripts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devkit/src/utils/update-package-scripts.ts b/packages/devkit/src/utils/update-package-scripts.ts index 8d57a598cd66f..74b67cea1e593 100644 --- a/packages/devkit/src/utils/update-package-scripts.ts +++ b/packages/devkit/src/utils/update-package-scripts.ts @@ -62,7 +62,7 @@ async function processProject( // exclude package.json scripts from nx packageJson.nx ??= {}; - packageJson.nx.includedScripts ??= []; + packageJson.nx.includedScripts ??= Object.keys(packageJson.scripts); for (const targetCommand of targetCommands) { const { command, target, configuration } = targetCommand;