diff --git a/example/babel.config.js b/example/babel.config.js index bfc65ed8..2128f55e 100644 --- a/example/babel.config.js +++ b/example/babel.config.js @@ -13,6 +13,8 @@ module.exports = { __dirname, './node_modules/react-native' ), + src: '../src', + lib: '../lib', } } ] diff --git a/example/storybook/stories/AppDemo.stories.tsx b/example/storybook/stories/AppDemo.stories.tsx index d2d338fd..b7261a7e 100644 --- a/example/storybook/stories/AppDemo.stories.tsx +++ b/example/storybook/stories/AppDemo.stories.tsx @@ -6,14 +6,11 @@ import { ActivityIndicator } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import { action } from '@storybook/addon-actions'; -import { - AuthContextProvider, - useAuth, - OAuthLoginButton, - OAuthContextProvider, - SettingsScreen, -} from '../../..'; import { authConfig } from './OAuth.stories'; +import { AuthContextProvider, useAuth } from 'src/hooks/useAuth'; +import { OAuthContextProvider } from 'src/hooks/useOAuthFlow'; +import { OAuthLoginButton } from 'src/components/OAuthLoginButton'; +import SettingsScreen from 'src/screens/SettingsScreen'; storiesOf('App', module).add('demo', () => { return ( diff --git a/tsconfig.build.json b/tsconfig.build.json index 1bc3d2e2..b39d062c 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -7,5 +7,9 @@ "noEmit": false }, "include": ["index.ts", "src/**/*", "lib/**/*"], + "paths": { + "src": ["./src"], + "lib": ["./lib"], + }, "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"] } diff --git a/tsconfig.json b/tsconfig.json index 4c8e2b33..2fb1fa43 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,5 +22,9 @@ "lib/**/*", "example/**/*", "__mocks__/**/*" - ] + ], + "paths": { + "src": ["./src"], + "lib": ["./lib"], + }, }