Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix @worldcoin/idkit/internal import #184

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading