Skip to content

Commit 0b6810b

Browse files
committed
chore: new tsconfig is here with the tslib dependency is removed
1 parent 9ec2ab9 commit 0b6810b

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

package.json

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-dynamic-search-bar",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Fully customizable and dynamic Search Bar for React Native.",
55
"keywords": [
66
"gradient",
@@ -47,16 +47,5 @@
4747
"husky": "^7.0.0",
4848
"lint-staged": "^12.0.3",
4949
"prettier": "^2.1.2"
50-
},
51-
"husky": {
52-
"hooks": {
53-
"pre-commit": "lint-staged"
54-
}
55-
},
56-
"lint-staged": {
57-
"./src/*.{js,jsx,ts,tsx}": [
58-
"npx prettier --write",
59-
"eslint src/*.js --fix-dry-run"
60-
]
6150
}
6251
}

tsconfig.json

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "esnext",
4-
"module": "commonjs",
4+
"module": "es6",
55
"lib": ["es6"],
66
"allowJs": true,
77
"jsx": "react-native",
@@ -10,22 +10,30 @@
1010
"isolatedModules": true,
1111
"strict": true,
1212
"moduleResolution": "node",
13-
"skipLibCheck": true,
1413
"baseUrl": "./",
1514
"outDir": "build/dist",
1615
"noEmitHelpers": true,
17-
"importHelpers": true,
16+
"alwaysStrict": true,
17+
"strictFunctionTypes": true,
18+
"resolveJsonModule": true,
19+
"importHelpers": false,
1820
"experimentalDecorators": true,
21+
"strictPropertyInitialization": false,
1922
"allowSyntheticDefaultImports": true,
23+
"strictNullChecks": true,
24+
"skipDefaultLibCheck": true,
25+
"skipLibCheck": true,
2026
"esModuleInterop": true,
27+
"typeRoots": ["./node_modules/@types", "./@types"],
2128
"declaration": true /* Generates corresponding '.d.ts' file. */,
2229
"sourceMap": true /* Generates corresponding '.map' file. */
2330
},
2431
"exclude": [
2532
"example",
33+
"example-manual-state",
2634
"node_modules",
2735
"babel.config.js",
2836
"metro.config.js",
2937
"jest.config.js"
3038
]
31-
}
39+
}

0 commit comments

Comments
 (0)