Files
TREK/shared/tsdown.config.ts
T
jubnl 54e81b0785 chore: update all dependencies (#1209)
* chore: update all dependencies

* chore: remove lint errors

* fix(client): restore typecheck after dependency bump

vitest 4 types vi.fn() as Mock<Procedure | Constructable>, which no
longer assigns to the strictly-typed onUpdate prop; type the mock
explicitly. TS6 + the new transitive @types/node 25 stopped auto-
including node builtin module types, so import('node:buffer') failed;
add @types/node as a direct client devDependency and a scoped node
type reference in the one test that needs it.

* test: fix constructor mocks for vitest 4 Reflect.construct semantics

vitest 4 resolves new-invoked mocks via Reflect.construct, which rejects
arrow-function implementations (including mockReturnValue sugar) as
non-constructable. Convert mapbox-gl and better-sqlite3 mocks that the
code instantiates with new to regular function implementations.
2026-06-16 18:56:42 +02:00

14 lines
337 B
TypeScript

import { defineConfig } from 'tsdown'
export default defineConfig({
// Root barrel + i18n metadata barrel + one entry per locale (lazy-load chunks)
entry: ['src/index.ts', 'src/i18n/index.ts', 'src/i18n/*/index.ts'],
format: ['cjs', 'esm'],
dts: true,
clean: true,
deps: {
neverBundle: ['zod'],
},
target: false,
})