Remove @ if user adds it in scope

Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
Min Kim
2024-12-17 18:30:43 -05:00
parent 346feb02d8
commit 98bbe025c9
@@ -19,8 +19,9 @@ export const resolvePackageName = (options: {
scope?: string;
plugin: boolean;
}) => {
const { baseName, scope, plugin } = options;
if (scope) {
const { baseName, scope: _scope, plugin } = options;
if (_scope) {
const scope = _scope.replace(/@/g, '');
if (plugin) {
const pluginName = scope.startsWith('backstage')
? 'plugin'