remove scope from registry

This commit is contained in:
Fabian Chong
2020-09-17 16:52:34 +08:00
parent d0104e2052
commit 5603f1430d
2 changed files with 1 additions and 3 deletions
@@ -227,7 +227,6 @@ export default async (cmd: Command) => {
const name = cmd.scope
? `@${cmd.scope.replace(/^@/, '')}/plugin-${answers.id}`
: `plugin-${answers.id}`;
const scopeName = cmd.scope ? `@${cmd.scope.replace(/^@/, '')}` : '';
const npmRegistry = cmd.npmRegistry && cmd.scope ? cmd.npmRegistry : '';
const privatePackage = cmd.private === false ? false : true;
const isMonoRepo = await fs.pathExists(paths.resolveTargetRoot('lerna.json'));
@@ -255,7 +254,6 @@ export default async (cmd: Command) => {
...answers,
version,
backstageVersion,
scopeName,
name,
privatePackage,
npmRegistry,
@@ -7,7 +7,7 @@
{{#if privatePackage}} "private": {{privatePackage}},
{{/if}}
"publishConfig": {
{{#if npmRegistry}} "{{scopeName}}:registry": "{{npmRegistry}}",
{{#if npmRegistry}} "registry": "{{npmRegistry}}",
{{/if}}
"access": "public",
"main": "dist/index.esm.js",