Migrate from tsc to tsdown for multi-format (ESM/CJS) builds. Replace Prettier with Biome for formatting and linting. Upgrade ESLint to flat config (v10) and TypeScript to v6. Drop Yarn in favor of npm for package management. Configure dual ESM/CJS exports with proper type declarations. Add publishing configuration and release scripts. Reformat source files to 2-space indentation.
14 lines
244 B
TypeScript
14 lines
244 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
entry: ['./src/g3d.ts', './src/m3d.ts'],
|
|
format: ['esm', 'cjs'],
|
|
dts: true,
|
|
outDir: 'dist',
|
|
sourcemap: true,
|
|
clean: true,
|
|
deps: {
|
|
neverBundle: [],
|
|
},
|
|
});
|