Skip to content

Commit

Permalink
chore: add trict: false to get better compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Jul 21, 2024
1 parent c8a0794 commit c38d0f5
Show file tree
Hide file tree
Showing 12 changed files with 1,088 additions and 1,487 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-planes-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/ts-node-paths": patch
---

add `trict: false` to get better compatibility
9 changes: 4 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
"[javascript]": {
"editor.formatOnSave": false
},
"eslint.experimental.useFlatConfig": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
"editor.formatOnSave": false
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
}
"editor.formatOnSave": false
}
}
626 changes: 313 additions & 313 deletions .yarn/releases/yarn-4.2.2.cjs → .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
yarnPath: .yarn/releases/yarn-4.3.1.cjs
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,36 +63,36 @@
},
"dependencies": {
"colorette": "^2.0.20",
"get-tsconfig": "^4.7.5",
"get-tsconfig": "^4.7.6",
"package-up": "^5.0.0",
"ts-node": "11.0.0-beta.1",
"tsconfig-paths": "^4.2.0"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.5",
"@changesets/cli": "2.27.7",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@hyperse/eslint-config-hyperse": "^1.0.7",
"@types/node": "^20.14.2",
"@hyperse/eslint-config-hyperse": "^1.0.10",
"@types/node": "^20.14.11",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.4.0",
"execa": "^9.2.0",
"husky": "9.0.11",
"lint-staged": "15.2.6",
"eslint": "^9.7.0",
"execa": "^9.3.0",
"husky": "9.1.1",
"lint-staged": "15.2.7",
"npm-run-all": "^4.1.5",
"tsup": "^8.1.0",
"tsx": "^4.15.2",
"typescript": "^5.4.5",
"vite": "^5.2.13",
"vitest": "^1.6.0"
"tsup": "^8.2.1",
"tsx": "^4.16.2",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vitest": "^2.0.3"
},
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public"
},
"packageManager": "yarn@4.2.2"
"packageManager": "yarn@4.3.1"
}
2 changes: 2 additions & 0 deletions src/tsconfig/getCompilerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ export function getCompilerOptions(path: string): CompilerOptions {
return {
paths: {},
...compilerOptions,
// force use `strict` to false here, we can avoid some unnecessary ts check errors
strict: false,
} as CompilerOptions;
}
2 changes: 1 addition & 1 deletion tsconfig-tests/tsconfig.compiler-options.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"include": []
}
}
4 changes: 2 additions & 2 deletions tsconfig-tests/tsconfig.fields.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"compilerOptions": {
"baseUrl": "./",
"baseUrl": "./"
}
}
}
4 changes: 2 additions & 2 deletions tsconfig-tests/tsconfig.npm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "@hyperse/eslint-config-hyperse/tsconfig.base.json",
"compilerOptions": {
"baseUrl": "./",
"baseUrl": "./"
}
}
}
8 changes: 2 additions & 6 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@
"sourceMap": false,
"paths": {}
},
"exclude": [
"**/*.stories.tsx",
"**/*.stories.mdx",
".storybook/**"
]
}
"exclude": ["**/*.stories.tsx", "**/*.stories.mdx", ".storybook/**"]
}
17 changes: 4 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@
"baseUrl": "./src",
"outDir": "dist",
"rootDir": ".",
"types": [
"vitest/globals"
],
"types": ["vitest/globals"],
"paths": {
"@hyperse/ts-node-paths": [
"../src/index.js"
]
"@hyperse/ts-node-paths": ["../src/index.js"]
}
},
"include": [
"scripts/build.ts",
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
]
}
"include": ["scripts/build.ts", "next-env.d.ts", "**/*.ts", "**/*.tsx"]
}
Loading

0 comments on commit c38d0f5

Please sign in to comment.