Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"format:check": "prettier --check ."
},
"dependencies": {
"@clack/prompts": "^0.10.0",
"@clack/prompts": "^1.1.0",
"cross-spawn": "^7.0.6",
"handlebars": "^4.7.8",
"picocolors": "^1.1.1"
Expand Down
4 changes: 2 additions & 2 deletions src/post-scaffold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export async function installDeps(targetDir: string, meta: TemplateMeta): Promis
const cmd = process.platform === "win32" && step.winCmd ? step.winCmd : step.cmd;
const result = await runAsync(cmd, step.args, targetDir);
if (result.status !== 0) {
s.stop(`${step.label} failed`);
s.error(`${step.label} failed`);
p.log.warn(
`${result.stderr || `${cmd} ${step.args.join(" ")} failed`}\n\nRun manually: ${cmd} ${step.args.join(" ")}`
);
Expand All @@ -124,7 +124,7 @@ export async function runMigrations(targetDir: string, meta: TemplateMeta) {
const cmd = process.platform === "win32" && step.winCmd ? step.winCmd : step.cmd;
const result = await runAsync(cmd, step.args, targetDir);
if (result.status !== 0) {
s.stop("Database setup failed (you can run migrations manually)");
s.error("Database setup failed (you can run migrations manually)");
p.log.warn(result.stderr || `${cmd} ${step.args.join(" ")} failed`);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function getProjectName(argv: string[]): Promise<string> {
const result = await p.text({
message: "What is your project name?",
placeholder: "my-arcade-agent",
validate: (v) => validateProjectName(v.trim()),
validate: (v) => validateProjectName((v ?? "").trim()),
});
if (p.isCancel(result)) {
p.cancel("Cancelled.");
Expand Down