mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
The catalog moved negotiator to 1.1.0, which parses media types through content-type. tsdown bundles negotiator into this package and refuses to bundle a dependency nobody declared, so every build of @hanzo/docs-core has failed since — and with it every build of the docs site, which is why docs.hanzo.ai has served the same export since the 4th. Co-authored-by: Hanzo Dev <[email protected]>
56 lines
1.6 KiB
TypeScript
56 lines
1.6 KiB
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
dts: {
|
|
sourcemap: false,
|
|
},
|
|
fixedExtension: false,
|
|
target: 'es2023',
|
|
format: 'esm',
|
|
entry: [
|
|
'src/{toc,link,breadcrumb,dynamic-link}.tsx',
|
|
'src/page-tree/index.ts',
|
|
'src/{negotiation,content}/*',
|
|
'src/content/md/*.ts',
|
|
'src/content/mdx/preset-*.ts',
|
|
'src/source/{index,llms,dynamic,schema}.ts',
|
|
'src/source/client/*.{ts,tsx}',
|
|
'src/source/plugins/{lucide-icons,slugs,status-badges}.{ts,tsx}',
|
|
'src/search/{index,client,server,algolia,orama-cloud,orama-cloud-legacy,mixedbread,flexsearch,hanzo}.ts',
|
|
'src/search/client/*.ts',
|
|
'src/utils/use-on-change.ts',
|
|
'src/utils/use-media-query.ts',
|
|
'src/i18n/*.ts',
|
|
'src/highlight/{index,client}.ts',
|
|
'src/highlight/shiki/*',
|
|
'src/mdx-plugins/{index,codeblock-utils}.ts',
|
|
'src/mdx-plugins/remark-*.ts',
|
|
'src/mdx-plugins/rehype-*.ts',
|
|
'src/mdx-plugins/{stringifier,transformer-icon}.ts',
|
|
'src/framework/*',
|
|
],
|
|
deps: {
|
|
onlyBundle: [
|
|
'remove-markdown',
|
|
'@formatjs/intl-localematcher',
|
|
'image-size',
|
|
'path-to-regexp',
|
|
'negotiator',
|
|
// negotiator 1.1.0 moved its media-type parsing into content-type, and a
|
|
// bundled dependency's own dependencies have to be named here too.
|
|
'content-type',
|
|
'npm-to-yarn',
|
|
'@formatjs/fast-memoize',
|
|
'@shikijs/transformers',
|
|
],
|
|
},
|
|
exports: {
|
|
customExports: {
|
|
'./source/*': {
|
|
types: './dist/source/plugins/*.d.ts',
|
|
import: './dist/source/plugins/*.js',
|
|
},
|
|
},
|
|
},
|
|
});
|