@docubook/flame 1.6.4 → 1.6.5

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.
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  runBuildCli
3
- } from "./chunk-RH3WF75F.js";
3
+ } from "./chunk-OUILOW2S.js";
4
4
  import "./chunk-WSJC3PRH.js";
5
5
  import "./chunk-EOK6KATZ.js";
6
- import "./chunk-QYKLXNNB.js";
6
+ import "./chunk-I7OBFORY.js";
7
7
  import "./chunk-4IQXHHPF.js";
8
8
 
9
9
  // .docu/node/build.deno.ts
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runBuild,
3
3
  runBuildCli
4
- } from "./chunk-RH3WF75F.js";
4
+ } from "./chunk-OUILOW2S.js";
5
5
  import "./chunk-WSJC3PRH.js";
6
6
  import "./chunk-EOK6KATZ.js";
7
- import "./chunk-QYKLXNNB.js";
7
+ import "./chunk-I7OBFORY.js";
8
8
  import "./chunk-4IQXHHPF.js";
9
9
  export {
10
10
  runBuild,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  runBuildCli
3
- } from "./chunk-RH3WF75F.js";
3
+ } from "./chunk-OUILOW2S.js";
4
4
  import "./chunk-WSJC3PRH.js";
5
5
  import "./chunk-EOK6KATZ.js";
6
- import "./chunk-QYKLXNNB.js";
6
+ import "./chunk-I7OBFORY.js";
7
7
  import "./chunk-4IQXHHPF.js";
8
8
 
9
9
  // .docu/node/build.node.ts
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-EOK6KATZ.js";
8
8
  import {
9
9
  logger
10
- } from "./chunk-QYKLXNNB.js";
10
+ } from "./chunk-I7OBFORY.js";
11
11
  import {
12
12
  DIST_DIR
13
13
  } from "./chunk-4IQXHHPF.js";
@@ -5,7 +5,7 @@ import {
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@docubook/flame",
8
- version: "1.6.4",
8
+ version: "1.6.5",
9
9
  description: "A blazing-fast React + MDX framework powered by Bun, built for modern documentation experiences.",
10
10
  type: "module",
11
11
  bin: {
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-EOK6KATZ.js";
22
22
  import {
23
23
  logger
24
- } from "./chunk-QYKLXNNB.js";
24
+ } from "./chunk-I7OBFORY.js";
25
25
  import {
26
26
  ASSETS_DIR,
27
27
  CACHE_FILE,
@@ -67,7 +67,7 @@ function detectPkgManager(dir) {
67
67
  const bunLockFile = existsSync(join(dir, "bun.lock")) ? "bun.lock" : existsSync(join(dir, "bun.lockb")) ? "bun.lockb" : null;
68
68
  if (bunLockFile) {
69
69
  return {
70
- baseImage: "oven/bun:1",
70
+ baseImage: "oven/bun:1-debian",
71
71
  lockFile: bunLockFile,
72
72
  installCmd: "bun install --frozen-lockfile",
73
73
  runCmd: "bun",
@@ -133,7 +133,7 @@ async function runBuild() {
133
133
  process.env.FLAME_BUILD_SILENT = "1";
134
134
  process.env.LOG_LEVEL = "error";
135
135
  }
136
- const { runBuildCli } = await import("./build.impl-ZLUUXLJ2.js");
136
+ const { runBuildCli } = await import("./build.impl-VCWNBEBU.js");
137
137
  await runBuildCli();
138
138
  }
139
139
  async function writeDockerFiles() {
@@ -143,6 +143,7 @@ async function writeDockerFiles() {
143
143
  await writeFile(
144
144
  join(dockerDir, "Dockerfile"),
145
145
  `FROM ${pm.baseImage} AS builder
146
+ ENV NODE_ENV=production
146
147
  WORKDIR /app
147
148
  COPY package.json ${pm.lockFile} ./
148
149
  RUN ${pm.installCmd}
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-EOK6KATZ.js";
28
28
  import {
29
29
  logger
30
- } from "./chunk-QYKLXNNB.js";
30
+ } from "./chunk-I7OBFORY.js";
31
31
  import {
32
32
  DIST_DIR,
33
33
  DOCS_DIR,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-QYKLXNNB.js";
3
+ } from "./chunk-I7OBFORY.js";
4
4
  import "./chunk-4IQXHHPF.js";
5
5
 
6
6
  // .docu/node/clean.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runDeploy
3
- } from "./chunk-NN5T3Z5R.js";
3
+ } from "./chunk-P2P2NB3K.js";
4
4
  import "./chunk-4IQXHHPF.js";
5
5
 
6
6
  // .docu/node/deploy.deno.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runDeploy
3
- } from "./chunk-NN5T3Z5R.js";
3
+ } from "./chunk-P2P2NB3K.js";
4
4
  import "./chunk-4IQXHHPF.js";
5
5
 
6
6
  // .docu/node/deploy.node.ts
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  runPreview
3
- } from "./chunk-UNRSSV2E.js";
3
+ } from "./chunk-74AOEDLW.js";
4
4
  import "./chunk-EOK6KATZ.js";
5
- import "./chunk-QYKLXNNB.js";
5
+ import "./chunk-I7OBFORY.js";
6
6
  import "./chunk-4IQXHHPF.js";
7
7
 
8
8
  // .docu/node/preview.deno.ts
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  runPreview
3
- } from "./chunk-UNRSSV2E.js";
3
+ } from "./chunk-74AOEDLW.js";
4
4
  import "./chunk-EOK6KATZ.js";
5
- import "./chunk-QYKLXNNB.js";
5
+ import "./chunk-I7OBFORY.js";
6
6
  import "./chunk-4IQXHHPF.js";
7
7
 
8
8
  // .docu/node/preview.node.ts
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  runServer
3
- } from "./chunk-6JMYQIHO.js";
3
+ } from "./chunk-Y4PEPREZ.js";
4
4
  import "./chunk-WSJC3PRH.js";
5
5
  import "./chunk-EOK6KATZ.js";
6
- import "./chunk-QYKLXNNB.js";
6
+ import "./chunk-I7OBFORY.js";
7
7
  import "./chunk-4IQXHHPF.js";
8
8
 
9
9
  // .docu/node/server.deno.ts
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  runServer
3
- } from "./chunk-6JMYQIHO.js";
3
+ } from "./chunk-Y4PEPREZ.js";
4
4
  import "./chunk-WSJC3PRH.js";
5
5
  import "./chunk-EOK6KATZ.js";
6
- import "./chunk-QYKLXNNB.js";
6
+ import "./chunk-I7OBFORY.js";
7
7
  import "./chunk-4IQXHHPF.js";
8
8
 
9
9
  // .docu/node/server.node.ts
@@ -87,7 +87,7 @@ export function detectPkgManager(dir: string): {
87
87
  : null;
88
88
  if (bunLockFile) {
89
89
  return {
90
- baseImage: "oven/bun:1",
90
+ baseImage: "oven/bun:1-debian",
91
91
  lockFile: bunLockFile,
92
92
  installCmd: "bun install --frozen-lockfile",
93
93
  runCmd: "bun",
@@ -169,6 +169,7 @@ async function writeDockerFiles() {
169
169
  await writeFile(
170
170
  join(dockerDir, "Dockerfile"),
171
171
  `FROM ${pm.baseImage} AS builder
172
+ ENV NODE_ENV=production
172
173
  WORKDIR /app
173
174
  COPY package.json ${pm.lockFile} ./
174
175
  RUN ${pm.installCmd}
@@ -43,7 +43,8 @@ async function runBuild() {
43
43
  }
44
44
  }
45
45
 
46
- export const DOCKERFILE_BUN = `FROM oven/bun:1 AS builder
46
+ export const DOCKERFILE_BUN = `FROM oven/bun:1-debian AS builder
47
+ ENV NODE_ENV=production
47
48
  WORKDIR /app
48
49
  COPY package.json bun.lock ./
49
50
  RUN bun install --frozen-lockfile
package/bin/cli.js CHANGED
@@ -126,9 +126,9 @@ if (command === "init") {
126
126
  const flameCmd = "deno run -A npm:@docubook/flame";
127
127
  pkg.scripts = {
128
128
  dev: `${flameCmd} dev`,
129
- build: `${flameCmd} build`,
130
- preview: `${flameCmd} preview`,
131
- deploy: `${flameCmd} deploy`,
129
+ build: `NODE_ENV=production ${flameCmd} build`,
130
+ preview: `NODE_ENV=production ${flameCmd} preview`,
131
+ deploy: `NODE_ENV=production ${flameCmd} deploy`,
132
132
  };
133
133
 
134
134
  // Generate deno.json with nodeModulesDir for npm compat.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/flame",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "A blazing-fast React + MDX framework powered by Bun, built for modern documentation experiences.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -55,8 +55,8 @@
55
55
  "react-dom": "^19.2.7",
56
56
  "unified": "^11.0.0",
57
57
  "@docubook/core": "^1.8.2",
58
- "@docubook/mdx-content": "^3.4.5",
59
58
  "@docubook/runt": "^1.0.0",
59
+ "@docubook/mdx-content": "^3.4.5",
60
60
  "@docubook/themes-colors": "^1.0.2",
61
61
  "@docubook/ui-react": "^1.0.0"
62
62
  },
@@ -4,9 +4,9 @@
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "flame dev",
7
- "build": "flame build",
8
- "preview": "flame preview",
9
- "deploy": "flame deploy"
7
+ "build": "NODE_ENV=production flame build",
8
+ "preview": "NODE_ENV=production flame preview",
9
+ "deploy": "NODE_ENV=production flame deploy"
10
10
  },
11
11
  "dependencies": {
12
12
  "@docubook/flame": "latest"