uppy/tsconfig.json
Renée Kooi 5709647728
typescript: fix uppy package use with allowSyntheticImports: false
Synthetic default imports allow you to `import X from 'x'` if `'x'` is a
CommonJS module. Our `uppy` package relied on that (probably forgot to
update it in a previous patch). If users had set
`allowSyntheticDefaultImports: false`, they would not be able to use the
`uppy` package.

We should at some point go through the typings again and set everything
to the tightest options, because that'll work with the widest array of
users, but for now let's just unbreak this particular case.

Fixes #1395
2019-04-01 11:47:52 +02:00

28 lines
623 B
JSON

{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"lib": [
"dom",
"esnext"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"types": [],
"noEmit": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": false,
"strictFunctionTypes": true,
"forceConsistentCasingInFileNames": true
},
"include": [
"packages/*/types/index.d.ts",
"packages/*/types/*-tests.ts",
"packages/@uppy/*/types/index.d.ts",
"packages/@uppy/*/types/*-tests.ts"
],
"exclude": [
"packages/@uppy/companion"
]
}