Files
firecrawl/apps/js-sdk/firecrawl/tsup.config.ts
T
Gergő Móricz 7128f83a7a fix(js-sdk): isows import issues (FIR-1586) (FIR-1536) (#1411)
* attempt

* improvements

* kill isows -- there's been native websocket support in node since 21

* clean up the diff
2025-04-04 17:54:37 +02:00

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"),
};
},
});