@webjsdev/cli 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/create.js +9 -2
- package/package.json +1 -1
package/lib/create.js
CHANGED
|
@@ -946,10 +946,17 @@ For AI agents, read this before editing scaffolded files:
|
|
|
946
946
|
const installSegment = installed ? '' : `${pm} install && `;
|
|
947
947
|
const prismaSegment = isSaas ? `npx prisma migrate dev --name init && ` : '';
|
|
948
948
|
const runCommand = `cd ${name} && ${installSegment}${prismaSegment}${pm} run dev`;
|
|
949
|
+
// Use `npx webjsdev ui ...` here, not `npx webjs ui ...`. The bare
|
|
950
|
+
// `webjs` npm name is owned by an unrelated package; `npx webjs
|
|
951
|
+
// <cmd>` would fetch THAT package instead of ours when run outside
|
|
952
|
+
// a project context. `webjsdev` is our unscoped CLI alias; npx's
|
|
953
|
+
// single-bin fallback resolves it to the `webjs` binary, so behaviour
|
|
954
|
+
// matches `@webjsdev/cli` exactly while keeping the command short
|
|
955
|
+
// and unambiguous.
|
|
949
956
|
const uiNote = isApi
|
|
950
957
|
? `# If you later add a UI to this API project:
|
|
951
|
-
# npx
|
|
952
|
-
: `npx
|
|
958
|
+
# npx webjsdev ui init && npx webjsdev ui add button card dialog`
|
|
959
|
+
: `npx webjsdev ui add <name> # add more ui-* components later`;
|
|
953
960
|
console.log(`
|
|
954
961
|
Next steps:
|
|
955
962
|
${runCommand}
|