Skip to content

Commit

Permalink
Maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
zakstucke committed Nov 29, 2023
1 parent 75258b2 commit 102e4a3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"author": "[email protected]",
"license": "MIT",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions js/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import type { Options } from "tsup";
export const tsup: Options = {
clean: true, // clean up the dist folder
dts: true, // generate dts files
format: ["esm"], // Only support ESM, fixes lots of import problems
format: ["cjs", "esm"],
minify: false, // Again allow downstream consumers to minify
bundle: false, // Don't bundle, allow downstream consumers to bundle
bundle: true, // Don't bundle, allow downstream consumers to bundle
skipNodeModulesBundle: true,
target: "es2020",
outDir: "./dist",
entry: ["bitbazaar/**/*.ts"], // look at all files in the project
entry: ["bitbazaar/*/index.ts", "bitbazaar/*/index.ts"], // look at all files in the project
};

0 comments on commit 102e4a3

Please sign in to comment.