Skip to content

Commit 61ce69b

Browse files
committed
fix(storybook): fix storybook build
1 parent 858a71b commit 61ce69b

File tree

6 files changed

+1331
-1137
lines changed

6 files changed

+1331
-1137
lines changed

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"prepare": "is-ci || husky install"
3333
},
3434
"dependencies": {
35+
"@formio/choices.js": "^9.0.1",
3536
"@types/classnames": "^2.2.11",
3637
"@types/enzyme": "^3.10.8",
3738
"@types/react": "^17.0.2",
@@ -40,7 +41,6 @@
4041
"@types/react-router": "^5.1.11",
4142
"@types/react-router-dom": "^5.1.7",
4243
"@types/react-table": "^7.0.28",
43-
"@formio/choices.js": "^9.0.1",
4444
"connected-react-router": "6.9.1",
4545
"formiojs": "^4.14.13",
4646
"history": "5.3.0",
@@ -60,47 +60,47 @@
6060
"@commitlint/config-conventional": "^17.0.3",
6161
"@swc/core": "^1.2.208",
6262
"@swc/jest": "^0.2.21",
63+
"@testing-library/dom": "^8.14.0",
64+
"@testing-library/jest-dom": "^5.16.4",
65+
"@testing-library/react": "^12.1.5",
66+
"@testing-library/user-event": "^14.2.1",
6367
"@tsed/monorepo-utils": "1.17.8",
6468
"@types/ejs": "^3.0.5",
6569
"@types/jest": "27.0.2",
6670
"@types/lodash": "4.14.168",
6771
"@types/node": "^18.11.18",
6872
"@types/prop-types": "15.7.3",
69-
"@testing-library/dom": "^8.14.0",
70-
"@testing-library/jest-dom": "^5.16.4",
71-
"@testing-library/react": "^12.1.5",
72-
"@testing-library/user-event": "^14.2.1",
7373
"autoprefixer": "^10.4.7",
74-
"cross-env": "7.0.3",
7574
"babel-eslint": "^10.1.0",
75+
"camelcase": "6.3.0",
76+
"cross-env": "7.0.3",
7677
"eslint": "^8.15.0",
77-
"eslint-config-react-app": "^7.0.1",
78-
"eslint-plugin-jsx-a11y": "^6.5.1",
7978
"eslint-config-prettier": "^8.5.0",
79+
"eslint-config-react-app": "^7.0.1",
8080
"eslint-plugin-import": "^2.26.0",
81+
"eslint-plugin-jsx-a11y": "^6.5.1",
8182
"eslint-plugin-prettier": "^4.2.1",
8283
"eslint-plugin-react": "^7.30.1",
8384
"eslint-plugin-react-hooks": "^4.6.0",
8485
"eslint-plugin-simple-import-sort": "^7.0.0",
8586
"eslint-plugin-testing-library": "^5.5.1",
8687
"eslint-plugin-workspaces": "^0.7.0",
88+
"fs-extra": "10.1.0",
89+
"husky": "^8.0.1",
8790
"jest": "^28.1.2",
8891
"jest-environment-jsdom": "^28.1.2",
8992
"jest-watch-typeahead": "^1.1.0",
93+
"lint-staged": "13.0.3",
94+
"microbundle": "0.13.0",
9095
"postcss": "^8.4.14",
9196
"postcss-flexbugs-fixes": "5.0.2",
92-
"postcss-safe-parser": "6.0.0",
97+
"postcss-nested": "^5.0.6",
9398
"postcss-normalize": "10.0.1",
9499
"postcss-preset-env": "7.7.2",
95-
"postcss-nested": "^5.0.6",
96-
"fs-extra": "10.1.0",
97-
"camelcase": "6.3.0",
98-
"rimraf": "^3.0.2",
99-
"husky": "^8.0.1",
100-
"lint-staged": "13.0.3",
101-
"microbundle": "0.13.0",
100+
"postcss-safe-parser": "6.0.0",
102101
"prettier": "^2.6.2",
103102
"prettier-eslint": "^14.0.3",
103+
"rimraf": "^3.0.2",
104104
"semantic-release": "19.0.3",
105105
"semantic-release-slack-bot": "3.5.3",
106106
"typescript": "^4.1.3",

packages/storybook/.eslintignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/storybook/.eslintrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/tailwind-formio/.storybook/main.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const formioDir = dirname(require.resolve('@tsed/react-formio'))
44
const formioContainerDir = dirname(require.resolve('@tsed/react-formio-container'))
55
const tailwindDir = dirname(require.resolve('@tsed/tailwind-formio'))
66

7-
const scanDirs = (dir) => [
7+
const scanDirs = dir => [
88
join(dir, '**/*.stories.mdx'),
99
join(dir, '**/*.story.mdx'),
1010
join(dir, '**/*.story.@(js|jsx|ts|tsx)'),
@@ -33,8 +33,7 @@ module.exports = {
3333
sourceMap: true
3434
}
3535
}
36-
}
37-
],
36+
}],
3837
stories: [
3938
join(rootDir, '**/*.stories.mdx'),
4039
join(rootDir, '**/*.stories.@(js|jsx|ts|tsx)'),
@@ -48,7 +47,12 @@ module.exports = {
4847
reactDocgen: 'react-docgen-typescript',
4948
reactDocgenTypescriptOptions: {
5049
shouldExtractLiteralValuesFromEnum: true,
51-
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true)
50+
propFilter: prop => prop.parent ? !/node_modules/.test(prop.parent.fileName) : true
5251
}
53-
}
52+
},
53+
babel: options => ({
54+
...options,
55+
'plugins': ['@babel/plugin-proposal-class-properties']
56+
}),
57+
framework: '@storybook/react'
5458
}

packages/tailwind-formio/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"devDependencies": {
1717
"@babel/core": "^7.10.2",
1818
"@sambego/storybook-state": "2.0.1",
19-
"@storybook/addon-actions": "6.5.9",
20-
"@storybook/addon-docs": "6.5.9",
21-
"@storybook/addon-essentials": "6.5.9",
22-
"@storybook/addon-links": "6.5.9",
19+
"@storybook/addon-actions": "6.5.16",
20+
"@storybook/addon-docs": "6.5.16",
21+
"@storybook/addon-essentials": "6.5.16",
22+
"@storybook/addon-links": "6.5.16",
2323
"@storybook/addon-postcss": "^2.0.0",
24-
"@storybook/addon-viewport": "^6.5.9",
25-
"@storybook/addons": "6.5.9",
26-
"@storybook/react": "6.5.9",
24+
"@storybook/addon-viewport": "6.5.16",
25+
"@storybook/addons": "6.5.16",
26+
"@storybook/react": "6.5.16",
2727
"@svgr/webpack": "6.5.1",
2828
"@tsed/config": "2.0.0",
2929
"@tsed/tailwind": "2.0.0",
@@ -55,4 +55,4 @@
5555
},
5656
"dependencies": {},
5757
"peerDependencies": {}
58-
}
58+
}

0 commit comments

Comments
 (0)