Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
feat: add commonjs support
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 12, 2023
1 parent 3f0ebb6 commit f74bdbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "MIT",
"author": "KATT",
"type": "module",
"exports": {
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"default": "./lib/index.js"
},
"main": "./lib/index.js",
"files": [
"lib/",
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
clean: true,
dts: true,
entry: ["src/**/*.ts", "!src/**/*.test.*"],
format: "esm",
format: ["cjs", "esm"],
outDir: "lib",
sourcemap: true,
});

0 comments on commit f74bdbe

Please sign in to comment.