Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-03-17 11:51:21 +01:00
parent 00328c1321
commit 6ae0f41c56
2 changed files with 3 additions and 2 deletions
@@ -15,6 +15,7 @@
*/
const knownBackendPluginIds = [
'app',
'auth',
'catalog',
'events',
@@ -28,7 +29,7 @@ const knownBackendPluginIds = [
'techdocs',
];
// Some plugin IDs only have backend packages and no corresponding frontend package
// Only includes plugin IDs that have a corresponding frontend package; some plugins are backend-only and not listed here.
const knownFrontendPluginIds = [
'app',
'auth',
@@ -274,7 +274,7 @@ export function ownerPrompt(): DistinctQuestion {
}
// Based on the same pattern as namePrompt/pluginIdPrompt, but extended to support npm scopes
// and additional allowed characters ('.' and '_'). Matches: @scope/package-name, @scope/package,
// and additional allowed characters ('.' and '_'). Matches examples like: package-name, my.package_name, @scope/package-name, @scope/package.
const packageNamePattern = /^[a-z0-9][a-z0-9._-]*$/;
const scopedPackageNamePattern =
/^@[a-z0-9][a-z0-9._-]*\/[a-z0-9][a-z0-9._-]*$/;