From eb26e30f4fd00d8aa3fa6fd49a0e1693743b9e10 Mon Sep 17 00:00:00 2001 From: errorrik Date: Thu, 29 Dec 2022 18:19:29 +0800 Subject: [PATCH] fix use module exports, and bump 2.2.1 --- CHANGELOG.md | 6 ++++++ package.json | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2025d4a..e5c3d9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +2.2.1 (2022-12-29) +--------- + +- [修复] use 模块引用失败 + + 2.2.0 (2022-12-28) --------- diff --git a/package.json b/package.json index 8f79f00..5b0f4bf 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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,