@brandon_m_behring/book-scaffold-astro 3.0.0-alpha.14 → 3.0.0-alpha.16

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 CHANGED
@@ -276,10 +276,19 @@ async function defineBookConfig(opts) {
276
276
  void _extraIntegrations;
277
277
  void _extraStyles;
278
278
  void _markdown;
279
+ const katexExternals = profile === "academic" ? [] : ["remark-math", "rehype-katex", "katex"];
279
280
  const config = {
280
281
  ...rest,
281
282
  integrations,
282
- markdown
283
+ markdown,
284
+ vite: {
285
+ build: {
286
+ rollupOptions: {
287
+ external: katexExternals
288
+ }
289
+ },
290
+ ...rest.vite ?? {}
291
+ }
283
292
  };
284
293
  return config;
285
294
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@brandon_m_behring/book-scaffold-astro",
3
3
  "description": "Astro 6 + MDX toolkit for long-form technical books. Profile-aware (academic / tools / minimal); ships Tufte typography, KaTeX, BibTeX citations, Pagefind, Cloudflare Workers deploy. See PACKAGE_DESIGN.md for the API contract.",
4
- "version": "3.0.0-alpha.14",
4
+ "version": "3.0.0-alpha.16",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Brandon Behring",
@@ -17,7 +17,7 @@ import {
17
17
  toolSlugs,
18
18
  patternCategories,
19
19
  changeKinds,
20
- } from '../schemas.js';
20
+ } from '@brandon_m_behring/book-scaffold-astro';
21
21
 
22
22
  export type PatternEntry = CollectionEntry<'patterns'>;
23
23
  export type ToolSlug = (typeof toolSlugs)[number];
@@ -6,7 +6,7 @@
6
6
  * component and any future dashboards share a single source of truth.
7
7
  */
8
8
  import { getCollection, type CollectionEntry } from 'astro:content';
9
- import { sourceTiers } from '../schemas.js';
9
+ import { sourceTiers } from '@brandon_m_behring/book-scaffold-astro';
10
10
 
11
11
  export type SourceEntry = CollectionEntry<'sources'>;
12
12
  export type SourceTier = (typeof sourceTiers)[number];