778e98134c
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
587 B
TypeScript
15 lines
587 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
// `src/adapters/mock.ts` and `src/conformance.ts` are added as separate entries
|
|
// in later tasks (they don't exist yet). `conformance` in particular is its own
|
|
// entry, never reachable from `index`, because it imports vitest, and bundling
|
|
// that into the main barrel would drag a test runner into every consumer's
|
|
// production build.
|
|
entry: ['src/index.ts', 'src/adapters/mock.ts', 'src/conformance.ts'],
|
|
format: ['esm'],
|
|
dts: true,
|
|
clean: true,
|
|
external: ['react', 'react-dom', 'vitest'],
|
|
});
|