import { defineConfig } from "tsup";

export default defineConfig({
	entry: ["src/index.ts"],
	format: ["cjs", "esm"],
	splitting: false,
	sourcemap: true,
	clean: false,
	dts: true,
	// watch 可以是布尔值或字符串数组
	watch: [
		"src/**/*.ts",
		"!src/**/*.test.ts",
		"!src/**/*.spec.ts",
		"!node_modules/**",
		"!dist/**",
	],
});
