Skip to content

Commit 015bb9f

Browse files
committed
adjust exports to support non-ts environments
1 parent 33fdf9b commit 015bb9f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
dist
55
jotai
66
node_modules
7+
.DS_Store

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"./package.json": "./package.json",
2222
".": {
2323
"import": {
24-
"types": "./src/index.ts",
25-
"default": "./src/index.ts"
24+
"types": "./dist/index.d.ts",
25+
"default": "./dist/index.js"
2626
},
2727
"require": {
2828
"types": "./dist/cjs/index.d.ts",
@@ -47,6 +47,7 @@
4747
"fix": "pnpm run '/^fix:.*/'",
4848
"fix:format": "prettier --write .",
4949
"fix:lint": "eslint --config ./eslint.config.ts --fix .",
50+
"pretest": "pnpm compile",
5051
"test": "pnpm run \"/^test:.*/\"",
5152
"test:format": "prettier --list-different .",
5253
"test:types": "tsc --noEmit",

0 commit comments

Comments
 (0)