@ahmedrowaihi/8n 6.0.24 → 6.0.26
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 +1 -16
- package/dist/index.mjs +12 -9
- package/package.json +1 -1
- package/starter/next.config.mjs +2 -0
- package/starter/package.json +1 -1
package/dist/adapter.cjs
CHANGED
|
@@ -4,26 +4,11 @@ let node_path = require("node:path");
|
|
|
4
4
|
//#region src/adapter.ts
|
|
5
5
|
const adapter = {
|
|
6
6
|
name: "8n",
|
|
7
|
-
modifyConfig(config, { phase }) {
|
|
8
|
-
if (phase !== "phase-production-build") return config;
|
|
9
|
-
const basePath = process.env.NEXT_BASE_PATH || "";
|
|
10
|
-
const staticExport = process.env.NEXT_STATIC_EXPORT === "true";
|
|
11
|
-
return {
|
|
12
|
-
...config,
|
|
13
|
-
...staticExport ? {
|
|
14
|
-
output: "export",
|
|
15
|
-
trailingSlash: true
|
|
16
|
-
} : {},
|
|
17
|
-
...basePath ? {
|
|
18
|
-
basePath,
|
|
19
|
-
assetPrefix: basePath
|
|
20
|
-
} : {}
|
|
21
|
-
};
|
|
22
|
-
},
|
|
23
7
|
async onBuildComplete({ projectDir }) {
|
|
24
8
|
const docsProjectDir = process.env.DOCS_PROJECT_DIR;
|
|
25
9
|
const staticExport = process.env.NEXT_STATIC_EXPORT === "true";
|
|
26
10
|
if (!docsProjectDir) return;
|
|
11
|
+
if (process.env.NEXT_DIST_DIR && !staticExport) return;
|
|
27
12
|
const folder = staticExport ? "out" : ".next";
|
|
28
13
|
const src = (0, node_path.join)(projectDir, folder);
|
|
29
14
|
const dest = (0, node_path.join)(docsProjectDir, folder);
|
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.
|
|
3677
|
+
const current = "6.0.26";
|
|
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
|
}
|
|
@@ -3811,15 +3811,18 @@ async function dev() {
|
|
|
3811
3811
|
async function build({ server = false } = {}) {
|
|
3812
3812
|
const { config, contentDir } = await resolveProject();
|
|
3813
3813
|
const projectDir = process.cwd();
|
|
3814
|
-
console.log(pc.cyan("8n") + pc.dim(` v6.0.
|
|
3814
|
+
console.log(pc.cyan("8n") + pc.dim(` v6.0.26 build → ${contentDir}`));
|
|
3815
3815
|
syncPublicDir(projectDir);
|
|
3816
3816
|
if (server) {
|
|
3817
3817
|
await copyStarterToProject(projectDir);
|
|
3818
|
-
await runNextIn(getProjectBuildDir(projectDir), "build",
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3818
|
+
await runNextIn(getProjectBuildDir(projectDir), "build", {
|
|
3819
|
+
...buildEnv({
|
|
3820
|
+
config,
|
|
3821
|
+
contentDir,
|
|
3822
|
+
staticExport: false
|
|
3823
|
+
}),
|
|
3824
|
+
NEXT_DIST_DIR: join("..", ".next")
|
|
3825
|
+
});
|
|
3823
3826
|
} else {
|
|
3824
3827
|
await ensureDepsInstalled();
|
|
3825
3828
|
await runNext("build", buildEnv({
|
|
@@ -4019,7 +4022,7 @@ async function mcp() {
|
|
|
4019
4022
|
const mcpDir = join(getStarterDir(), "content", "mcp", "en");
|
|
4020
4023
|
const server = new McpServer({
|
|
4021
4024
|
name: "8n",
|
|
4022
|
-
version: "6.0.
|
|
4025
|
+
version: "6.0.26"
|
|
4023
4026
|
});
|
|
4024
4027
|
server.registerTool("read_me", {
|
|
4025
4028
|
description: "Returns how to use the 8n MCP tools. Call this BEFORE documenting anything with 8n.",
|
|
@@ -4160,7 +4163,7 @@ Example: get_component({ name: "components" }) returns all available MDX compone
|
|
|
4160
4163
|
|
|
4161
4164
|
//#endregion
|
|
4162
4165
|
//#region src/index.ts
|
|
4163
|
-
const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.
|
|
4166
|
+
const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.26").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
|
|
4164
4167
|
if (cmd.opts().debug) process.env.DEBUG_8N = "1";
|
|
4165
4168
|
});
|
|
4166
4169
|
program.command("init").description("Scaffold a new docs project in the current directory").action(init);
|
package/package.json
CHANGED
package/starter/next.config.mjs
CHANGED
package/starter/package.json
CHANGED