Skip to content

Commit

Permalink
Export types as part of root (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj authored Jul 11, 2023
1 parent 04157b2 commit e266aba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export { TimeoutError } from './utils/fetchWithTimeout';
export { default as useAuth0 } from './hooks/use-auth0';
export { default as Auth0Provider } from './hooks/auth0-provider';
export { default as LocalAuthenticationStrategy } from './credentials-manager/localAuthenticationStrategy';
export * from './types';

import Auth0 from './auth0';
export default Auth0;
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig",
"exclude": ["example"]
"exclude": ["example", "lib", "docs", "scripts", "babel.config.js", "jest.environment.js"]
}
14 changes: 2 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"baseUrl": "./",
"paths": {
"react-native-auth0": ["./index"]
"react-native-auth0": ["./src/index"]
},
"module": "esnext",
"allowJs": true,
Expand All @@ -24,15 +24,5 @@
"declaration": true,
"declarationDir": "./lib/typescript/",
"outDir": "./lib/typescript"
},
"exclude": [
"node_modules",
"babel.config.js",
"metro.config.js",
"jest.config.js",
"./dist",
"**/__mocks__/**",
"**/__tests__/**",
"./lib"
]
}
}

0 comments on commit e266aba

Please sign in to comment.