Skip to content

Commit

Permalink
fix: zod-validation-error type error (#4763)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe authored Nov 23, 2023
1 parent 27a160a commit 8b0915d
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 136 deletions.
2 changes: 0 additions & 2 deletions diffcases/arco-pro/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"esnext"
],
"allowJs": true,
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": false,
Expand Down
2 changes: 0 additions & 2 deletions examples/arco-pro/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"esnext"
],
"allowJs": true,
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": false,
Expand Down
1 change: 0 additions & 1 deletion examples/basic-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"strict": true /* Enable all strict type-checking options. */,
"skipLibCheck": true /* Skip type checking all .d.ts files. */
}
}
2 changes: 0 additions & 2 deletions examples/react-storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"strict": true,
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"jsx": "react-jsx",
"moduleResolution": "node"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@rspack/cli": "workspace:*",
"@taplo/cli": "^0.5.2",
"@types/jest": "29.1.0",
"@types/node": "16",
"@types/node": "^20.9.4",
"@types/rimraf": "3.0.2",
"commander": "10.0.1",
"cross-env": "^7.0.3",
Expand Down
2 changes: 0 additions & 2 deletions packages/create-rspack/template-react-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"target": "ES6",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
Expand Down
2 changes: 0 additions & 2 deletions packages/rspack-plugin-html/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// related issue: https://github.com/nodejs/node/issues/35889
"module": "CommonJS",
"moduleResolution": "Node10",
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"outDir": "dist",
"rootDir": "src"
},
Expand Down
2 changes: 0 additions & 2 deletions packages/rspack-plugin-react-refresh/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"outDir": "dist",
"rootDir": "src"
},
Expand Down
1 change: 0 additions & 1 deletion packages/rspack-test-tools/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"skipLibCheck": true,
"outDir": "dist",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@
"watchpack": "^2.4.0",
"webpack-sources": "3.2.3",
"zod": "^3.21.4",
"zod-validation-error": "1.2.0"
"zod-validation-error": "1.3.1"
}
}
2 changes: 0 additions & 2 deletions packages/rspack/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"outDir": "dist",
"rootDir": "src"
},
Expand Down
Loading

0 comments on commit 8b0915d

Please sign in to comment.