create-apexjs 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -72,9 +72,10 @@ var main = defineCommand({
72
72
  let installed = false;
73
73
  if (args.install) {
74
74
  console.log(`
75
- Installing dependencies with ${c.cyan(pm)}\u2026
75
+ Installing dependencies with ${c.cyan(pm)}\u2026 ${c.dim("(first install can take a minute)")}
76
76
  `);
77
- installed = run(pm, ["install"], target);
77
+ const installArgs = pm === "npm" ? ["install", "--no-audit", "--no-fund"] : ["install"];
78
+ installed = run(pm, installArgs, target);
78
79
  if (!installed) {
79
80
  console.log(`
80
81
  ${c.yellow("\u26A0")} Dependency install failed \u2014 run it yourself after cd'ing in.
@@ -84,14 +85,15 @@ var main = defineCommand({
84
85
  const runPrefix = pm === "npm" ? "npm run" : pm;
85
86
  const steps = [`cd ${args.dir}`];
86
87
  if (!installed) steps.push(pm === "yarn" ? "yarn" : `${pm} install`);
87
- steps.push(`${runPrefix} dev ${c.dim("# http://localhost:3000")}`);
88
- steps.push(`${runPrefix} dev:islands ${c.dim("# static-first islands mode")}`);
88
+ steps.push(`${runPrefix} dev ${c.dim("# start the dev server \u2192 http://localhost:3000")}`);
89
89
  console.log(`
90
90
  ${installed ? c.green("Ready.") : "Next steps:"}
91
91
  ${steps.map((s) => ` ${s}`).join("\n")}
92
92
 
93
- ${gitOk ? c.dim("Git repository initialized.") : ""}
94
- Your server/api/*.ts routes are also MCP tools at /mcp.
93
+ ${c.yellow("Note:")} ${c.cyan("apex")} is a project command, not a global one \u2014 run it as
94
+ ${c.cyan(runPrefix + " dev")} (or ${c.cyan("npx apex dev")}), never a bare "apex".
95
+ ${c.dim("Islands mode:")} ${runPrefix} dev:islands
96
+ ${gitOk ? c.dim("Git repository initialized. ") : ""}Your server/api/*.ts routes are also MCP tools at /mcp.
95
97
  `);
96
98
  }
97
99
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-apexjs",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Scaffold a new Apex JS app",
5
5
  "type": "module",
6
6
  "license": "MIT",