Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dependencies): Update typescript version to ^5 #12191

Merged
merged 4 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore(dependencies): Update typescript version to ^5
  • Loading branch information
chooin committed Mar 12, 2024
commit 64a4b8d7983541c26c2953350b4bcf2fe9eed892
2 changes: 1 addition & 1 deletion packages/preset-umi/src/commands/generators/jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default (api: IApi) => {
jest: jestMajorVersion,
'@types/jest': jestMajorVersion,
// we use `jest.config.ts` so jest needs ts and ts-node
typescript: '^4',
typescript: '^5',
'ts-node': '^10',
'cross-env': '^7',
};
Expand Down
6 changes: 3 additions & 3 deletions packages/preset-umi/src/commands/generators/precommit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default (api: IApi) => {
h.addDevDeps({
husky: '^8',
prettier: '^2',
typescript: '^4',
typescript: '^5',
'lint-staged': '^13',
});

Expand Down Expand Up @@ -71,7 +71,7 @@ export default (api: IApi) => {
`
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install ${cliName} verify-commit $1
`.trimStart(),
);
Expand All @@ -88,7 +88,7 @@ npx --no-install ${cliName} verify-commit $1
`
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged --quiet
`.trimStart(),
);
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-umi/src/commands/generators/tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default (api: IApi) => {

const reactMajorVersion = parseInt(reactVersion.split('.')[0], 10) || 18;
h.addDevDeps({
typescript: '^4',
typescript: '^5',
'@types/react': `^${reactMajorVersion}`,
'@types/react-dom': `^${reactMajorVersion}`,
});
Expand Down