Skip to content

Commit

Permalink
chore: a
Browse files Browse the repository at this point in the history
  • Loading branch information
q-u-n committed Feb 15, 2024
1 parent 1035ab0 commit 74b2c92
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
12 changes: 12 additions & 0 deletions packages/jotai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
},
"keywords": [
"react",
"state",
Expand Down
14 changes: 13 additions & 1 deletion packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@
"type": "module",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest --config jest.config.ts"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
},
"keywords": [
"react",
Expand Down
12 changes: 12 additions & 0 deletions packages/valtio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
},
"keywords": [
"react",
"state",
Expand Down
12 changes: 12 additions & 0 deletions packages/zustand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
"scripts": {
"test": "jest --config jest.config.ts"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
},
"keywords": [
"react",
"state",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = (args) => {

return [
createDeclarationConfig(input, output),
createESMConfig(`${input}/src/index.ts`, `${output}/index.ems.js`),
createESMConfig(`${input}/src/index.ts`, `${output}/index.mjs`),
createCommonJSConfig(`${input}/src/index.ts`, `${output}/index.cjs.js`),
createUMDConfig(
`${input}/src/index.ts`,
Expand Down

0 comments on commit 74b2c92

Please sign in to comment.