7128f83a7a
* attempt * improvements * kill isows -- there's been native websocket support in node since 21 * clean up the diff
18 lines
431 B
TypeScript
18 lines
431 B
TypeScript
import { defineConfig } from "tsup";
|
|
|
|
export default defineConfig({
|
|
entryPoints: ["src/index.ts"],
|
|
format: ["cjs", "esm"],
|
|
dts: true,
|
|
outDir: "dist",
|
|
clean: true,
|
|
platform: "node",
|
|
target: "node22",
|
|
noExternal: ["typescript-event-target"],
|
|
esbuildOptions(options) {
|
|
options.define = {
|
|
...options.define,
|
|
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV || "production"),
|
|
};
|
|
},
|
|
}); |