Skip to content

Commit b845b53

Browse files
committed
Use @linera/client from workspace
1 parent d27bff8 commit b845b53

File tree

8 files changed

+48
-25
lines changed

8 files changed

+48
-25
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- uses: DeterminateSystems/magic-nix-cache-action@main
4343
- name: Run all CI tasks
4444
run: |
45-
nix develop '.?submodules=1' --override-input linera-protocol ./linera-protocol --command pnpm run ci
45+
nix develop '.?submodules=1' --override-input linera-protocol ./linera-protocol --command bash -c 'which cargo; pnpm run ci'
4646
- name: Upload built extension
4747
uses: actions/upload-artifact@v4
4848
with:

examples/counter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dev": "vite",
1010
"build": "vite build",
1111
"preview": "vite preview",
12-
"ci": "pnpm install --frozen-lockfile && pnpm build"
12+
"ci": "pnpm build"
1313
},
1414
"dependencies": {
1515
"@linera/extension": "workspace:^"

examples/hosted-counter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"dev": "vite",
1010
"build": "vite build",
1111
"preview": "vite preview",
12-
"ci": "pnpm install --frozen-lockfile && pnpm build"
12+
"ci": "pnpm build"
1313
},
1414
"dependencies": {
15-
"@linera/client": "file:../../linera-protocol/linera-web"
15+
"@linera/client": "workspace:^"
1616
},
1717
"devDependencies": {
1818
"vite": "^5.4.10"

examples/hosted-fungible/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"dev": "vite",
1010
"build": "vite build",
1111
"preview": "vite preview",
12-
"ci": "pnpm install --frozen-lockfile && pnpm build"
12+
"ci": "pnpm build"
1313
},
1414
"dependencies": {
15-
"@linera/client": "file:../../linera-protocol/linera-web"
15+
"@linera/client": "workspace:^"
1616
},
1717
"devDependencies": {
1818
"vite": "^5.4.11"

extension/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"browser": "dist/library/linera.js",
88
"scripts": {
99
"dev": "vite",
10-
"build:extension": "tsc && vite build -c extension.vite.config.js",
11-
"build:library": "tsc && vite build -c library.vite.config.js",
10+
"build:extension": "vite build -c extension.vite.config.js",
11+
"build:library": "vite build -c library.vite.config.js",
1212
"build": "pnpm build:extension && pnpm build:library",
1313
"preview": "vite preview",
1414
"prepare": "pnpm build:library",
15-
"ci": "pnpm install --frozen-lockfile && pnpm build"
15+
"ci": "pnpm build"
1616
},
1717
"dependencies": {
1818
"@shoelace-style/shoelace": "^2.16.0",
1919
"lit": "^3.2.0",
2020
"randomstring": "^1.3.0",
2121
"webext-bridge": "^6.0.1",
22-
"@linera/client": "file:../linera-protocol/linera-web"
22+
"@linera/client": "workspace:^"
2323
},
2424
"devDependencies": {
2525
"@types/chrome": "^0.0.267",

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
"version": "1.0.0",
44
"description": "",
55
"scripts": {
6-
"build": "pnpm -r build",
7-
"ci": "pnpm -r run ci"
6+
"ci": "pnpm install; pnpm -r run ci"
87
},
98
"keywords": [],
109
"author": "Linera <contact@linera.io>",
1110
"license": "Apache-2.0",
12-
"devDependencies": {}
11+
"pnpm": {
12+
"onlyBuiltDependencies": [
13+
"@linera/client"
14+
]
15+
}
1316
}

pnpm-lock.yaml

Lines changed: 27 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
packages:
2-
- extension
3-
- examples/counter
4-
- examples/hosted-counter
2+
- extension
3+
- examples/counter
4+
- examples/hosted-counter
5+
- examples/hosted-fungible
6+
- linera-protocol/linera-web

0 commit comments

Comments
 (0)