chore: need to run install part of the package creation

This commit is contained in:
blam
2020-10-20 10:36:30 +02:00
parent 0f76b11669
commit d092a52552
2 changed files with 7 additions and 1 deletions
@@ -36,6 +36,7 @@
"devDependencies": {
"@backstage/cli": "^{{backstageVersion}}",
"@backstage/dev-utils": "^{{backstageVersion}}",
"@backstage/test-utils": "^{{backstageVersion}}",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^10.4.1",
"@testing-library/user-event": "^12.0.7",
+6 -1
View File
@@ -271,7 +271,12 @@ async function createPlugin(
const pluginDir = resolvePath(appDir, 'plugins', canonicalName);
for (const cmd of [['tsc'], ['lint'], ['test', '--no-watch']]) {
for (const cmd of [
['install'],
['tsc'],
['lint'],
['test', '--no-watch'],
]) {
print(`Running 'yarn ${cmd.join(' ')}' in newly created plugin`);
await runPlain(['yarn', ...cmd], { cwd: pluginDir });
}