Skip to content

Commit

Permalink
fix(types): 修复type打包失败
Browse files Browse the repository at this point in the history
  • Loading branch information
gxr404 committed Jun 4, 2024
1 parent 3dacf60 commit a87c130
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@types/node": "^20.11.26",
"@types/progress": "^2.0.5",
"@types/semver": "^7.5.8",
"@types/web-bluetooth": "^0.0.20",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@vitest/coverage-v8": "^1.6.0",
Expand All @@ -52,8 +53,9 @@
"msw": "^2.3.0",
"np": "^8.0.4",
"npm-run-all": "^4.1.5",
"rollup": "^3.28.0",
"rollup": "^4.18.0",
"tslib": "^2.6.1",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"main": "dist/es/index.js",
Expand Down
37 changes: 17 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"strict": true,
"declaration": true,
"noImplicitOverride": true,
Expand All @@ -12,7 +12,10 @@
"resolveJsonModule": true,
"paths": {
"@/*": ["./*"],
}
},
"types": [
"web-bluetooth"
]
},
"include": [
"./src/**/*"
Expand Down

0 comments on commit a87c130

Please sign in to comment.