improvement

This commit is contained in:
Fabian Chong
2020-09-08 09:25:10 +08:00
parent a3baa7504e
commit adaa61e9ac
4 changed files with 4 additions and 8 deletions
+1 -2
View File
@@ -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 .",
+1 -3
View File
@@ -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": "."
}
}