Skip to content

Commit 1560d1e

Browse files
authored
Merge pull request meshtastic#452 from danditomaso/fix/switch-pnpm-to-bun
fix: changed pnpm to bun
2 parents b23e197 + bbb8384 commit 1560d1e

File tree

7 files changed

+1425
-6692
lines changed

7 files changed

+1425
-6692
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818

19-
- name: Setup pnpm
20-
uses: pnpm/action-setup@v4
19+
- name: Setup bun
20+
uses: oven-sh/setup-bun@v2
2121

2222
- name: Install Dependencies
23-
run: pnpm install
23+
run: bun install
2424

2525
- name: Build Package
26-
run: pnpm build
26+
run: bun run build

.github/workflows/pr.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ jobs:
99
- name: Checkout code
1010
uses: actions/checkout@v4
1111

12-
- name: Setup pnpm
13-
uses: pnpm/action-setup@v4
12+
- name: Setup bun
13+
uses: oven-sh/setup-bun@v2
1414

1515
- name: Install Dependencies
16-
run: pnpm install
16+
run: bun install
1717

1818
- name: Build Package
19-
run: pnpm build
19+
run: bun run build
2020

2121
- name: Compress build
22-
run: pnpm package
22+
run: bun run package
2323

2424
- name: Archive compressed build
2525
uses: actions/upload-artifact@v4

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
- uses: pnpm/action-setup@v4
18-
with:
19-
version: latest
17+
18+
- name: Setup bun
19+
uses: oven-sh/setup-bun@v2
2020

2121
- name: Install Dependencies
22-
run: pnpm install
22+
run: bun install
2323

2424
- name: Build Package
25-
run: pnpm build
25+
run: bun run build
2626

2727
- name: Package Output
28-
run: pnpm package
28+
run: bun run package
2929

3030
- name: Archive compressed build
3131
uses: actions/upload-artifact@v4

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,32 @@ podman run -d -p 8080:8080 --restart always --name Meshtastic-Web ghcr.io/meshta
3131
```
3232

3333
## Development & Building
34+
You'll need to download the package manager used with this repo. You can install it by visiting [Bun.sh](https://bun.sh/) and following the installation instructions.
3435

3536
### Building and Packaging
3637

3738
Build the project:
3839

3940
```bash
40-
pnpm build
41+
bun run build
4142
```
4243

4344
GZip the output:
4445

4546
```bash
46-
pnpm package
47+
bun run package
4748
```
4849

4950
### Development
5051

5152
Install the dependencies.
5253

5354
```bash
54-
pnpm i
55+
bun i
5556
```
5657

5758
Start the development server:
5859

5960
```bash
60-
pnpm dev
61+
bun run dev
6162
```

bun.lock

+1,402
Large diffs are not rendered by default.

package.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,14 @@
1616
"postinstall": "npx simple-git-hooks"
1717
},
1818
"simple-git-hooks": {
19-
"pre-commit": "npm run check:fix && npm run format"
19+
"pre-commit": "bun run check:fix && bun run format"
2020
},
2121
"lint-staged": {
2222
"*.{ts,tsx}": [
23-
"npm run check:fix",
24-
"npm run format"
23+
"bun run check:fix",
24+
"bun run format"
2525
]
2626
},
27-
"engines": {
28-
"node": ">=20.0.0",
29-
"pnpm": ">=10.0.0"
30-
},
3127
"repository": {
3228
"type": "git",
3329
"url": "git+https://github.com/meshtastic/web.git"

0 commit comments

Comments
 (0)