Skip to content

Commit

Permalink
fix use module exports, and bump 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
errorrik committed Dec 29, 2022
1 parent 7e15d23 commit eb26e30
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.2.1 (2022-12-29)
---------

- [修复] use 模块引用失败


2.2.0 (2022-12-28)
---------

Expand Down
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "san-store",
"version": "2.2.0",
"version": "2.2.1",
"description": "Application State Management for San",
"scripts": {
"build": "rm -rf dist && rollup --config && uglifyjs dist/san-store.source.js -mco dist/san-store.js && uglifyjs dist/san-store-use.source.js -mco dist/san-store-use.js && cp types/*.d.ts dist",
Expand Down Expand Up @@ -45,6 +45,17 @@
}
},

"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/san-store.source.js"
},
"./use": {
"types": "./dist/use.d.ts",
"default": "./dist/san-store-use.source.js"
}
},

"main": "dist/san-store.source.js",
"unpkg": "dist/san-store",
"sideEffects": false,
Expand Down

0 comments on commit eb26e30

Please sign in to comment.