chore(cli): emit bundle in ESM format (#3777)

This commit is contained in:
James George
2024-02-05 22:55:05 +05:30
committed by GitHub
parent 3d6adcc39d
commit 3482743782
11 changed files with 232 additions and 188 deletions

View File

@@ -3,17 +3,14 @@ import { defineConfig } from "tsup";
export default defineConfig({
entry: [ "./src/index.ts" ],
outDir: "./dist/",
format: ["cjs"],
format: ["esm"],
platform: "node",
sourcemap: true,
bundle: true,
target: "node12",
target: "esnext",
skipNodeModulesBundle: false,
esbuildOptions(options) {
options.bundle = true
},
noExternal: [
/\w+/
],
clean: true,
});