Skip to content

Commit 2426b17

Browse files
committed
feat: add source, main, module, and types properties to package.json
1 parent 62623d6 commit 2426b17

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

package.json

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"clean": "rm -rf ./dist",
77
"build": "npm run clean && tsup"
88
},
9+
"source": "./src/index.ts",
10+
"main": "./dist/index.js",
11+
"module": "./dist/index.js",
12+
"types": "./dist/index.d.ts",
913
"exports": {
1014
".": {
1115
"import": {
@@ -16,36 +20,6 @@
1620
"types": "./dist/index.d.ts",
1721
"default": "./dist/index.js"
1822
}
19-
},
20-
"./ts": {
21-
"import": {
22-
"types": "./dist/ts/index.d.mts",
23-
"default": "./dist/ts/index.mjs"
24-
},
25-
"require": {
26-
"types": "./dist/ts/index.d.ts",
27-
"default": "./dist/ts/index.js"
28-
}
29-
},
30-
"./css": {
31-
"import": {
32-
"types": "./dist/css/index.d.mts",
33-
"default": "./dist/css/index.mjs"
34-
},
35-
"require": {
36-
"types": "./dist/css/index.d.ts",
37-
"default": "./dist/css/index.js"
38-
}
39-
},
40-
"./react": {
41-
"import": {
42-
"types": "./dist/react/index.d.mts",
43-
"default": "./dist/react/index.mjs"
44-
},
45-
"require": {
46-
"types": "./dist/react/index.d.ts",
47-
"default": "./dist/react/index.js"
48-
}
4923
}
5024
},
5125
"files": [

0 commit comments

Comments
 (0)