@ahmedrowaihi/8n 0.5.7 → 0.5.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/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15146,7 +15146,7 @@ async function checkSelfUpdate() {
|
|
|
15146
15146
|
});
|
|
15147
15147
|
if (!res.ok) return;
|
|
15148
15148
|
const { version: latest } = await res.json();
|
|
15149
|
-
const current = "0.5.
|
|
15149
|
+
const current = "0.5.9";
|
|
15150
15150
|
if (latest !== current) console.log(import_picocolors.default.yellow("⚠") + import_picocolors.default.dim(` new CLI version available: `) + import_picocolors.default.cyan(latest) + import_picocolors.default.dim(` (current: ${current}) — run `) + import_picocolors.default.cyan("npm i -g @ahmedrowaihi/8n") + import_picocolors.default.dim(" to update"));
|
|
15151
15151
|
} catch {}
|
|
15152
15152
|
}
|
|
@@ -15176,7 +15176,7 @@ async function prepareSudocs(options) {
|
|
|
15176
15176
|
dir: resolve(process.env.SUDOCS_LOCAL)
|
|
15177
15177
|
};
|
|
15178
15178
|
const latestVersion = options?.version ?? await getLatestVersion();
|
|
15179
|
-
const sudocsDir = getGlobalCacheDir(latestVersion);
|
|
15179
|
+
const sudocsDir = process.env.VERCEL ? join(process.cwd(), ".8n-workspace") : getGlobalCacheDir(latestVersion);
|
|
15180
15180
|
if (existsSync(join(sudocsDir, "node_modules"))) return {
|
|
15181
15181
|
updated: false,
|
|
15182
15182
|
version: latestVersion,
|
|
@@ -15294,7 +15294,7 @@ async function build() {
|
|
|
15294
15294
|
env: buildEnv(config, contentDir)
|
|
15295
15295
|
} });
|
|
15296
15296
|
const src = join(sudocsDir, ".next");
|
|
15297
|
-
const outDir = join(process.cwd(), ".
|
|
15297
|
+
const outDir = join(process.cwd(), ".next");
|
|
15298
15298
|
if (existsSync(outDir)) rmSync(outDir, {
|
|
15299
15299
|
recursive: true,
|
|
15300
15300
|
force: true
|
|
@@ -15449,7 +15449,7 @@ async function init() {
|
|
|
15449
15449
|
|
|
15450
15450
|
//#endregion
|
|
15451
15451
|
//#region src/index.ts
|
|
15452
|
-
const program = new Command().name("8n").description("Run your Thmanyah docs site").version("0.5.
|
|
15452
|
+
const program = new Command().name("8n").description("Run your Thmanyah docs site").version("0.5.9").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
|
|
15453
15453
|
if (cmd.opts().debug) process.env.DEBUG_8N = "1";
|
|
15454
15454
|
});
|
|
15455
15455
|
program.command("init").description("Scaffold a new docs project in the current directory").action(init);
|