From f18231541b3ea7efd31ef7550011b4684f3dfa43 Mon Sep 17 00:00:00 2001 From: "satyajit.happy" Date: Thu, 22 Aug 2019 10:09:16 +0530 Subject: [PATCH] fix: fix path to typescript definitions --- packages/bottom-tabs/package.json | 2 +- packages/core/package.json | 2 +- packages/drawer/package.json | 2 +- packages/material-bottom-tabs/package.json | 2 +- packages/material-top-tabs/package.json | 2 +- packages/native/package.json | 2 +- packages/routers/package.json | 2 +- packages/stack/package.json | 2 +- tsconfig.json | 5 ++++- 9 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/bottom-tabs/package.json b/packages/bottom-tabs/package.json index 78e5ef82..6d966eff 100644 --- a/packages/bottom-tabs/package.json +++ b/packages/bottom-tabs/package.json @@ -20,7 +20,7 @@ "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "module": "lib/module/index.js", - "types": "lib/typescript/src/index.d.ts", + "types": "lib/typescript/bottom-tabssrc/index.d.ts", "files": [ "src", "lib" diff --git a/packages/core/package.json b/packages/core/package.json index 1e85f981..357ab5f3 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -16,7 +16,7 @@ "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "module": "lib/module/index.js", - "types": "lib/typescript/src/index.d.ts", + "types": "lib/typescript/index.d.ts", "files": [ "src", "lib" diff --git a/packages/drawer/package.json b/packages/drawer/package.json index 45d1ccc4..3954c73f 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -21,7 +21,7 @@ "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "module": "lib/module/index.js", - "types": "lib/typescript/src/index.d.ts", + "types": "lib/typescript/drawer/src/index.d.ts", "files": [ "src", "lib" diff --git a/packages/material-bottom-tabs/package.json b/packages/material-bottom-tabs/package.json index e36544e5..3e958c06 100644 --- a/packages/material-bottom-tabs/package.json +++ b/packages/material-bottom-tabs/package.json @@ -21,7 +21,7 @@ "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "module": "lib/module/index.js", - "types": "lib/typescript/src/index.d.ts", + "types": "lib/typescript/material-bottom-tabs/src/index.d.ts", "files": [ "src", "lib" diff --git a/packages/material-top-tabs/package.json b/packages/material-top-tabs/package.json index 6eb47d16..c5803118 100644 --- a/packages/material-top-tabs/package.json +++ b/packages/material-top-tabs/package.json @@ -21,7 +21,7 @@ "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "module": "lib/module/index.js", - "types": "lib/typescript/src/index.d.ts", + "types": "lib/typescript/material-top-tabs/src/index.d.ts", "files": [ "src", "lib" diff --git a/packages/native/package.json b/packages/native/package.json index 394e3e33..7f4be6fd 100644 --- a/packages/native/package.json +++ b/packages/native/package.json @@ -17,7 +17,7 @@ "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "module": "lib/module/index.js", - "types": "lib/typescript/src/index.d.ts", + "types": "lib/typescript/native/src/index.d.ts", "files": [ "src", "lib" diff --git a/packages/routers/package.json b/packages/routers/package.json index 4c352f5b..3e3e93da 100644 --- a/packages/routers/package.json +++ b/packages/routers/package.json @@ -16,7 +16,7 @@ "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "module": "lib/module/index.js", - "types": "lib/typescript/src/index.d.ts", + "types": "lib/typescript/routers/src/index.d.ts", "files": [ "src", "lib" diff --git a/packages/stack/package.json b/packages/stack/package.json index 59093649..c6525881 100644 --- a/packages/stack/package.json +++ b/packages/stack/package.json @@ -20,7 +20,7 @@ "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "module": "lib/module/index.js", - "types": "lib/typescript/src/index.d.ts", + "types": "lib/typescript/stack/src/index.d.ts", "files": [ "src", "lib" diff --git a/tsconfig.json b/tsconfig.json index b07fc1fd..335aca82 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,10 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "@react-navigation/*": ["./packages/*/src", "./packages/*/lib/typescript"], + "@react-navigation/*": [ + "./packages/*/src", + "./packages/*/lib/typescript" + ], "use-subscription": ["./typings/use-subscription.d"] }, "allowUnreachableCode": false,