Skip to content

Commit

Permalink
💫 Update: Project Config
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 22, 2023
1 parent fe2552d commit 6033089
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/temp
lib
example
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
],
"scripts": {
"test": "jest",
"typescript": "tsc --noEmit",
"typescript": "tsc --noEmit --project tsconfig.build.json",
"typescript-example": "cd example && tsc --noEmit --project tsconfig.json",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"prepare": "bob build",
"release": "release-it",
"example": "yarn --cwd example",
"bootstrap": "yarn example && yarn install && yarn example pods",
"build": "yarn run lint && yarn run typescript && yarn run bob build && cd example/ios && pod install && xcodebuild -workspace IosModalExample.xcworkspace -scheme IosModalExample -destination 'generic/platform=iOS'",
"build": "yarn run lint ; yarn run typescript ; yarn run bob build && cd example/ios && pod install && xcodebuild -workspace IosModalExample.xcworkspace -scheme IosModalExample -destination 'generic/platform=iOS'",
"build-and-run": "yarn run build && yarn run run-debug && yarn run run-release",
"run-release": "cd example && npx react-native run-ios --simulator \"iPhone 8\" --configuration Release",
"run-debug": "cd example && npx react-native run-ios --simulator \"iPhone 8\" --configuration Debug"
Expand Down
9 changes: 8 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@

{
"extends": "./tsconfig",
"exclude": ["example"]
"exclude": [
"example",
"node_modules",
"src/temp",
"src/temp/**",
"src/temp/**/*.ts",
"src/temp/**/*.tsx",
]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

// temporarily disable strict
// temporary until migration is finished
"allowJs": true,
"allowJs": false,

// need while "allowJs" option is set to true
"outDir": "./lib/typescript",
Expand Down

0 comments on commit 6033089

Please sign in to comment.