import { defineConfig } from 'tsdown';
import { sharedConfig } from '../../../tsdown.shared.ts';

export default defineConfig({
	...sharedConfig,
	entry: 'src/**/*.ts',
	unbundle: true,
	deps: {
		neverBundle: [/^virtual:/],
		skipNodeModulesBundle: true,
	},
	copy: [
		{
			from: 'src/**/*.d.ts',
			to: 'dist',
			flatten: false,
		},
	],
});
