Merge pull request #2316 from feiming/scaffold

remove mono repo dependency from create-plugin
This commit is contained in:
Patrik Oldsberg
2020-09-21 15:21:43 +02:00
committed by GitHub
7 changed files with 61 additions and 30 deletions
+5 -1
View File
@@ -81,7 +81,11 @@ async function buildDistWorkspace(workspaceName: string, rootDir: string) {
const path = paths.resolveOwnRoot(pkgJsonPath);
const pkgTemplate = await fs.readFile(path, 'utf8');
const { dependencies = {}, devDependencies = {} } = JSON.parse(
handlebars.compile(pkgTemplate)({ version: '0.0.0' }),
handlebars.compile(pkgTemplate)({
version: '0.0.0',
privatePackage: true,
scopeName: '@backstage',
}),
);
Array<string>()