Skip to content

Commit 2d4753d

Browse files
committed
[optimize] upgrade to Husky 9
1 parent 78e31ce commit 2d4753d

5 files changed

Lines changed: 28 additions & 36 deletions

File tree

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm test

.husky/pre-push

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm run build

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "boot-cell",
3-
"version": "2.0.0-beta.9",
3+
"version": "2.0.0-beta.10",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
66
"description": "Web Components UI library based on WebCell v3, BootStrap v5, BootStrap Icon v1 & FontAwesome v6",
@@ -49,15 +49,15 @@
4949
"@parcel/transformer-less": "~2.11.0",
5050
"@parcel/transformer-typescript-tsc": "^2.11.0",
5151
"@parcel/transformer-typescript-types": "~2.11.0",
52-
"@peculiar/webcrypto": "^1.4.4",
52+
"@peculiar/webcrypto": "^1.4.5",
5353
"@tech_query/snabbdom-looks-like": "^2.0.1",
5454
"@types/classnames": "^2.3.1",
5555
"@types/jest": "^29.5.11",
5656
"@types/resize-observer-browser": "^0.1.11",
5757
"@types/turndown": "^5.0.4",
5858
"cross-env": "^7.0.3",
5959
"element-internals-polyfill": "^1.3.10",
60-
"husky": "^8.0.3",
60+
"husky": "^9.0.6",
6161
"identity-obj-proxy": "^3.0.0",
6262
"iterable-observer": "^1.0.1",
6363
"jest": "^29.7.0",
@@ -67,14 +67,14 @@
6767
"open-cli": "^8.0.0",
6868
"parcel": "~2.11.0",
6969
"prettier": "^3.2.4",
70-
"ts-jest": "^29.1.1",
70+
"ts-jest": "^29.1.2",
7171
"ts-node": "^10.9.2",
7272
"typedoc": "^0.25.7",
73-
"typedoc-plugin-mdn-links": "^3.1.13",
73+
"typedoc-plugin-mdn-links": "^3.1.14",
7474
"typescript": "~5.3.3"
7575
},
7676
"scripts": {
77-
"prepare": "husky install",
77+
"prepare": "husky",
7878
"lint": "lint-staged",
7979
"test": "lint-staged",
8080
"start": "cd test/ && parcel index.html --open",

pnpm-lock.yaml

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/Form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export type FormControlProps<T extends FormControlTag> = WebCellProps &
8181
};
8282

8383
export const FormControl = <T extends FormControlTag = 'input'>({
84-
as: Tag,
84+
as: Tag = 'input' as T,
8585
className = '',
8686
htmlSize,
8787
size,

0 commit comments

Comments
 (0)