Remove @ if user adds it in scope
Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user