mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-31 07:11:00 +02:00
Upgrade typescript to version 6.0.3
This is a major version bump containing two breaking changes for us: - the `baseUrl` option is removed; - the `moduleResolution` option doesn't support `node10` (or the `node` alias) anymore. The migration guide at https://github.com/microsoft/TypeScript/issues/62508 indicates that we can remove `baseUrl` and change `moduleResolution` to `bundler` (the latter is consistent with what other projects do that are linked to the issue, and more details on that configuration option can be found at https://www.typescriptlang.org/tsconfig/#moduleResolution). Note that this is enough to get `npx gulp typestest` green and that is all validation we can do on our side, so as usual if any follow-up fixes for types are necessary we rely on the community to provide patches and extend the types test where possible to improve validation.
This commit is contained in:
parent
c67306b435
commit
4da7a9aa29
8
package-lock.json
generated
8
package-lock.json
generated
@ -62,7 +62,7 @@
|
||||
"terser-webpack-plugin": "^5.6.0",
|
||||
"tsc-alias": "^1.8.17",
|
||||
"ttest": "^4.0.0",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript": "^6.0.3",
|
||||
"vinyl": "^3.0.1",
|
||||
"webpack": "^5.106.2",
|
||||
"webpack-stream": "^7.0.0"
|
||||
@ -11849,9 +11849,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.9.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"version": "6.0.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
|
||||
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
|
||||
@ -57,7 +57,7 @@
|
||||
"terser-webpack-plugin": "^5.6.0",
|
||||
"tsc-alias": "^1.8.17",
|
||||
"ttest": "^4.0.0",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript": "^6.0.3",
|
||||
"vinyl": "^3.0.1",
|
||||
"webpack": "^5.106.2",
|
||||
"webpack-stream": "^7.0.0"
|
||||
|
||||
@ -3,12 +3,11 @@
|
||||
"outDir": "../../build/tmp",
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"moduleResolution": "node10",
|
||||
"moduleResolution": "bundler",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"baseUrl": "./",
|
||||
"strict": true,
|
||||
"types": [],
|
||||
"lib": ["ESNext", "DOM"],
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"emitDeclarationOnly": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
"paths": {
|
||||
"pdfjs-lib": ["./src/pdf"],
|
||||
"display-binary_data_factory": ["./src/display/binary_data_factory"],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user