init
This commit is contained in:
19
package/tsup.config.ts
Normal file
19
package/tsup.config.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from "tsup";
|
||||
import { peerDependencies } from "./package.json";
|
||||
|
||||
export default defineConfig((options) => {
|
||||
const dev = !!options.watch;
|
||||
return {
|
||||
entry: ["src/**/*.(ts|js)"],
|
||||
format: ["esm"],
|
||||
target: "node18",
|
||||
bundle: true,
|
||||
dts: true,
|
||||
sourcemap: true,
|
||||
clean: true,
|
||||
splitting: false,
|
||||
minify: !dev,
|
||||
external: [...Object.keys(peerDependencies)],
|
||||
tsconfig: "tsconfig.json",
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user