diff --git a/ReactNativeClient/setUpQuickActions.ts b/ReactNativeClient/setUpQuickActions.ts index 175068d63d..c8aed0e192 100644 --- a/ReactNativeClient/setUpQuickActions.ts +++ b/ReactNativeClient/setUpQuickActions.ts @@ -1,4 +1,7 @@ -import { DeviceEventEmitter } from 'react-native'; +// Need to require this class instead of importing it +// to disable buggy type-checking, maybe because this +// class is undocumented. +const { DeviceEventEmitter } = require('react-native'); import * as QuickActions from 'react-native-quick-actions'; const { _ } = require('lib/locale.js'); diff --git a/Tools/package-lock.json b/Tools/package-lock.json index 60f6c57bc2..e8d13aaff3 100644 --- a/Tools/package-lock.json +++ b/Tools/package-lock.json @@ -886,7 +886,7 @@ }, "wrap-ansi": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "requires": { "string-width": "^1.0.1", @@ -918,7 +918,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" diff --git a/package-lock.json b/package-lock.json index d1fe79120e..cbb706b019 100644 --- a/package-lock.json +++ b/package-lock.json @@ -131,15 +131,6 @@ "@types/react": "*" } }, - "@types/react-native": { - "version": "0.61.15", - "resolved": "https://registry.npmjs.org/@types/react-native/-/react-native-0.61.15.tgz", - "integrity": "sha512-+lOUYk3yOfpyMy2HcVbR5bZnbExiVahMr3AqWNPh/01N0quH7nBzlou+/rpbvmDXSGwCh3QjWWfEkLNRfvbiiA==", - "dev": true, - "requires": { - "@types/react": "*" - } - }, "@typescript-eslint/eslint-plugin": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz", diff --git a/package.json b/package.json index fe2729d052..9361280952 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "scripts": { "linter": "./node_modules/.bin/eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx", "linter-ci": "./node_modules/.bin/eslint --ext .js --ext .jsx --ext .ts --ext .tsx", - "tsc": "tsc", - "tsc-watch": "tsc --watch", + "tsc": "tsc --project tsconfig.json", + "tsc-watch": "tsc --watch --project tsconfig.json", "copyLib": "rsync --delete -a ReactNativeClient/lib/ ElectronClient/app/lib/" }, "husky": { @@ -28,7 +28,6 @@ "devDependencies": { "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", - "@types/react-native": "^0.61.15", "@typescript-eslint/eslint-plugin": "^2.10.0", "@typescript-eslint/parser": "^2.10.0", "eslint": "^6.1.0", diff --git a/tsconfig.json b/tsconfig.json index 675ec4631f..290790b746 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,5 +22,8 @@ ], "exclude": [ "**/node_modules", + "CliClient/build/**/*", + "ElectronClient/app/lib/**/*", + "ElectronClient/app/dist/**/*", ], } \ No newline at end of file