Skip to content

Commit 404f30b

Browse files
authored
fix: default layout func (#37)
Perform an optional-chain assignment inside the component constructor instead of having a default parameter defined in its interface.
2 parents fffd2ac + bc9d108 commit 404f30b

File tree

4 files changed

+774
-771
lines changed

4 files changed

+774
-771
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ jobs:
4242
run: pnpm build
4343
- name: Run Tests
4444
run: pnpm test:coverage
45+
- name: Publint
46+
run: pnpm publint

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "@beautiful-tree/react",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"private": false,
55
"author": "Andres Correa Casablanca <castarco@coderspirit.xyz>",
66
"license": "MIT",
77
"main": "./dist/beautiful-tree.cjs",
88
"module": "./dist/beautiful-tree.mjs",
9+
"types": "./dist/beautiful-tree.d.ts",
910
"exports": {
1011
".": {
1112
"types": "./dist/beautiful-tree.d.ts",
@@ -51,12 +52,12 @@
5152
"@storybook/react-vite": "^7.4.0",
5253
"@storybook/testing-library": "^0.2.0",
5354
"@testing-library/react": "^14.0.0",
54-
"@types/node": "^20.5.8",
55+
"@types/node": "^20.6.0",
5556
"@types/react": "^18.2.21",
5657
"@types/react-dom": "^18.2.7",
57-
"@typescript-eslint/parser": "^6.5.0",
58-
"@vitest/coverage-v8": "^0.34.3",
59-
"eslint": "^8.48.0",
58+
"@typescript-eslint/parser": "^6.6.0",
59+
"@vitest/coverage-v8": "^0.34.4",
60+
"eslint": "^8.49.0",
6061
"eslint-plugin-react": "^7.33.2",
6162
"eslint-plugin-react-hooks": "^4.6.0",
6263
"eslint-plugin-react-refresh": "^0.4.3",
@@ -66,11 +67,11 @@
6667
"publint": "^0.2.2",
6768
"react": "^18.2.0",
6869
"react-dom": "^18.2.0",
69-
"rollup": "^3.28.1",
70+
"rollup": "^3.29.0",
7071
"rollup-plugin-dts": "^5.3.1",
7172
"storybook": "^7.4.0",
7273
"typescript": "^5.2.2",
73-
"vitest": "^0.34.3"
74+
"vitest": "^0.34.4"
7475
},
7576
"peerDependencies": {
7677
"react": "^18.2.0",

0 commit comments

Comments
 (0)