Superdiff provides a complete and readable diff for both arrays and objects. Plus, it supports stream and file inputs for handling large datasets efficiently, is battle-tested, has zero dependencies, and is super fast.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
994 B

import { defineConfig, Options } from "tsup";
const sharedConfig: Options = {
dts: true,
splitting: true,
clean: true,
treeshake: true,
shims: true,
minify: true,
};
export default defineConfig([
{
entry: ["src/index.ts"],
format: ["cjs", "esm"],
...sharedConfig,
platform: "neutral",
name: "MAIN",
},
{
entry: ["src/client.ts"],
format: ["esm"],
...sharedConfig,
platform: "browser",
name: "CLIENT",
},
{
entry: ["src/lib/stream-list-diff/client/worker/web-worker.ts"],
format: ["esm"],
...sharedConfig,
splitting: false,
platform: "browser",
name: "WEB WORKER",
},
{
entry: ["src/server.ts"],
format: ["cjs"],
...sharedConfig,
platform: "node",
name: "SERVER",
},
{
entry: ["src/lib/stream-list-diff/server/worker/node-worker.ts"],
format: ["cjs"],
...sharedConfig,
splitting: false,
shims: false,
platform: "node",
name: "NODEJS WORKER",
},
]);