From 4c1f16d2c29a7a56c19b97f2820e6305a6075083 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Wed, 7 Apr 2021 11:03:41 -0400 Subject: feat: add init workspaces Add workspaces support to `npm init` - Fixes `npm exec` respecting `script-shell` option value - Refactored `lib/exec.js` into `libnpmexec` - Updates init-package-json@2.0.3 - Added ability to create a new workspace using the -w config PR-URL: https://github.com/npm/cli/pull/3095 Credit: @ruyadorno Close: #3095 Reviewed-by: @wraithgar --- lib/utils/config/definitions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/utils') diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index db1f25e95..f8c6b41f3 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -1660,7 +1660,8 @@ define('script-shell', { `, type: [null, String], description: ` - The shell to use for scripts run with the \`npm run\` command. + The shell to use for scripts run with the \`npm exec\`, + \`npm run\` and \`npm init \` commands. `, flatten (key, obj, flatOptions) { flatOptions.scriptShell = obj[key] || undefined -- cgit v1.2.3