Skip to content

Commit c5ddb04

Browse files
chore(deps): general build audit & tslib (#2090)
* Move tslib to packages * Skip *.css.map files with incorrect mappings * Audit tsconfig.json
1 parent 50e22ba commit c5ddb04

File tree

4 files changed

+14
-25
lines changed

4 files changed

+14
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"react-virtuoso": "^2.16.5",
5757
"remark-gfm": "^3.0.1",
5858
"textarea-caret": "^3.1.0",
59+
"tslib": "^2.6.2",
5960
"unist-builder": "^3.0.0",
6061
"unist-util-visit": "^4.1.1"
6162
},
@@ -171,7 +172,6 @@
171172
"stream-chat": "^8.4.1",
172173
"style-loader": "^2.0.0",
173174
"ts-jest": "^26.5.1",
174-
"tslib": "2.3.0",
175175
"typescript": "^4.7.4",
176176
"url-loader": "^4.1.1",
177177
"webpack": "4.44.2",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ const basePlugins = ({ useBrowserResolve = false }) => [
8181
copy({
8282
targets: [
8383
{ dest: 'dist/assets', src: './node_modules/@stream-io/stream-chat-css/dist/assets/*' },
84-
{ dest: 'dist/css', src: './node_modules/@stream-io/stream-chat-css/dist/css/*' },
84+
{ dest: 'dist/css', src: './node_modules/@stream-io/stream-chat-css/dist/css/*.css' },
8585
{ dest: 'dist/scss', src: './node_modules/@stream-io/stream-chat-css/dist/scss/*' },
86-
{ dest: 'dist/css/v2', src: './node_modules/@stream-io/stream-chat-css/dist/v2/css/*' },
86+
{ dest: 'dist/css/v2', src: './node_modules/@stream-io/stream-chat-css/dist/v2/css/*.css' },
8787
{ dest: 'dist/scss/v2', src: './node_modules/@stream-io/stream-chat-css/dist/v2/scss/*' },
8888
],
8989
verbose: process.env.VERBOSE,

tsconfig.json

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
{
22
"compilerOptions": {
33
"baseUrl": "./src",
4-
"paths": {
5-
"*": ["src/@types/*"]
6-
},
74
"allowUnreachableCode": false,
8-
"allowUnusedLabels": false,
95
"esModuleInterop": true,
10-
"importsNotUsedAsValues": "error",
116
"forceConsistentCasingInFileNames": true,
127
"jsx": "react",
13-
"lib": ["esnext", "DOM"],
14-
"module": "esnext",
15-
"moduleResolution": "node",
8+
"lib": ["ESNext", "DOM"],
9+
"module": "ESNext",
10+
"moduleResolution": "Node",
1611
"noFallthroughCasesInSwitch": true,
1712
"noImplicitReturns": true,
1813
"noImplicitUseStrict": false,
@@ -25,22 +20,16 @@
2520
"strict": true,
2621
"target": "ES5",
2722
"allowSyntheticDefaultImports": true,
28-
"noEmitOnError": false,
23+
"noEmitOnError": true,
2924
"noImplicitAny": true,
3025
"allowJs": true,
3126
"checkJs": false,
3227
"outDir": "./dist",
3328
"declaration": true,
3429
"declarationDir": "./dist",
3530
"declarationMap": true,
36-
"types": ["vite/client"]
31+
"importHelpers": true
3732
},
3833
"include": ["./src/**/*"],
39-
"exclude": [
40-
"./src/mock-builders",
41-
"node_modules",
42-
"babel.config.js",
43-
"jest.config.js",
44-
"**/__tests__/*.test.js"
45-
]
34+
"exclude": ["./src/stories", "./src/mock-builders", "./src/**/__tests__/*"]
4635
}

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14044,11 +14044,6 @@ tsconfig-paths@^3.9.0:
1404414044
minimist "^1.2.0"
1404514045
strip-bom "^3.0.0"
1404614046

14047-
14048-
version "2.3.0"
14049-
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e"
14050-
integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==
14051-
1405214047
tslib@^1.8.1, tslib@^1.9.3:
1405314048
version "1.14.1"
1405414049
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
@@ -14064,6 +14059,11 @@ tslib@^2.4.0:
1406414059
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
1406514060
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
1406614061

14062+
tslib@^2.6.2:
14063+
version "2.6.2"
14064+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
14065+
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
14066+
1406714067
tsutils@^3.21.0:
1406814068
version "3.21.0"
1406914069
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"

0 commit comments

Comments
 (0)