mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-11-30 16:37:18 +01:00
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.
21 lines
483 B
JSON
21 lines
483 B
JSON
{
|
|
"compilerOptions": {
|
|
"outDir": "../../build/tmp",
|
|
"sourceMap": true,
|
|
"declaration": false,
|
|
"moduleResolution": "bundler",
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"target": "ESNext",
|
|
"module": "ESNext",
|
|
"strict": true,
|
|
"types": [],
|
|
"lib": ["ESNext", "DOM"],
|
|
"paths": {
|
|
"pdfjs-dist": ["../../build/typestest"],
|
|
"pdfjs-dist/*": ["../../build/typestest/*"]
|
|
}
|
|
},
|
|
"exclude": ["node_modules"]
|
|
}
|