Skip to content

Commit

Permalink
Merge pull request emartech#106 from colorfy-software/master
Browse files Browse the repository at this point in the history
Fix TypeScript compiler setup
  • Loading branch information
eduzatoni authored May 10, 2024
2 parents c19fc38 + 7ebfc3d commit ddb8130
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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"
}
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit ddb8130

Please sign in to comment.