Skip to content

Commit

Permalink
Upgrade to latest TypeScript and Babel (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmans committed Aug 1, 2023
1 parent 23d147f commit 8c555e2
Show file tree
Hide file tree
Showing 4 changed files with 1,736 additions and 1,437 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-clocks-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"statery": minor
---

This package is now built using TypeScript 5.1.
13 changes: 9 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ module.exports = {
testPathIgnorePatterns: ["node_modules"],
testEnvironment: "jsdom",
moduleFileExtensions: ["js", "ts", "tsx"],
globals: {
"ts-jest": {
isolatedModules: true
}
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
isolatedModules: true,
babel: true,
tsconfig: "tsconfig.json"
}
]
}
}
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,25 @@
"ci:release": "pnpm ci:test && pnpm changeset publish"
},
"devDependencies": {
"@babel/core": "^7.19.0",
"@babel/preset-env": "^7.19.0",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@changesets/cli": "^2.24.1",
"@preconstruct/cli": "^2.2.1",
"@testing-library/react": "^13.3.0",
"@types/jest": "^28.1.6",
"@types/react": "^18.0.19",
"@types/react-dom": "^18.0.0",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.3",
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"rimraf": "^3.0.2",
"ts-jest": "^28.0.7",
"tslib": "^2.0.3",
"ts-jest": "^29.1.1",
"tslib": "^2.6.1",
"typedoc": "^0.23.9",
"typescript": "^4.1.3"
"typescript": "^5.1.6"
},
"peerDependencies": {
"react": ">=18.0"
Expand Down
Loading

0 comments on commit 8c555e2

Please sign in to comment.