Skip to content

Commit f2c1db6

Browse files
committed
fix(cli): adjust serverless playwright placeholder and label
1 parent 8b419cf commit f2c1db6

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.changeset/tender-dingos-fry.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"create-stk": patch
3+
---
4+
5+
Update Serverless + Playwright Node.js template scaffolding details.
6+
7+
- Replace `{{ project_name }}` in `api/index.ts` for the Serverless + Playwright template.
8+
- Rename the template option label to `Serverless + Playwright (bun)` in the CLI picker.

apps/cli/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const TEMPLATE_CONFIG = [
1212
{ id: 'nuxt', name: 'Nuxt', category: 'Frontend' },
1313
{ id: 'svelte', name: 'Svelte', category: 'Frontend' },
1414
{ id: 'node', name: 'Empty Project', category: 'Backend', group: 'Node.js' },
15-
{ id: 'node-serverless-playwright', name: 'Serverless + Playwright', category: 'Backend', group: 'Node.js' },
15+
{ id: 'node-serverless-playwright', name: 'Serverless + Playwright (bun)', category: 'Backend', group: 'Node.js' },
1616
{ id: 'node-elysia', name: 'Elysia (Bun)', category: 'Backend', group: 'Node.js' },
1717
{ id: 'go-fiber', name: 'Go + Fiber', category: 'Backend' },
1818
{ id: 'rust-axum', name: 'Rust + Axum', category: 'Backend' },

apps/cli/src/templates.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ async function setupNodeServerlessPlaywright(ctx: TemplateContext) {
264264
pkg.name = dirName;
265265
fs.writeFileSync(packageJsonPath, `${JSON.stringify(pkg, null, 2)}\n`);
266266
}
267+
replaceInFile(path.join(targetDir, 'api/index.ts'), TEMPLATE_PLACEHOLDER, dirName);
267268

268269
s.stop('Node Serverless + Playwright Project created!');
269270
}

0 commit comments

Comments
 (0)