improvement
This commit is contained in:
+1
-2
@@ -20,8 +20,7 @@
|
||||
"docgen": "lerna run docgen",
|
||||
"docker-build:app": "yarn workspace example-app build && docker build . -t spotify/backstage",
|
||||
"docker-build": "yarn tsc && yarn workspace example-backend build-image",
|
||||
"create-plugin": "backstage-cli create-plugin --scope internal",
|
||||
"create-oss-plugin": "backstage-cli create-plugin --scope backstage",
|
||||
"create-plugin": "backstage-cli create-plugin --scope backstage --no-private",
|
||||
"remove-plugin": "backstage-cli remove-plugin",
|
||||
"release": "if [ \"$(git symbolic-ref --short HEAD)\" = master ]; then echo \"don't try to release master\"; exit 1; else lerna version --no-push --force-publish; fi",
|
||||
"prettier:check": "prettier --check .",
|
||||
|
||||
@@ -74,9 +74,7 @@ export async function templatingTask(
|
||||
throw new Error(`Failed to read template directory: ${error.message}`);
|
||||
});
|
||||
|
||||
const isMonoRepo = (await fs.pathExists(paths.resolveTargetRoot('plugins')))
|
||||
? true
|
||||
: false;
|
||||
const isMonoRepo = paths.resolveTargetRoot('lerna.json');
|
||||
|
||||
for (const file of files) {
|
||||
const destinationFile = file.replace(templateDir, destinationDir);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "{{#if scopeName}}{{scopeName}}/{{/if}}/plugin-{{id}}",
|
||||
"name": "{{#if scopeName}}{{scopeName}}/{{/if}}plugin-{{id}}",
|
||||
"version": "{{version}}",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
"dev",
|
||||
"migrations"
|
||||
],
|
||||
"exclude": ["node_modules"],
|
||||
"compilerOptions": {
|
||||
"outDir": "dist-types",
|
||||
"skipLibCheck": true
|
||||
"rootDir": "."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user