@ahmedrowaihi/8n 6.0.13 → 6.0.15

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/dist/index.mjs CHANGED
@@ -3674,7 +3674,7 @@ async function checkSelfUpdate() {
3674
3674
  });
3675
3675
  if (!res.ok) return;
3676
3676
  const { version: latest } = await res.json();
3677
- const current = "6.0.13";
3677
+ const current = "6.0.15";
3678
3678
  if (latest !== current) console.log(pc.yellow("⚠") + pc.dim(` new version available: `) + pc.cyan(latest) + pc.dim(` (current: ${current}) — run `) + pc.cyan("npm i -g @ahmedrowaihi/8n") + pc.dim(" to update"));
3679
3679
  } catch {}
3680
3680
  }
@@ -3683,7 +3683,11 @@ async function ensureDepsInstalled() {
3683
3683
  if (existsSync(join(starterDir, "node_modules", ".bin", "next"))) return;
3684
3684
  const spin = spinner("installing starter dependencies");
3685
3685
  try {
3686
- await x("npm", ["install", "--legacy-peer-deps"], { nodeOptions: {
3686
+ await x("npm", [
3687
+ "install",
3688
+ "--legacy-peer-deps",
3689
+ "--include=dev"
3690
+ ], { nodeOptions: {
3687
3691
  cwd: starterDir,
3688
3692
  stdio: process.env.DEBUG_8N ? "inherit" : "pipe"
3689
3693
  } });
@@ -3721,8 +3725,8 @@ async function resolveProject() {
3721
3725
  contentDir: resolve(process.cwd(), config.content ?? "./content")
3722
3726
  };
3723
3727
  }
3724
- async function runNext(cmd, env) {
3725
- await x(getNextBin(), [cmd], { nodeOptions: {
3728
+ async function runNext(cmd, env, flags = []) {
3729
+ await x(getNextBin(), [cmd, ...flags], { nodeOptions: {
3726
3730
  cwd: getStarterDir(),
3727
3731
  stdio: "inherit",
3728
3732
  env
@@ -3769,14 +3773,14 @@ async function dev() {
3769
3773
  //#region src/commands/build.ts
3770
3774
  async function build({ server = false } = {}) {
3771
3775
  const { config, contentDir } = await resolveProject();
3772
- console.log(pc.cyan("8n") + pc.dim(` v6.0.13 build → ${contentDir}`));
3776
+ console.log(pc.cyan("8n") + pc.dim(` v6.0.15 build → ${contentDir}`));
3773
3777
  await ensureDepsInstalled();
3774
3778
  syncPublicDir(process.cwd());
3775
3779
  await runNext("build", buildEnv({
3776
3780
  config,
3777
3781
  contentDir,
3778
3782
  staticExport: !server
3779
- }));
3783
+ }), server ? ["--webpack"] : []);
3780
3784
  console.log(pc.green("✓") + pc.dim(` build complete → ${server ? ".next/" : "out/"}`));
3781
3785
  }
3782
3786
 
@@ -3959,7 +3963,7 @@ async function mcp() {
3959
3963
  const mcpDir = join(getStarterDir(), "content", "mcp", "en");
3960
3964
  const server = new McpServer({
3961
3965
  name: "8n",
3962
- version: "6.0.13"
3966
+ version: "6.0.15"
3963
3967
  });
3964
3968
  server.registerTool("read_me", {
3965
3969
  description: "Returns how to use the 8n MCP tools. Call this BEFORE documenting anything with 8n.",
@@ -4100,7 +4104,7 @@ Example: get_component({ name: "components" }) returns all available MDX compone
4100
4104
 
4101
4105
  //#endregion
4102
4106
  //#region src/index.ts
4103
- const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.13").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4107
+ const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.15").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4104
4108
  if (cmd.opts().debug) process.env.DEBUG_8N = "1";
4105
4109
  });
4106
4110
  program.command("init").description("Scaffold a new docs project in the current directory").action(init);
package/package.json CHANGED
@@ -30,5 +30,5 @@
30
30
  "typescript": "^5.9.3",
31
31
  "zod": "^4.3.6"
32
32
  },
33
- "version": "6.0.13"
33
+ "version": "6.0.15"
34
34
  }
@@ -106,5 +106,5 @@
106
106
  "tsx": "^4.21.0",
107
107
  "typescript": "^5.9.3"
108
108
  },
109
- "version": "6.0.13"
109
+ "version": "6.0.15"
110
110
  }