Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit f88d990

Browse files
author
Daniel Sanchez
authored
Fix type generation (#172)
* Fix type generate after build * Set v0.9.0
1 parent 90531e3 commit f88d990

File tree

6 files changed

+20
-25
lines changed

6 files changed

+20
-25
lines changed

.storybook/webpack.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ module.exports = ({ config }) => {
44
exclude: [/node_modules/],
55
use: [
66
{
7-
loader: require.resolve('babel-loader'),
8-
options: {
9-
presets: [
10-
'@babel/preset-env',
11-
'@babel/preset-react',
12-
'@babel/preset-typescript',
13-
],
14-
},
7+
loader: require.resolve('ts-loader'),
158
},
169
]
1710
});

babel.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ module.exports = {
44
'@babel/preset-typescript',
55
'@babel/preset-react',
66
],
7-
plugins: ['react-docgen'],
87
};

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gnosis.pm/safe-react-components",
3-
"version": "0.8.6",
3+
"version": "0.9.0",
44
"description": "Gnosis UI components",
55
"main": "dist/index.min.js",
66
"typings": "dist/index.d.ts",
@@ -52,8 +52,6 @@
5252
"@types/styled-components": "^5.1.15",
5353
"@typescript-eslint/eslint-plugin": "^4.31.0",
5454
"@typescript-eslint/parser": "^4.31.0",
55-
"babel-loader": "^8.2.3",
56-
"babel-plugin-react-docgen": "^4.2.1",
5755
"copy-webpack-plugin": "^6.3.0",
5856
"eslint": "^7.32.0",
5957
"eslint-config-prettier": "^8.3.0",
@@ -71,6 +69,7 @@
7169
"rimraf": "^3.0.2",
7270
"storybook-addon-react-docgen": "^1.2.42",
7371
"styled-components": "^5.3.3",
72+
"ts-loader": "^8.2.0",
7473
"typescript": "^4.5.0",
7574
"url-loader": "^4.1.1",
7675
"webpack": "4.43.0",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"moduleResolution": "node",
1616
"resolveJsonModule": true,
1717
"isolatedModules": true,
18-
"noEmit": true,
18+
"noEmit": false,
1919
"jsx": "react"
2020
},
2121
"include": ["src"],
2222
"exclude": [
23-
"node_modules"
23+
"node_modules", "**/*.stories.ts", "**/*.stories.tsx"
2424
]
2525
}

webpack.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,7 @@ module.exports = {
3535
test: /\.(ts|js)x?$/,
3636
exclude: [/node_modules/],
3737
use: {
38-
loader: 'babel-loader',
39-
options: {
40-
presets: [
41-
'@babel/preset-env',
42-
'@babel/preset-react',
43-
'@babel/preset-typescript',
44-
],
45-
},
38+
loader: 'ts-loader',
4639
},
4740
},
4841
],

yarn.lock

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3434,7 +3434,7 @@ babel-jest@^26.6.3:
34343434
graceful-fs "^4.2.4"
34353435
slash "^3.0.0"
34363436

3437-
babel-loader@^8.2.2, babel-loader@^8.2.3:
3437+
babel-loader@^8.2.2:
34383438
version "8.2.3"
34393439
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.3.tgz#8986b40f1a64cacfcb4b8429320085ef68b1342d"
34403440
integrity sha512-n4Zeta8NC3QAsuyiizu0GkmRcQ6clkV9WFUnUf1iXP//IeSKbWjofW3UHyZVwlOB4y039YQKefawyTn64Zwbuw==
@@ -5174,7 +5174,7 @@ endent@^2.0.1:
51745174
fast-json-parse "^1.0.3"
51755175
objectorarray "^1.0.5"
51765176

5177-
enhanced-resolve@^4.1.0, enhanced-resolve@^4.1.1, enhanced-resolve@^4.5.0:
5177+
enhanced-resolve@^4.0.0, enhanced-resolve@^4.1.0, enhanced-resolve@^4.1.1, enhanced-resolve@^4.5.0:
51785178
version "4.5.0"
51795179
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.5.0.tgz#2f3cfd84dbe3b487f18f2db2ef1e064a571ca5ec"
51805180
integrity sha512-Nv9m36S/vxpsI+Hc4/ZGRs0n9mXqSWGGq49zxb/cJfPAQMbUtttJAlNPS4AQzaBdw/pKskw5bMbekT/Y7W/Wlg==
@@ -8330,7 +8330,7 @@ micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4:
83308330
snapdragon "^0.8.1"
83318331
to-regex "^3.0.2"
83328332

8333-
micromatch@^4.0.2, micromatch@^4.0.4:
8333+
micromatch@^4.0.0, micromatch@^4.0.2, micromatch@^4.0.4:
83348334
version "4.0.4"
83358335
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9"
83368336
integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==
@@ -11283,6 +11283,17 @@ ts-essentials@^2.0.3:
1128311283
resolved "https://registry.yarnpkg.com/ts-essentials/-/ts-essentials-2.0.12.tgz#c9303f3d74f75fa7528c3d49b80e089ab09d8745"
1128411284
integrity sha512-3IVX4nI6B5cc31/GFFE+i8ey/N2eA0CZDbo6n0yrz0zDX8ZJ8djmU1p+XRz7G3is0F3bB3pu2pAroFdAWQKU3w==
1128511285

11286+
ts-loader@^8.2.0:
11287+
version "8.3.0"
11288+
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-8.3.0.tgz#83360496d6f8004fab35825279132c93412edf33"
11289+
integrity sha512-MgGly4I6cStsJy27ViE32UoqxPTN9Xly4anxxVyaIWR+9BGxboV4EyJBGfR3RePV7Ksjj3rHmPZJeIt+7o4Vag==
11290+
dependencies:
11291+
chalk "^4.1.0"
11292+
enhanced-resolve "^4.0.0"
11293+
loader-utils "^2.0.0"
11294+
micromatch "^4.0.0"
11295+
semver "^7.3.4"
11296+
1128611297
ts-pnp@^1.1.6:
1128711298
version "1.2.0"
1128811299
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.2.0.tgz#a500ad084b0798f1c3071af391e65912c86bca92"

0 commit comments

Comments
 (0)