From 1526943a6fce5f9f8fbb01fa1c352f0e06c73135 Mon Sep 17 00:00:00 2001 From: Noel Raley Date: Mon, 21 Oct 2019 20:32:38 -0400 Subject: [PATCH] update generator filter to include scoped packages --- packages/cli/src/init/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/init/init.ts b/packages/cli/src/init/init.ts index d1a8c69fb..bc8f1c133 100644 --- a/packages/cli/src/init/init.ts +++ b/packages/cli/src/init/init.ts @@ -212,7 +212,7 @@ async function createYeomanEnvironment() { function createSelectPrompt(env: YeomanEnvironment) { const generators = env.getGeneratorsMeta(); const allGeneratorNames = Object.keys(generators).filter((k) => { - return k.startsWith('polymer-init') && k !== 'polymer-init:app'; + return k.match(/^(@[^\/]+\/)?polymer-init.*/) && k !== 'polymer-init:app'; }); const choices = allGeneratorNames.map((generatorName: string) => { const generator = generators[generatorName];