Skip to content

Commit 81aad84

Browse files
committed
Auto launch
1 parent 403d1b1 commit 81aad84

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/cli.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ const config = {
168168
file.prettier ?? /\.(js|jsx|ts|tsx|css|json|html|md)$/.test(file.output);
169169
// Transpile if the template is TypeScript but we're generating JavaScript
170170
const transpile =
171-
file.transpile ?? (/\.(ts|tsx)\.hbs$/.test(file.template) && javascript === true);
171+
file.transpile ??
172+
(/\.(ts|tsx)\.hbs$/.test(file.template) && javascript === true);
172173

173174
return {
174175
...file,
@@ -179,6 +180,9 @@ const config = {
179180

180181
templateRoot: join(__dirname, 'templates'),
181182

183+
installCommand: '{pm} install',
184+
devCommand: '{pm} run dev',
185+
182186
onSuccess: (projectName: string) => {
183187
console.log(`Next steps:`);
184188
console.log(` cd ${projectName}`);

0 commit comments

Comments
 (0)