Skip to content

Commit

Permalink
fix: fix @worldcoin/idkit/internal import (#184)
Browse files Browse the repository at this point in the history
Co-authored-by: Paolo <[email protected]>
  • Loading branch information
m1guelpf and pdtfh authored Dec 1, 2023
1 parent bbbdcf5 commit d81a78a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Typecheck & Build
run: pnpm build

# NOTE: Lint needs to run after build because it checks the compiled files for types
- name: Lint
run: pnpm lint
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ import { IDKitWidget } from "@worldcoin/idkit";
If you are not using React or want to look at additional options (like rendering the component without any children), the `useIDKit` hook and more, head over to the [docs](https://docs.worldcoin.org/idkit/reference).

```jsx
import { useIDKit } from "@worldcoin/idkit";
import { useIDKit } from '@worldcoin/idkit'

const { open, setOpen } = useIDKit({
signal: "my_signal",
signal: 'my_signal',
handleVerify: verifyProof,
actionId: "get_this_from_the_dev_portal",
});
actionId: 'get_this_from_the_dev_portal',
})
```

## 🔒 Verifying the IDKit response
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-opti

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

Expand Down
11 changes: 11 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
"types": "./build/internal.d.ts"
}
},
"typesVersions": {
"*": {
"internal": [
"./build/internal.d.ts"
],
"*": [
"./build/*/index.d.ts",
"./build/index.d.ts"
]
}
},
"main": "src/index.ts",
"types": "src/index.ts",
"engines": {
Expand Down
7 changes: 1 addition & 6 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@
{
"type": "linked-versions",
"groupName": "group",
"components": [
"core",
"react",
"standalone",
"idkit"
]
"components": ["core", "react", "standalone", "idkit"]
}
],
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
Expand Down

0 comments on commit d81a78a

Please sign in to comment.