switch to pnpm

Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-06-22 15:24:00 +02:00
co-authored by Mistral Vibe
parent a44f71f056
commit 5a86625f3f
9 changed files with 7860 additions and 8492 deletions
+4 -4
View File
@@ -16,16 +16,16 @@ jobs:
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 22 node-version: 22
cache: 'npm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: pnpm install --frozen-lockfile
- name: Build Firefox (mv2) - name: Build Firefox (mv2)
run: npm run build:firefox run: pnpm run build:firefox
- name: Build Chrome (mv3) - name: Build Chrome (mv3)
run: npm run build run: pnpm run build
- name: Upload Firefox (mv2) - name: Upload Firefox (mv2)
uses: actions/upload-artifact@v5 uses: actions/upload-artifact@v5
+3 -3
View File
@@ -19,10 +19,10 @@ jobs:
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 22 node-version: 22
cache: 'npm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: pnpm install --frozen-lockfile
- name: Lint - name: Lint
run: npm run lint run: pnpm run lint
+5 -5
View File
@@ -25,15 +25,15 @@ jobs:
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 22 node-version: 22
cache: 'npm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: pnpm install --frozen-lockfile
- name: Zip extensions - name: Zip extensions
run: | run: |
npm run zip:firefox pnpm run zip:firefox
npm run zip pnpm run zip
- name: Resolve zip extension paths - name: Resolve zip extension paths
id: paths id: paths
@@ -80,6 +80,6 @@ jobs:
CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }}
CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }}
run: | run: |
npx wxt submit \ pnpm exec wxt submit \
--firefox-zip .output/*-mv2.zip --firefox-sources-zip .output/*-sources.zip \ --firefox-zip .output/*-mv2.zip --firefox-sources-zip .output/*-sources.zip \
--chrome-zip .output/*-mv3.zip --chrome-zip .output/*-mv3.zip
-4
View File
@@ -1,11 +1,7 @@
# Logs # Logs
logs logs
*.log *.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log* pnpm-debug.log*
lerna-debug.log*
node_modules node_modules
.output .output
+4 -4
View File
@@ -118,20 +118,20 @@ If you want to build the addon from source and not using the way described in [i
Requirements: Requirements:
- `npm` installed. - `pnpm` installed.
- A copy of this repository and a shell / console open in the copied directory. - A copy of this repository and a shell / console open in the copied directory.
If the requirements are satisfied, you can continue with the following commands: If the requirements are satisfied, you can continue with the following commands:
```shell ```shell
# install all dependencies # install all dependencies
$ npm i $ pnpm i
# build the extension and start it in a new firefox instance # build the extension and start it in a new firefox instance
$ npm run dev:firefox $ pnpm run dev:firefox
# build the extension with optimizations to the .output/firefox-mv2 directory # build the extension with optimizations to the .output/firefox-mv2 directory
$ npm run build:firefox $ pnpm run build:firefox
``` ```
You can omit the `:firefox` suffix, then it's built for Chrome. You can omit the `:firefox` suffix, then it's built for Chrome.
-8452
View File
File diff suppressed because it is too large Load Diff
+21 -20
View File
@@ -26,29 +26,30 @@
"lint": "prettier --check . && eslint ." "lint": "prettier --check . && eslint ."
}, },
"devDependencies": { "devDependencies": {
"@eslint/compat": "^2.0.1", "@eslint/compat": "^2.1.0",
"@ianvs/prettier-plugin-sort-imports": "^4.7.0", "@eslint/js": "^10.0.1",
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
"@steeze-ui/heroicons": "^2.4.2", "@steeze-ui/heroicons": "^2.4.2",
"@steeze-ui/svelte-icon": "^1.6.2", "@steeze-ui/svelte-icon": "^1.6.2",
"@sveltejs/vite-plugin-svelte": "^6.2.4", "@sveltejs/vite-plugin-svelte": "^7.1.2",
"@tailwindcss/vite": "^4.1.18", "@tailwindcss/vite": "^4.3.1",
"@tsconfig/svelte": "^5.0.6", "@tsconfig/svelte": "^5.0.8",
"@wxt-dev/module-svelte": "^2.0.4", "@wxt-dev/module-svelte": "^2.0.5",
"eslint": "^9.39.2", "eslint": "^10.5.0",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.14.0", "eslint-plugin-svelte": "^3.19.0",
"hls.js": "^1.6.15", "hls.js": "^1.6.16",
"prettier": "^3.7.4", "prettier": "^3.8.4",
"prettier-plugin-svelte": "^3.4.1", "prettier-plugin-svelte": "^4.1.1",
"sass": "^1.97.2", "sass": "^1.101.0",
"svelte": "^5.46.1", "svelte": "^5.56.3",
"svelte-check": "^4.3.5", "svelte-check": "^4.6.0",
"tailwindcss": "^4.1.18", "tailwindcss": "^4.3.1",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"typescript": "^5.9.3", "typescript": "^6.0.3",
"typescript-eslint": "^8.52.0", "typescript-eslint": "^8.61.1",
"vite": "^7.3.1", "vite": "^8.0.16",
"web-ext": "^9.2.0", "web-ext": "^10.4.0",
"wxt": "^0.20.13" "wxt": "^0.20.26"
} }
} }
+7817
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
ignoredBuiltDependencies:
- spawn-sync
onlyBuiltDependencies:
- '@parcel/watcher'
- esbuild