Skip to content

Commit

Permalink
feat(react-sdk): update react sdk
Browse files Browse the repository at this point in the history
export PrivateRouter & useLogto out
update tsx build type to es5
add prepublish script
  • Loading branch information
simeng-li committed Nov 17, 2021
1 parent df5c6c3 commit 951d316
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
"preinstall": "npx only-allow pnpm",
"lint": "eslint --ext .ts src",
"build": "tsc",
"test": "jest"
"test": "jest",
"package": "webpack",
"prepublish": "npm run build && npm run package"
},
"bugs": {
"url": "https://github.com/logto-io/js/issues"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * from '@logto/client';
export * from './context';
export * from './provider';
export { default as ProtectedRoute } from './ProtectedRoute';
export { default as useLogto} from './use-logto';
3 changes: 2 additions & 1 deletion packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "@silverhand/ts-config-react/tsconfig.base",
"compilerOptions": {
"outDir": "lib",
"noEmit": false
"noEmit": false,
"target": "es5"
},
"include": [
"src"
Expand Down

0 comments on commit 951d316

Please sign in to comment.