Skip to content

Commit

Permalink
[stdf]Added exports to package (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 committed Aug 26, 2023
1 parent 7de6eb6 commit 156e6ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions doc/guide/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.6

- STDF package 增加 `exports`,使其可在 SvelteKit 中直接引入使用,关联 [Issues](https://github.com/dufu1991/stdf/issues/9)[!issue|edhub|]

## 0.2.5

- Icon 修改 path 默认值,详见 [Icon](https://stdf.design/#/components?nav=icon&tab=4)
Expand Down
4 changes: 4 additions & 0 deletions doc/guide/changelog_en.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.6

- Added `exports` to STDF package, allowing it to be directly imported and used in SvelteKit. Related [Issues](https://github.com/dufu1991/stdf/issues/9). [!issue|edhub|]
-
## 0.2.5

- The default value of `path` in the Icon component has been modified. Please refer to the [Icon](https://stdf.design/#/components?nav=icon&tab=4) section for more details.
Expand Down
8 changes: 6 additions & 2 deletions packages/stdf/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"name": "stdf",
"version": "0.2.5",
"version": "0.2.6",
"description": "Mobile web component library based on Svelte and Tailwind",
"main": "dist/components/index.js",
"main": "./dist/components/index.js",
"exports": {
"svelte": "./dist/components/index.js",
"default": "./dist/components/index.js"
},
"scripts": {
"dist": "node scripts/dist",
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 156e6ea

Please sign in to comment.