mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
Follow-up to4b114df1: the package-name normalization covered JS/TS imports + package.json but missed four other surfaces that name the same phantom packages, relocating the breakage from 'pnpm install' to 'next/vite/astro build': - H1: 46 CSS @import strings (@hanzo/docs-{base-ui,ui,openapi}/css/*) → real pkgs (preserved legit @hanzo/docs-{twoslash,story} CSS) - H2: examples/astro .astro imports (base-ui/mdx→fumadocs-ui/mdx, docs-core/toc→fumadocs-core/toc) - L1: .changeset/config.json fixed-array lockstep names - L2: removed apps/docs/next.config.mts dead phantom→phantom self-alias + dup keys Found by adversarial red review of4b114df1.
29 lines
583 B
TypeScript
29 lines
583 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
format: 'esm',
|
|
target: 'es2023',
|
|
entry: [
|
|
'./src/index.{ts,tsx}',
|
|
'./src/i18n.ts',
|
|
'./src/type-tree/index.ts',
|
|
'./src/vite/*',
|
|
'./src/next/*',
|
|
'./src/webpack/story.ts',
|
|
],
|
|
unbundle: true,
|
|
dts: {
|
|
sourcemap: false,
|
|
},
|
|
platform: 'browser',
|
|
exports: {
|
|
customExports: {
|
|
'./css/*': './css/*',
|
|
},
|
|
},
|
|
deps: {
|
|
onlyBundle: ['@fastify/deepmerge', '@ungap/structured-clone', 'react-error-boundary'],
|
|
neverBundle: [/^node:/, 'next', 'webpack'],
|
|
},
|
|
});
|