Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
- Update biome and fix lint errors
- Use packageManager field in package.json
- Update turbo.json to use tasks instead of pipelines
  • Loading branch information
kitsuyui committed Jun 10, 2024
1 parent 3af1445 commit 5bf0555
Show file tree
Hide file tree
Showing 14 changed files with 1,680 additions and 1,717 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4.0.0
with:
version: 8

- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ jobs:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4.0.0
with:
version: 8

- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4.0.0
with:
version: 8

- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4.0.0
with:
version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"quoteStyle": "single",
"semicolons": "asNeeded",
"jsxQuoteStyle": "double",
"trailingComma": "es5",
"trailingCommas": "es5",
"lineWidth": 80
}
},
Expand Down
28 changes: 14 additions & 14 deletions examples/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@
"@kitsuyui/react-timer": "workspace:^",
"@kitsuyui/react-treemap": "workspace:^",
"@kitsuyui/react-wavebox": "workspace:^",
"@playwright/test": "^1.44.0",
"@storybook/addon-essentials": "^8.1.1",
"@storybook/addon-interactions": "^8.1.1",
"@storybook/addon-links": "^8.1.1",
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
"@storybook/blocks": "^8.1.1",
"@storybook/react": "^8.1.1",
"@storybook/react-webpack5": "^8.1.1",
"@storybook/test": "^8.1.1",
"@storybook/test-runner": "^0.18.1",
"@playwright/test": "^1.44.1",
"@storybook/addon-essentials": "^8.1.6",
"@storybook/addon-interactions": "^8.1.6",
"@storybook/addon-links": "^8.1.6",
"@storybook/addon-webpack5-compiler-swc": "^1.0.3",
"@storybook/blocks": "^8.1.6",
"@storybook/react": "^8.1.6",
"@storybook/react-webpack5": "^8.1.6",
"@storybook/test": "^8.1.6",
"@storybook/test-runner": "^0.18.2",
"@swc/cli": "^0.3.12",
"@swc/core": "^1.5.7",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@swc/core": "^1.5.27",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"storybook": "^8.1.1",
"storybook": "^8.1.6",
"storybook-addon-swc": "^1.2.0"
},
"scripts": {
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"typedoc": "typedoc"
},
"devDependencies": {
"@biomejs/biome": "^1.7.3",
"@swc/core": "^1.5.24",
"@biomejs/biome": "^1.8.0",
"@swc/core": "^1.5.27",
"@swc/jest": "^0.2.36",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.0",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"concurrently": "^8.2.2",
Expand All @@ -47,8 +47,9 @@
"stylelint-config-recommended": "^14.0.0",
"ts-node": "^10.9.2",
"tsup": "^8.1.0",
"turbo": "^1.13.3",
"turbo": "^2.0.3",
"typedoc": "^0.25.13",
"typescript": "^5.4.5"
}
},
"packageManager": "pnpm@9.1.3"
}
2 changes: 1 addition & 1 deletion packages/dekamoji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "tsup --config ../../tsup.config.mjs --watch"
},
"devDependencies": {
"@types/node": "^20.14.0",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"react": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/editablelabel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "tsup --config ../../tsup.config.mjs --watch"
},
"devDependencies": {
"@types/node": "^20.14.0",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"react": "^18.3.1",
Expand Down
5 changes: 3 additions & 2 deletions packages/textfield/src/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const TextArea = forwardRef<HTMLTextAreaElement, WrapperProps>(
onChangeInputting: _2,
...propsExcludedWrapperProps
} = Object.assign({}, props)
const onBlur = propsExcludedWrapperProps.onBlur

useEffect(() => {
setInternalValue(props.value ?? '')
Expand Down Expand Up @@ -75,9 +76,9 @@ export const TextArea = forwardRef<HTMLTextAreaElement, WrapperProps>(
setIsInputting(false)
onChangeInputting?.(false)
onInputChunk?.(text)
propsExcludedWrapperProps.onBlur?.(e)
onBlur?.(e)
},
[onInputChunk, onChangeInputting, propsExcludedWrapperProps]
[onInputChunk, onChangeInputting, onBlur]
)

return (
Expand Down
5 changes: 3 additions & 2 deletions packages/textfield/src/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const TextField = forwardRef<HTMLInputElement, WrapperProps>(
onChangeInputting: _2,
...propsExcludedWrapperProps
} = Object.assign({}, props)
const onBlur = propsExcludedWrapperProps.onBlur

useEffect(() => {
setInternalValue(props.value ?? '')
Expand Down Expand Up @@ -76,9 +77,9 @@ export const TextField = forwardRef<HTMLInputElement, WrapperProps>(
setIsInputting(false)
onChangeInputting?.(false)
onInputChunk?.(text)
propsExcludedWrapperProps.onBlur?.(e)
onBlur?.(e)
},
[onInputChunk, onChangeInputting, propsExcludedWrapperProps]
[onInputChunk, onChangeInputting, onBlur]
)

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/wavebox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "tsup --config ../../tsup.config.mjs --watch"
},
"devDependencies": {
"@types/node": "^20.14.0",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"react": "^18.3.1",
Expand Down
Loading

0 comments on commit 5bf0555

Please sign in to comment.