cli: run tsc again after creating plugin

This commit is contained in:
Patrik Oldsberg
2020-07-27 16:16:50 +02:00
parent a79b844aee
commit acbe95224c
+1 -1
View File
@@ -201,7 +201,7 @@ async function createPlugin(pluginName, appDir) {
await waitForExit(child);
const pluginDir = resolvePath(appDir, 'plugins', pluginName);
for (const cmd of [['lint'], ['test', '--no-watch']]) {
for (const cmd of [['tsc'], ['lint'], ['test', '--no-watch']]) {
print(`Running 'yarn ${cmd.join(' ')}' in newly created plugin`);
await runPlain(['yarn', ...cmd], { cwd: pluginDir });
}