@ahmedrowaihi/8n 0.5.12 → 0.5.13
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
|
@@ -15073,7 +15073,7 @@ const configSchema = objectType({
|
|
|
15073
15073
|
//#region src/load-config.ts
|
|
15074
15074
|
async function resolveConfig() {
|
|
15075
15075
|
const { config } = await loadConfig({
|
|
15076
|
-
name: "
|
|
15076
|
+
name: "8n",
|
|
15077
15077
|
defaults: configSchema.parse({})
|
|
15078
15078
|
});
|
|
15079
15079
|
return configSchema.parse(config);
|
|
@@ -15147,7 +15147,7 @@ async function checkSelfUpdate() {
|
|
|
15147
15147
|
});
|
|
15148
15148
|
if (!res.ok) return;
|
|
15149
15149
|
const { version: latest } = await res.json();
|
|
15150
|
-
const current = "0.5.
|
|
15150
|
+
const current = "0.5.13";
|
|
15151
15151
|
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"));
|
|
15152
15152
|
} catch {}
|
|
15153
15153
|
}
|
|
@@ -15335,7 +15335,7 @@ async function start() {
|
|
|
15335
15335
|
//#endregion
|
|
15336
15336
|
//#region src/commands/init.ts
|
|
15337
15337
|
const SCAFFOLD = {
|
|
15338
|
-
["
|
|
15338
|
+
["8n.config.ts"]: `export default {
|
|
15339
15339
|
content: "./content",
|
|
15340
15340
|
locales: ["en"],
|
|
15341
15341
|
siteName: "Docs",
|
|
@@ -15455,7 +15455,7 @@ async function init() {
|
|
|
15455
15455
|
|
|
15456
15456
|
//#endregion
|
|
15457
15457
|
//#region src/index.ts
|
|
15458
|
-
const program = new Command().name("8n").description("Run your Thmanyah docs site").version("0.5.
|
|
15458
|
+
const program = new Command().name("8n").description("Run your Thmanyah docs site").version("0.5.13").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
|
|
15459
15459
|
if (cmd.opts().debug) process.env.DEBUG_8N = "1";
|
|
15460
15460
|
});
|
|
15461
15461
|
program.command("init").description("Scaffold a new docs project in the current directory").action(init);
|