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:
@@ -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._-]*$/;
|
||||
|
||||
Reference in New Issue
Block a user