Skip to content

Commit

Permalink
删除 main 和 types 属性
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc committed Aug 14, 2024
1 parent 2b1d8ca commit 1b4f837
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/electron-badge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npm install @cocos-fe/electron-badge

## API

### new ElectronBadge(max, win, [styleOpt]);
### new ElectronBadge(max, win[,styleOpt]);

- max: 角标的最大值,假设设置最大值为 99, 当 update 传入 100 时,会显示为: `99+`
- win: BrowserWindow, win32 平台是通过 win.setOverlayIcon() 来实现角标的。
Expand Down
7 changes: 4 additions & 3 deletions packages/electron-badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
"build:main": "cd ./main && tsc",
"build:render": "cd ./render && tsc"
},
"main": "./dist/main/index.js",
"types": "./dist/main/index.d.ts",
"exports": {
".": "./dist/main/index.js",
".": {
"require": "./dist/main/index.js",
"types": "./dist/main/index.d.ts"
},
"./main": {
"types": "./dist/main/index.d.ts",
"require": "./dist/main/index.js"
Expand Down

0 comments on commit 1b4f837

Please sign in to comment.