Skip to content

Commit f1e437f

Browse files
committed
create tsconfig for dev environment
1 parent 73dab3d commit f1e437f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"lint:fix": "eslint src -c .eslintrc.js --fix",
2626
"lint:test": "mocha --compilers js:babel-core/register eslint-rules/tests/lib/rules",
2727
"xcode": "open ./ios/uilib.xcodeproj",
28+
"build:dev": "tsc --p tsconfig.dev.json",
2829
"build": "tsc --p tsconfig.build.json",
2930
"log": "react-native log-ios | grep 'ethan -'",
3031
"docs:install": "(cd ./uilib-docs && rm -rf node_modules && rm -rf package-lock.json && npm install)",

tsconfig.dev.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
// "outDir": "dist",
6+
"esModuleInterop": true,
7+
"moduleResolution": "node",
8+
"jsx": "react-native",
9+
"skipLibCheck": true,
10+
// "resolveJsonModule": true,
11+
"strict": true,
12+
"noUnusedLocals": true,
13+
"noUnusedParameters": true,
14+
// "noEmit": true,
15+
// "checkJs": true,
16+
"allowJs": false,
17+
"emitDeclarationOnly": true,
18+
// "noImplicitAny": false
19+
"declaration": true,
20+
"declarationDir": "./generatedTypes",
21+
"baseUrl": ".",
22+
"paths": {
23+
"react-native-ui-lib": ["index.d.ts"]
24+
}
25+
},
26+
"include": ["src/**/*", "typings/**/*"],
27+
"exclude": [ "node_modules", "src/index.ts"]
28+
}

0 commit comments

Comments
 (0)