We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edf4dbb commit deb91a7Copy full SHA for deb91a7
.gitignore
@@ -1,4 +1,4 @@
1
node_modules/
2
.DS_Store
3
package-lock.json
4
-yarn.lock
+yarn.lock
lib/stacks/next.js
@@ -107,8 +107,15 @@ declare module '*.frag' {
107
const useYarn = installCmd === 'yarn';
108
const buildCmd = useYarn ? ['build'] : ['run', 'build'];
109
110
- await execa(installCmd, buildCmd);
111
- output.success('Succeed to initialize for TypeScript');
+ try {
+ await execa(installCmd, ['install'])
112
+ await execa(installCmd, buildCmd);
113
+ output.success('Succeed to initialize for TypeScript');
114
+ } catch (e) {
115
+ output.error(e.message);
116
+ await fs.remove(root);
117
+ process.exit(1);
118
+ }
119
}
120
121
const compilePostCss = (str, root) => {
0 commit comments