mirror of
https://github.com/appium/appium.git
synced 2026-10-23 17:19:04 +08:00
d31aaf9916
This pulls in some recommended settings from `@tsconfig/node14` (a proper TS target configuration for Node.js v14; ours wasn't _wrong_ per se, but this is better) and allows us more flexible use of `ts-node`. Use of this module is recommended by `ts-node` (which we need to run tests). `ts-node`'s behavior changes _depending on the directory in which it's run_--and this can cause some really nonsensical bugs--so the changes here ensure that it will act the same regardless of if you're running tests from a package directory or the monorepo root. Also: - Ensure various `clean` scripts don't fail if they've been run before `build` - Enable `strict` mode in `@appium/types` cause we can - Fix a type issue found in `@appium/support`; this does not appear to have been a traditional bug but rather a type disagreement surfaced by the new config # Conflicts: # package-lock.json # packages/typedoc-plugin-appium/tsconfig.json
21 lines
524 B
JSON
21 lines
524 B
JSON
{
|
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
"extends": "@tsconfig/node14/tsconfig.json",
|
|
"ts-node": {
|
|
"transpileOnly": true
|
|
},
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"composite": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"resolveJsonModule": true,
|
|
"strictNullChecks": true,
|
|
"sourceMap": true,
|
|
"removeComments": false,
|
|
"strict": false,
|
|
"types": ["node", "mocha", "chai", "sinon-chai", "chai-as-promised"]
|
|
}
|
|
}
|