Skip to content

Commit 9105bfe

Browse files
try fixing the package issues
1 parent cc61ccf commit 9105bfe

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
{
22
"name": "@curiousleaf/utils",
33
"description": "A lightweight set of utilities",
4-
"version": "1.0.39",
4+
"version": "1.0.40",
55
"license": "MIT",
6+
"type": "module",
67
"author": {
78
"name": "Piotr Kulpinski",
89
"email": "[email protected]",
910
"url": "https://kulpinski.pl"
1011
},
1112
"repository": "curious-leaf/utils",
1213
"main": "./dist/index.js",
13-
"module": "./dist/index.mjs",
1414
"types": "./dist/index.d.ts",
1515
"exports": {
16-
".": {
17-
"require": "./dist/index.js",
18-
"import": "./dist/index.mjs",
19-
"types": "./dist/index.d.ts"
20-
}
16+
"default": "./dist/index.js",
17+
"types": "./dist/index.d.ts"
2118
},
19+
"files": ["dist"],
2220
"scripts": {
2321
"build": "tsup",
2422
"lint": "bun biome lint --apply .",

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from "tsup"
22

33
export default defineConfig({
44
entry: ["src/index.ts"],
5-
format: ["cjs", "esm"], // Build for commonJS and ESmodules
5+
format: ["esm"], // Build for commonJS and ESmodules
66
dts: true, // Generate declaration file (.d.ts)
77
splitting: false,
88
sourcemap: true,

0 commit comments

Comments
 (0)