Skip to content

Commit 7fbc9fa

Browse files
authored
Merge pull request #56
Bump typescript from 5.5.2 to 5.9.2
2 parents 19f8bb4 + 98741a1 commit 7fbc9fa

File tree

5 files changed

+57
-43
lines changed

5 files changed

+57
-43
lines changed

package-lock.json

Lines changed: 38 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@openpgp/jsdoc": "^3.6.11",
3131
"@types/chai": "^4.3.11",
3232
"@types/mocha": "^10.0.6",
33-
"@types/node": "^20.11.4",
33+
"@types/node": "^20.19.11",
3434
"@typescript-eslint/eslint-plugin": "^5.59.6",
3535
"@typescript-eslint/parser": "^5.59.6",
3636
"chai": "^4.3.7",
@@ -46,8 +46,8 @@
4646
"ts-mocha": "^10.0.0",
4747
"ts-node": "^10.9.2",
4848
"tsx": "^4.7.0",
49-
"typescript": "^5.5.2",
50-
"web-streams-polyfill": "^4.0.0"
49+
"typescript": "^5.9.2",
50+
"web-streams-polyfill": "^4.2.0"
5151
},
5252
"peerDependencies": {
5353
"typescript": ">=4.2"
@@ -58,7 +58,8 @@
5858
}
5959
},
6060
"scripts": {
61-
"test-type-definitions": "tsx test/typescript.test.ts && tsx --tsconfig test/tsconfig.es5.json test/typescript.test.ts",
61+
"test-type-definitions": "tsc --project test/tsconfig.test.json && tsx test/typescript.test.ts && npm run test-type-definitions-es5",
62+
"test-type-definitions-es5": "tsc --project test/tsconfig.es5.test.json && tsx --tsconfig test/tsconfig.es5.test.json test/typescript.test.ts",
6263
"test-browser": "karma start karma.conf.cjs",
6364
"test-node": "ts-mocha -n loader=ts-node/esm ./test/node.test.ts ./test/common.test.ts",
6465
"lint": "eslint lib test",

test/tsconfig.es5.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/tsconfig.es5.test.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.test.json",
3+
"compilerOptions": {
4+
"target": "es5"
5+
}
6+
}

test/tsconfig.test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true // code tested by tsx
5+
},
6+
"files": ["typescript.test.ts"]
7+
8+
}

0 commit comments

Comments
 (0)