From cada704525a0854154d827b623d0e3de3f580e36 Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Wed, 26 Apr 2023 14:27:16 -0400 Subject: [PATCH] chore(nx-plugin): remove createPackageName prompt for nx plugin --- .../create-nx-plugin/bin/create-nx-plugin.ts | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/packages/create-nx-plugin/bin/create-nx-plugin.ts b/packages/create-nx-plugin/bin/create-nx-plugin.ts index 8133920df1e47..4434b2dbb8b85 100644 --- a/packages/create-nx-plugin/bin/create-nx-plugin.ts +++ b/packages/create-nx-plugin/bin/create-nx-plugin.ts @@ -61,23 +61,6 @@ async function determinePluginName( return results.pluginName; } -async function determineCreatePackageName( - parsedArgs: CreateNxPluginArguments -): Promise { - if (parsedArgs.createPackageName) { - return parsedArgs.createPackageName; - } - - const results = await enquirer.prompt<{ createPackageName: string }>([ - { - name: 'createPackageName', - message: `Create a package which can be used by npx to create a new workspace (Leave blank to not create this package)`, - type: 'input', - }, - ]); - return results.createPackageName; -} - interface CreateNxPluginArguments { pluginName: string; createPackageName?: string; @@ -177,7 +160,6 @@ async function normalizeArgsMiddleware( ): Promise { try { const pluginName = await determinePluginName(argv); - const createPackageName = await determineCreatePackageName(argv); const packageManager = await determinePackageManager(argv); const defaultBase = await determineDefaultBase(argv); const nxCloud = await determineNxCloud(argv); @@ -185,12 +167,11 @@ async function normalizeArgsMiddleware( Object.assign(argv, { pluginName, - createPackageName, nxCloud, packageManager, defaultBase, ci, - } as Partial); + } as Partial); } catch (e) { console.error(e); process.exit(1);