@ahmedrowaihi/8n 6.0.7 → 6.0.9

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,14 @@ 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;
11
+ const starterDir = (0, node_path.join)(__dirname, "../starter");
12
12
  return {
13
13
  ...config,
14
14
  ...staticExport ? {
15
15
  output: "export",
16
16
  trailingSlash: true
17
17
  } : {},
18
- ...!staticExport && docsProjectDir ? { distDir: (0, node_path.join)(docsProjectDir, ".next") } : {},
18
+ ...!staticExport ? { outputFileTracingRoot: starterDir } : {},
19
19
  ...basePath ? {
20
20
  basePath,
21
21
  assetPrefix: basePath
@@ -25,9 +25,10 @@ const adapter = {
25
25
  async onBuildComplete({ projectDir }) {
26
26
  const docsProjectDir = process.env.DOCS_PROJECT_DIR;
27
27
  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");
28
+ if (!docsProjectDir) return;
29
+ const folder = staticExport ? "out" : ".next";
30
+ const src = (0, node_path.join)(projectDir, folder);
31
+ const dest = (0, node_path.join)(docsProjectDir, folder);
31
32
  if ((0, node_fs.existsSync)(dest)) (0, node_fs.rmSync)(dest, {
32
33
  recursive: true,
33
34
  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.7";
3677
+ const current = "6.0.9";
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;
@@ -3954,7 +3959,7 @@ async function mcp() {
3954
3959
  const mcpDir = join(getStarterDir(), "content", "mcp", "en");
3955
3960
  const server = new McpServer({
3956
3961
  name: "8n",
3957
- version: "6.0.7"
3962
+ version: "6.0.9"
3958
3963
  });
3959
3964
  server.registerTool("read_me", {
3960
3965
  description: "Returns how to use the 8n MCP tools. Call this BEFORE documenting anything with 8n.",
@@ -4095,7 +4100,7 @@ Example: get_component({ name: "components" }) returns all available MDX compone
4095
4100
 
4096
4101
  //#endregion
4097
4102
  //#region src/index.ts
4098
- const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.7").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4103
+ const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.9").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4099
4104
  if (cmd.opts().debug) process.env.DEBUG_8N = "1";
4100
4105
  });
4101
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.7"
33
+ "version": "6.0.9"
34
34
  }
@@ -106,5 +106,5 @@
106
106
  "tsx": "^4.21.0",
107
107
  "typescript": "^5.9.3"
108
108
  },
109
- "version": "6.0.7"
109
+ "version": "6.0.9"
110
110
  }