Skip to content

Commit 984523b

Browse files
committed
Fixed build error
1 parent 4e042ad commit 984523b

File tree

6 files changed

+40
-4
lines changed

6 files changed

+40
-4
lines changed

.storybook/main.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,17 @@ module.exports = {
44
"@storybook/addon-docs",
55
"@storybook/addon-viewport",
66
"@storybook/addon-a11y",
7-
]
7+
],
8+
typescript: {
9+
reactDocgen: 'react-docgen-typescript',
10+
reactDocgenTypescriptOptions: {
11+
compilerOptions: {
12+
allowJs: true,
13+
checkJs: false,
14+
jsx: "react",
15+
allowSyntheticDefaultImports: false,
16+
esModuleInterop: false,
17+
},
18+
}
19+
}
820
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,8 @@
9797
"afterAll",
9898
"jest"
9999
]
100+
},
101+
"dependencies": {
102+
"postcss": "^8.4.7"
100103
}
101104
}

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export default {
2424
},
2525
],
2626
plugins: [
27+
resolve(),
2728
postcss({
2829
extensions: [".css"],
2930
extract: true,
3031
}),
3132
external(),
32-
resolve(),
3333
typescript({
3434
rollupCommonJSResolveHack: true,
3535
exclude: ["**/__tests__/**", "**/*.stories.tsx"],

src/UsageBarDark.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const items = [
1111
{
1212
name: "UI",
1313
value: 10,
14-
color: "#E85D04",
14+
color: "#E75D04",
1515
},
1616
{
1717
name: "Photos",

tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"include": ["src/**/*"],
3+
"exclude": ["node_modules"],
4+
"compilerOptions": {
5+
"jsx": "react"
6+
}
7+
}

yarn.lock

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10679,7 +10679,7 @@ nan@^2.12.1:
1067910679
resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee"
1068010680
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
1068110681

10682-
nanoid@^3.1.23:
10682+
nanoid@^3.1.23, nanoid@^3.3.1:
1068310683
version "3.3.1"
1068410684
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.1.tgz#6347a18cac88af88f58af0b3594b723d5e99bb35"
1068510685
integrity sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==
@@ -12196,6 +12196,15 @@ postcss@^7.0.0, postcss@^7.0.14, postcss@^7.0.26, postcss@^7.0.32, postcss@^7.0.
1219612196
picocolors "^0.2.1"
1219712197
source-map "^0.6.1"
1219812198

12199+
postcss@^8.4.7:
12200+
version "8.4.7"
12201+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.7.tgz#f99862069ec4541de386bf57f5660a6c7a0875a8"
12202+
integrity sha512-L9Ye3r6hkkCeOETQX6iOaWZgjp3LL6Lpqm6EtgbKrgqGGteRMNb9vzBfRL96YOSu8o7x3MfIH9Mo5cPJFGrW6A==
12203+
dependencies:
12204+
nanoid "^3.3.1"
12205+
picocolors "^1.0.0"
12206+
source-map-js "^1.0.2"
12207+
1219912208
prelude-ls@^1.2.1:
1220012209
version "1.2.1"
1220112210
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
@@ -13918,6 +13927,11 @@ source-list-map@^2.0.0:
1391813927
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
1391913928
integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==
1392013929

13930+
source-map-js@^1.0.2:
13931+
version "1.0.2"
13932+
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
13933+
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
13934+
1392113935
source-map-resolve@^0.5.0:
1392213936
version "0.5.3"
1392313937
resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a"

0 commit comments

Comments
 (0)