Skip to content

Commit

Permalink
upgrade TypeScript to 5.6 and use babel for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Sep 24, 2024
1 parent b60b817 commit 015f4ef
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
9 changes: 8 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ module.exports = {
testEnvironment: 'jsdom',
roots: ['<rootDir>/test'],
transform: {
'^.+.(t|j)sx?$': [
'\\.tsx?$': [
'ts-jest',
{
tsconfig: {
outDir: './.ts-jest'
}
}
],
'\\.jsx?$': [
'babel-jest',
{
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-modules-commonjs']
}
]
},
transformIgnorePatterns: [
Expand Down
9 changes: 8 additions & 1 deletion jest.standalone.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ module.exports = {
testEnvironment: 'jsdom',
roots: ['<rootDir>/test'],
transform: {
'^.+.(t|j)sx?$': [
'\\.tsx?$': [
'ts-jest',
{
tsconfig: {
outDir: './.ts-jest'
}
}
],
'\\.jsx?$': [
'babel-jest',
{
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-modules-commonjs']
}
]
},
transformIgnorePatterns: [
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
"react-dom": ">=18"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
"@babel/preset-env": "^7.25.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
Expand All @@ -112,6 +115,7 @@
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"@typescript-eslint/typescript-estree": "^8.3.0",
"babel-jest": "^29.7.0",
"bootstrap": "^5.1.3",
"copyfiles": "^2.4.1",
"css-loader": "^7.0.0",
Expand Down Expand Up @@ -157,7 +161,7 @@
"ts-loader": "^9.3.0",
"ts-node": "^10.8.0",
"tsconfig-paths-webpack-plugin": "^4.0.0",
"typescript": "^5.3.3",
"typescript": "5.5",
"webpack": "^5.20.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.2"
Expand Down

0 comments on commit 015f4ef

Please sign in to comment.