Skip to content

Commit

Permalink
Chore: Improve configurations related to Typescript in Livechat (Rock…
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler authored and bkrith committed Nov 12, 2022
1 parent ec8f8fe commit 061b9b6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
4 changes: 2 additions & 2 deletions packages/livechat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"eslint": "eslint src",
"stylelint": "stylelint 'src/**/*.scss'",
"storybook": "start-storybook -p 9001 -c .storybook",
"build-storybook": "build-storybook"
"build-storybook": "build-storybook",
"typecheck": "tsc -p tsconfig.typecheck.json"
},
"devDependencies": {
"@babel/eslint-parser": "^7.18.9",
Expand Down Expand Up @@ -74,7 +75,6 @@
"stylelint": "^14.9.1",
"stylelint-order": "^5.0.0",
"svg-loader": "^0.0.2",
"ts-loader": "^8.4.0",
"typescript": "~4.5.5",
"url-loader": "^4.1.1",
"webpack": "^4.44.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/livechat/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"allowJs": true,
"checkJs": false,
"noImplicitAny": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
"esModuleInterop": true,
},
"exclude": [
"./node_modules",
Expand Down
8 changes: 8 additions & 0 deletions packages/livechat/tsconfig.typecheck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"skipLibCheck": true,
"noEmit": true
},
"exclude": [ "**/dist/**", "**/node_modules/**"]
}
4 changes: 2 additions & 2 deletions packages/livechat/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = (env, argv) => [
},
{
test: /\.tsx?$/,
use: 'ts-loader',
use: 'babel-loader',
exclude: ['/node_modules/'],
},
{
Expand Down Expand Up @@ -234,7 +234,7 @@ module.exports = (env, argv) => [
},
{
test: /\.tsx?$/,
use: 'ts-loader',
use: 'babel-loader',
exclude: ['/node_modules/'],
},
],
Expand Down
21 changes: 2 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5928,7 +5928,6 @@ __metadata:
stylelint: ^14.9.1
stylelint-order: ^5.0.0
svg-loader: ^0.0.2
ts-loader: ^8.4.0
typescript: ~4.5.5
url-loader: ^4.1.1
webpack: ^4.44.1
Expand Down Expand Up @@ -16291,7 +16290,7 @@ __metadata:
languageName: node
linkType: hard

"enhanced-resolve@npm:^4.0.0, enhanced-resolve@npm:^4.1.1, enhanced-resolve@npm:^4.5.0":
"enhanced-resolve@npm:^4.1.1, enhanced-resolve@npm:^4.5.0":
version: 4.5.0
resolution: "enhanced-resolve@npm:4.5.0"
dependencies:
Expand Down Expand Up @@ -24764,7 +24763,7 @@ __metadata:
languageName: node
linkType: hard

"micromatch@npm:^4.0.0, micromatch@npm:^4.0.2, micromatch@npm:^4.0.4, micromatch@npm:^4.0.5":
"micromatch@npm:^4.0.2, micromatch@npm:^4.0.4, micromatch@npm:^4.0.5":
version: 4.0.5
resolution: "micromatch@npm:4.0.5"
dependencies:
Expand Down Expand Up @@ -33764,22 +33763,6 @@ __metadata:
languageName: node
linkType: hard

"ts-loader@npm:^8.4.0":
version: 8.4.0
resolution: "ts-loader@npm:8.4.0"
dependencies:
chalk: ^4.1.0
enhanced-resolve: ^4.0.0
loader-utils: ^2.0.0
micromatch: ^4.0.0
semver: ^7.3.4
peerDependencies:
typescript: "*"
webpack: "*"
checksum: 79da0f364c013231bff28baede3f4f4081b1cca30b24df2d9f31a0517e0524eca2c8e4d438b853b1566a3a8eb9ff51ab0b36743346f0b3d5daa7001c98e5c738
languageName: node
linkType: hard

"ts-node@npm:^10.9.1":
version: 10.9.1
resolution: "ts-node@npm:10.9.1"
Expand Down

0 comments on commit 061b9b6

Please sign in to comment.