Skip to content

Commit

Permalink
fix: make sure paths aren't aliased when building definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Jan 13, 2020
1 parent 536225c commit 65a5dac
Show file tree
Hide file tree
Showing 23 changed files with 95 additions and 33 deletions.
4 changes: 2 additions & 2 deletions packages/bottom-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"react-native-iphone-x-helper": "^1.2.1"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"@types/color": "^3.0.1",
"@types/react": "^16.9.17",
"@types/react-native": "^0.60.30",
Expand All @@ -56,7 +56,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/bottom-tabs/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
2 changes: 1 addition & 1 deletion packages/compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/compat/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
10 changes: 8 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"@types/react": "^16.9.17",
"@types/shortid": "^0.0.29",
"@types/use-subscription": "^1.0.0",
"del-cli": "^3.0.0",
"react": "~16.9.0",
"react-native-testing-library": "^1.12.0",
Expand All @@ -50,7 +51,12 @@
"targets": [
"commonjs",
"module",
"typescript"
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
}
}
6 changes: 6 additions & 0 deletions packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
4 changes: 2 additions & 2 deletions packages/drawer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"react-native-iphone-x-helper": "^1.2.1"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"@types/react": "^16.9.17",
"@types/react-native": "^0.60.30",
"del-cli": "^3.0.0",
Expand All @@ -62,7 +62,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/drawer/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
4 changes: 2 additions & 2 deletions packages/material-bottom-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@react-navigation/routers": "^5.0.0-alpha.23"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"@types/react": "^16.9.17",
"@types/react-native": "^0.60.30",
"@types/react-native-vector-icons": "^6.4.5",
Expand All @@ -57,7 +57,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/material-bottom-tabs/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
4 changes: 2 additions & 2 deletions packages/material-top-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"color": "^3.1.2"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"@types/react": "^16.9.17",
"@types/react-native": "^0.60.30",
"del-cli": "^3.0.0",
Expand All @@ -59,7 +59,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/material-top-tabs/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
4 changes: 2 additions & 2 deletions packages/native-stack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@react-navigation/routers": "^5.0.0-alpha.23"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"del-cli": "^3.0.0",
"react-native-screens": "^2.0.0-alpha.22",
"typescript": "^3.7.4"
Expand All @@ -45,7 +45,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/native-stack/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
4 changes: 2 additions & 2 deletions packages/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@react-navigation/core": "^5.0.0-alpha.33"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"@types/react": "^16.9.17",
"@types/react-native": "^0.60.30",
"del-cli": "^3.0.0",
Expand All @@ -47,7 +47,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/native/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
4 changes: 2 additions & 2 deletions packages/routers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"shortid": "^2.2.15"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"del-cli": "^3.0.0",
"typescript": "^3.7.4"
},
Expand All @@ -39,7 +39,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/routers/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
4 changes: 2 additions & 2 deletions packages/stack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"react-native-iphone-x-helper": "^1.2.1"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.1",
"@react-native-community/bob": "^0.8.0",
"@react-native-community/masked-view": "^0.1.5",
"@types/color": "^3.0.1",
"@types/react": "^16.9.17",
Expand Down Expand Up @@ -62,7 +62,7 @@
"targets": [
"commonjs",
"module",
"typescript"
["typescript", {"project": "tsconfig.build.json"}]
]
}
}
6 changes: 6 additions & 0 deletions packages/stack/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"paths": {}
}
}
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@react-navigation/*": [
"./packages/*/src"
],
"use-subscription": ["./typings/use-subscription.d"]
"@react-navigation/*": ["./packages/*/src"]
},
"composite": true,
"allowUnreachableCode": false,
Expand Down
6 changes: 0 additions & 6 deletions typings/use-subscription.d.ts

This file was deleted.

13 changes: 9 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2749,10 +2749,10 @@
dependencies:
"@types/node" ">= 8"

"@react-native-community/bob@^0.7.1":
version "0.7.1"
resolved "https://registry.yarnpkg.com/@react-native-community/bob/-/bob-0.7.1.tgz#481bf46704c5846ab5a9551c90d25a59bfd5bb0c"
integrity sha512-lTTRVfk1crR3HT6vxT+JFrhWATy/HVtbMxewkfWqaxiiYtnIc19y/WuguvSyOGpGgDniuGBU62fUVnlD8n7pWg==
"@react-native-community/bob@^0.8.0":
version "0.8.0"
resolved "https://registry.yarnpkg.com/@react-native-community/bob/-/bob-0.8.0.tgz#8eb33d18393584b2769adde55a042337c5311c80"
integrity sha512-b4I3YY/3RrJtsBN7BBE56QGH2/jEoEKeEJqnkXiK4hbEEOnHl6/4mEQTZRM1OX8UUhQy9xHdmFfne+xjhSvs9g==
dependencies:
"@babel/core" "^7.7.7"
chalk "^3.0.0"
Expand Down Expand Up @@ -3152,6 +3152,11 @@
resolved "https://registry.yarnpkg.com/@types/untildify/-/untildify-3.0.0.tgz#cd3e6624e46ccf292d3823fb48fa90dda0deaec0"
integrity sha512-FTktI3Y1h+gP9GTjTvXBP5v8xpH4RU6uS9POoBcGy4XkS2Np6LNtnP1eiNNth4S7P+qw2c/rugkwBasSHFzJEg==

"@types/use-subscription@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/use-subscription/-/use-subscription-1.0.0.tgz#d146f8d834f70f50d48bd8246a481d096f11db19"
integrity sha512-0WWZ5GUDKMXUY/1zy4Ur5/zsC0s/B+JjXfHdkvx6JgDNZzZV5eW+KKhDqsTGyqX56uh99gwGwbsKbVwkcVIKQA==

"@types/uuid-js@^0.7.1":
version "0.7.2"
resolved "https://registry.yarnpkg.com/@types/uuid-js/-/uuid-js-0.7.2.tgz#5b5552fcbaaf4acf026fb6dc66f7e5bd6b4be92f"
Expand Down

0 comments on commit 65a5dac

Please sign in to comment.