diff --git a/package.json b/package.json index fb71b3e..c38838b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "types": "typescript/index.d.ts", "type": "module", "scripts": { - "prepare": "tsc", + "postinstall": "tsc", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ @@ -19,10 +19,6 @@ "typescript": ">=3.7.2" }, "peerDependencies": { - "@types/jest": "*", - "@types/react": "*", - "@tsconfig/react-native": "*", - "@types/react-test-renderer": "*", "react": ">=17.0.2", "react-native": ">=0.67.3" } diff --git a/tsconfig.json b/tsconfig.json index 7fc0256..01721ed 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,10 @@ { - "extends": "@tsconfig/react-native/tsconfig.json", // Tells TypeScript where to look for files to work with. "include": ["index.js", "src/**/*"], "compilerOptions": { - // Tells TypeScript to read JS files, as normally they are ignored as source files. + // Skip type checking all .d.ts files from external libraries. + "skipLibCheck": true, + // Tell TypeScript to read JS files, as normally they are ignored as source files. "allowJs": true, // Ask Typescript to generate .d.ts declaration files. "noEmit": false,