Skip to content

Commit 748ea1f

Browse files
authored
Merge pull request #809 from abraham/copilot/update-typescript-to-v6
Update TypeScript to v6
2 parents badd6a3 + 04fc07f commit 748ea1f

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"rimraf": "^6.0.1",
5959
"rollup": "^4.0.0",
6060
"ts-jest": "^29.0.0",
61-
"typescript": "^5.0.0",
61+
"typescript": "^6.0.3",
6262
"typescript-eslint": "^8.56.0"
6363
},
6464
"jest": {
@@ -67,7 +67,12 @@
6767
"<rootDir>/src"
6868
],
6969
"transform": {
70-
"^.+\\.tsx?$": "ts-jest"
70+
"^.+\\.tsx?$": [
71+
"ts-jest",
72+
{
73+
"tsconfig": "tsconfig.test.json"
74+
}
75+
]
7176
},
7277
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
7378
"moduleFileExtensions": [

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
4242

4343
/* Module Resolution Options */
44-
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
44+
"moduleResolution": "bundler" /* Specify module resolution strategy: 'bundler' for use with bundlers like Rollup. */,
4545
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
4646
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
4747
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
@@ -65,5 +65,6 @@
6565
/* Advanced Options */
6666
"skipLibCheck": true /* Skip type checking of declaration files. */,
6767
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
68-
}
68+
},
69+
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
6970
}

tsconfig.test.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"types": ["jest"]
5+
},
6+
"exclude": ["dist"]
7+
}

0 commit comments

Comments
 (0)