replace pnpm with bun

This commit is contained in:
Ren Amamiya
2023-09-12 08:43:12 +07:00
parent a4f221f868
commit fb8a6581dd
4 changed files with 6 additions and 7187 deletions

View File

@@ -33,21 +33,18 @@ jobs:
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y build-essential libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf sudo apt-get install -y build-essential libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install pnpm - name: Install bun
uses: pnpm/action-setup@v2 uses: oven-sh/setup-bun@v1
with: with:
version: 8.x.x bun-version: latest
run_install: false
- name: Setup node and cache for package data - name: Setup node and cache for package data
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
cache-on-failure: true cache-on-failure: true
- run: pnpm install - run: bun install
- uses: tauri-apps/tauri-action@dev - uses: tauri-apps/tauri-action@dev
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

BIN
bun.lockb Executable file

Binary file not shown.

View File

@@ -4,8 +4,8 @@
"private": true, "private": true,
"version": "1.2.4", "version": "1.2.4",
"scripts": { "scripts": {
"dev": "vite", "dev": "bunx --bun vite",
"build": "vite build", "build": "bunx --bun vite build",
"tauri": "tauri", "tauri": "tauri",
"add-migrate": "cd src-tauri/ && sqlx migrate add", "add-migrate": "cd src-tauri/ && sqlx migrate add",
"prepare": "husky install", "prepare": "husky install",

7178
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff