@ahmedrowaihi/8n 6.0.6 → 6.0.8

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/adapter.cjs CHANGED
@@ -8,14 +8,12 @@ const adapter = {
8
8
  if (phase !== "phase-production-build") return config;
9
9
  const basePath = process.env.NEXT_BASE_PATH || "";
10
10
  const staticExport = process.env.NEXT_STATIC_EXPORT === "true";
11
- const docsProjectDir = process.env.DOCS_PROJECT_DIR;
12
11
  return {
13
12
  ...config,
14
13
  ...staticExport ? {
15
14
  output: "export",
16
15
  trailingSlash: true
17
16
  } : {},
18
- ...!staticExport && docsProjectDir ? { distDir: (0, node_path.join)(docsProjectDir, ".next") } : {},
19
17
  ...basePath ? {
20
18
  basePath,
21
19
  assetPrefix: basePath
@@ -25,9 +23,10 @@ const adapter = {
25
23
  async onBuildComplete({ projectDir }) {
26
24
  const docsProjectDir = process.env.DOCS_PROJECT_DIR;
27
25
  const staticExport = process.env.NEXT_STATIC_EXPORT === "true";
28
- if (!docsProjectDir || !staticExport) return;
29
- const src = (0, node_path.join)(projectDir, "out");
30
- const dest = (0, node_path.join)(docsProjectDir, "out");
26
+ if (!docsProjectDir) return;
27
+ const folder = staticExport ? "out" : ".next";
28
+ const src = (0, node_path.join)(projectDir, folder);
29
+ const dest = (0, node_path.join)(docsProjectDir, folder);
31
30
  if ((0, node_fs.existsSync)(dest)) (0, node_fs.rmSync)(dest, {
32
31
  recursive: true,
33
32
  force: true
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.6";
3677
+ const current = "6.0.8";
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
  }
@@ -3867,7 +3867,12 @@ summary: Initial release.
3867
3867
  First version of the docs.
3868
3868
  `
3869
3869
  };
3870
- const GITIGNORE_ENTRIES = ["out", ".next"];
3870
+ const GITIGNORE_ENTRIES = [
3871
+ "node_modules",
3872
+ "package-lock.json",
3873
+ "out",
3874
+ ".next"
3875
+ ];
3871
3876
  function isDirEmpty(dir) {
3872
3877
  if (!existsSync(dir)) return true;
3873
3878
  return readdirSync(dir).filter((f) => !f.startsWith(".")).length === 0;
@@ -3884,7 +3889,10 @@ function scaffold(targetDir) {
3884
3889
  build: "8n build",
3885
3890
  start: "8n start"
3886
3891
  },
3887
- dependencies: { "@ahmedrowaihi/8n": "latest" }
3892
+ dependencies: {
3893
+ "@ahmedrowaihi/8n": "latest",
3894
+ "next": "^16.2.0"
3895
+ }
3888
3896
  }, null, 2) + "\n",
3889
3897
  "next.config.mjs": `// Required for Vercel to detect the Next.js framework.\n// The actual Next.js app is built by the 8n CLI internally.\nexport default {};\n`,
3890
3898
  "vercel.json": JSON.stringify({
@@ -3951,7 +3959,7 @@ async function mcp() {
3951
3959
  const mcpDir = join(getStarterDir(), "content", "mcp", "en");
3952
3960
  const server = new McpServer({
3953
3961
  name: "8n",
3954
- version: "6.0.6"
3962
+ version: "6.0.8"
3955
3963
  });
3956
3964
  server.registerTool("read_me", {
3957
3965
  description: "Returns how to use the 8n MCP tools. Call this BEFORE documenting anything with 8n.",
@@ -4092,7 +4100,7 @@ Example: get_component({ name: "components" }) returns all available MDX compone
4092
4100
 
4093
4101
  //#endregion
4094
4102
  //#region src/index.ts
4095
- const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.6").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4103
+ const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.8").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4096
4104
  if (cmd.opts().debug) process.env.DEBUG_8N = "1";
4097
4105
  });
4098
4106
  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.6"
33
+ "version": "6.0.8"
34
34
  }
@@ -106,5 +106,5 @@
106
106
  "tsx": "^4.21.0",
107
107
  "typescript": "^5.9.3"
108
108
  },
109
- "version": "6.0.6"
109
+ "version": "6.0.8"
110
110
  }