create-fsaa 0.2.2 → 0.2.3
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/init.mjs +12 -5
- package/package.json +1 -1
package/lib/init.mjs
CHANGED
|
@@ -79,7 +79,7 @@ export async function initCmd({ flags, interactive }) {
|
|
|
79
79
|
console.log(` pnpm not on PATH — running the pinned pnpm@${pinned} through npx…`);
|
|
80
80
|
r = spawnSync(npxBin, ["-y", `pnpm@${pinned}`, "install"], { cwd: dest, stdio: "inherit", shell: win });
|
|
81
81
|
if (r.error) {
|
|
82
|
-
console.error(`\nfsaa: could not install dependencies automatically (npx unavailable).\n recover by hand: cd ${dest} && npm exec -y pnpm@${pinned} install`);
|
|
82
|
+
console.error(`\nfsaa: could not install dependencies automatically (npx unavailable).\n recover by hand: cd ${dest} && corepack enable && pnpm install\n (or: cd ${dest} && npm exec -y pnpm@${pinned} install)`);
|
|
83
83
|
const e = new Error("install failed");
|
|
84
84
|
e.userError = true;
|
|
85
85
|
throw e;
|
|
@@ -106,12 +106,19 @@ export async function initCmd({ flags, interactive }) {
|
|
|
106
106
|
gitInit(dest, "feat/init", nameSafe(dest));
|
|
107
107
|
|
|
108
108
|
console.log(`\n${"=".repeat(52)}`);
|
|
109
|
-
console.log(` ✔ ${name} is ready (${templateLabel(template)})`);
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
console.log(` ✔ ${name} is ready (${templateLabel(template)}) — dependencies are installed`);
|
|
110
|
+
// Vite-style relative next command (Windows users can paste it as-is);
|
|
111
|
+
// the absolute path goes in parentheses for orientation.
|
|
112
|
+
console.log(` Now run:\n\n cd ${name}\n ${manager} run dev\n`);
|
|
113
|
+
console.log(` (project created at ${dest})`);
|
|
112
114
|
console.log(` agent contract: AGENTS.md · skills: agents/`);
|
|
113
115
|
console.log(` generate slices: ${manager === "pnpm" ? "pnpm exec" : "npx"} fsaa g <slice-name> (or: npx create-fsaa g <slice-name>)`);
|
|
114
|
-
console.log("
|
|
116
|
+
console.log(`${"-".repeat(52)}`);
|
|
117
|
+
console.log(` no pnpm on PATH? enable the one bundled with Node (one-time, no global install):`);
|
|
118
|
+
console.log(` corepack enable`);
|
|
119
|
+
console.log(` or always prefix pnpm with the pinned version:`);
|
|
120
|
+
console.log(` npx -y ${pkg.packageManager || "pnpm@10.34.9"} <command>`);
|
|
121
|
+
console.log(`=`.repeat(52));
|
|
115
122
|
return 0;
|
|
116
123
|
}
|
|
117
124
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fsaa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "FSAA \u2014 Feature-Sliced Atomic Architecture. Run `npm create fsaa` (this package) to scaffold an FSAA app from the official starter templates; `fsaa g <slice>` generates canonical slices.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Veaceslav Bezusco <Aramex86@users.noreply.github.com>",
|