Skip to content
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
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ jobs:
run: git submodule update --init --recursive

- name: Install dependencies
run: pnpm i --frozen-lockfile
run: pnpm i --frozen-lockfile --ignore-scripts

- name: Build dependencies
working-directory: .
run: pnpm --filter passkeys --filter passkeys-react build
run: pnpm --filter passkey-signer --filter passkey-signer-react build

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist-files
path: |
packages/passkeys/dist
packages/passkeys-react/dist
packages/passkey-signer/dist
packages/passkey-signer-react/dist

- name: Run ESLint
run: pnpm lint
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
run: git submodule update --init --recursive

- name: Install dependencies
run: pnpm i --frozen-lockfile
run: pnpm i --frozen-lockfile --ignore-scripts

- name: Download build artifacts
uses: actions/download-artifact@v4
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,17 @@ Follow these steps to build the extension and install it in Google Chrome:
cd apps/signer
```

3. Install the dependencies:
4. Install the dependencies:

```sh
pnpm i
```

4. Build the extension:
The`postinstall` hook in the root `package.json` will trigger builds for `packages/passkey-signer` and `packages/passkey-signer-react` modules which are required to be built prior to running app/signer `build` script.

Both of those packages have to be rebuilt after each change in their codebase.

5. Build the extension:

```sh
pnpm build
Expand Down
4 changes: 2 additions & 2 deletions apps/signer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"lint": "eslint"
},
"dependencies": {
"passkeys": "workspace:*",
"passkeys-react": "workspace:*",
"passkey-signer": "workspace:*",
"passkey-signer-react": "workspace:*",
"@better-fetch/fetch": "^1.1.18",
"@jstz-dev/jstz-client": "0.1.1-alpha.5",
"@jstz-dev/jstz_sdk": "0.1.1-alpha.5",
Expand Down
2 changes: 1 addition & 1 deletion apps/signer/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PasskeyProvider } from "passkeys-react";
import { PasskeyProvider } from "passkey-signer-react";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { RouterProvider } from "react-router";
Expand Down
4 changes: 2 additions & 2 deletions apps/signer/src/pages/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as SimpleWebAuthnBrowser from "@simplewebauthn/browser";
import * as TaquitoUtils from "@taquito/utils";
import { Button, buttonVariants } from "jstz-ui/ui/button";
import { ArrowLeft, ExternalLink } from "lucide-react";
import { parseKey } from "passkeys";
import { usePasskeyWallet } from "passkeys-react";
import { parseKey } from "passkey-signer";
import { usePasskeyWallet } from "passkey-signer-react";
import { Link, redirect, useLocation, useNavigate, type LoaderFunctionArgs } from "react-router";
import { AccountSelect } from "~/components/AccountSelect";
import { StorageKeys } from "~/lib/constants/storage";
Expand Down
2 changes: 1 addition & 1 deletion apps/signer/src/pages/wallet/Wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "jstz-ui/ui/tooltip";
import { cn } from "jstz-ui/utils";
import { Eye, EyeOff } from "lucide-react";
import { useQueryStates } from "nuqs";
import { usePasskeyWallet } from "passkeys-react";
import { usePasskeyWallet } from "passkey-signer-react";
import { Suspense, useState } from "react";
import { redirect, useParams, type LoaderFunctionArgs } from "react-router";
import SuperJSON from "superjson";
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"type": "module",
"private": true,
"packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184",
"scripts": {
"postinstall": "pnpm --filter passkey-signer --filter passkey-signer-react build"
},
"devDependencies": {
"prettier": "^3.6.2",
"prettier-plugin-organize-imports": "^4.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "passkeys-react",
"name": "passkey-signer-react",
"version": "0.0.1",
"description": "",
"scripts": {
Expand All @@ -20,7 +20,7 @@
"react": "^19.0.0"
},
"dependencies": {
"passkeys": "workspace:*"
"passkey-signer": "workspace:*"
},
"devDependencies": {
"@types/react": "^19.2.6",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PasskeyWallet } from "passkeys";
import { PasskeyWallet } from "passkey-signer";
import { createContext, useContext, useMemo, useRef } from "react";

/** @import {PropsWithChildren, Context} from "react"; */
/** @import {UserStore} from "passkeys"; */
/** @import {UserStore} from "passkey-signer"; */

/** @type {Context<{ wallet: PasskeyWallet }>} */
const PasskeyContext = createContext(/** @type {{ wallet: PasskeyWallet }} */ ({}));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "passkeys",
"name": "passkey-signer",
"version": "0.0.1",
"description": "",
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.