create-zudo-doc 1.0.0 → 1.0.1
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/scaffold.d.ts +1 -1
- package/dist/scaffold.js +18 -3
- package/package.json +1 -1
package/dist/scaffold.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export { getSecondaryLang };
|
|
|
11
11
|
*
|
|
12
12
|
* Bumped in lockstep by scripts/release-create-zudo-doc.sh.
|
|
13
13
|
*/
|
|
14
|
-
export declare const ZUDO_DOC_PIN = "^1.0.
|
|
14
|
+
export declare const ZUDO_DOC_PIN = "^1.0.1";
|
|
15
15
|
export declare function scaffold(choices: UserChoices): Promise<void>;
|
package/dist/scaffold.js
CHANGED
|
@@ -18,7 +18,7 @@ export { getSecondaryLang };
|
|
|
18
18
|
*
|
|
19
19
|
* Bumped in lockstep by scripts/release-create-zudo-doc.sh.
|
|
20
20
|
*/
|
|
21
|
-
export const ZUDO_DOC_PIN = "^1.0.
|
|
21
|
+
export const ZUDO_DOC_PIN = "^1.0.1";
|
|
22
22
|
/**
|
|
23
23
|
* Files in `templates/base/**` that must never be copied into a generated
|
|
24
24
|
* project. Each entry is matched against the path relative to `templates/base/`
|
|
@@ -526,6 +526,19 @@ function generatePackageJson(choices) {
|
|
|
526
526
|
// consumer-build verification — the import lives in the mirrored
|
|
527
527
|
// pages, not behind any feature gate. Same pin as host.
|
|
528
528
|
katex: "^0.16.38",
|
|
529
|
+
// diff — required at build time by EVERY generated project, not just
|
|
530
|
+
// docHistory ones. The always-copied host base template
|
|
531
|
+
// `pages/lib/_doc-history-area.tsx` statically imports the real
|
|
532
|
+
// `DocHistory` from `@takazudo/zudo-doc/doc-history` (to keep zfb's island
|
|
533
|
+
// scanner chain page→stub→DocHistory walkable), which pulls
|
|
534
|
+
// `@takazudo/zudo-doc/dist/doc-history/index.js`'s `await import("diff")`
|
|
535
|
+
// into the bundle. With packageOwnedRoutes default ON (1.0), a
|
|
536
|
+
// docHistory-off project still bundles that path, so without `diff` here
|
|
537
|
+
// `zfb build` fails at esbuild with "Could not resolve 'diff'" (#2342).
|
|
538
|
+
// `diff` is an *optional* peerDependency of @takazudo/zudo-doc, so a
|
|
539
|
+
// missing copy produces no `pnpm install` warning — which is why this gap
|
|
540
|
+
// shipped silently and only surfaced at build time.
|
|
541
|
+
diff: "^8.0.3",
|
|
529
542
|
};
|
|
530
543
|
const devDeps = {
|
|
531
544
|
"@tailwindcss/vite": "^4.2.0",
|
|
@@ -540,14 +553,16 @@ function generatePackageJson(choices) {
|
|
|
540
553
|
devDeps["pagefind"] = "^1.4.0";
|
|
541
554
|
}
|
|
542
555
|
if (choices.features.includes("docHistory")) {
|
|
543
|
-
|
|
556
|
+
// (diff is now an unconditional base dep — see the `deps` block above:
|
|
557
|
+
// packageOwnedRoutes always bundles the doc-history-area path, so diff is
|
|
558
|
+
// required regardless of this feature flag.)
|
|
544
559
|
// @takazudo/zudo-doc has @takazudo/zudo-doc-history-server as an optional
|
|
545
560
|
// peer dep. When docHistory is selected the zfb plugin
|
|
546
561
|
// (@takazudo/zudo-doc/plugins/doc-history) eagerly imports
|
|
547
562
|
// @takazudo/zudo-doc/integrations/doc-history which in turn imports
|
|
548
563
|
// @takazudo/zudo-doc-history-server/git-history. Without this dep the
|
|
549
564
|
// plugin host fails at init with ERR_MODULE_NOT_FOUND — W8A (#1739).
|
|
550
|
-
deps["@takazudo/zudo-doc-history-server"] = "^1.0.
|
|
565
|
+
deps["@takazudo/zudo-doc-history-server"] = "^1.0.1";
|
|
551
566
|
// tsx is no longer needed here: the relocated package plugin imports the
|
|
552
567
|
// runner directly (no `tsx -e` spawn) since the package ships compiled
|
|
553
568
|
// dist/ — package-first migration #2321 (#2337).
|