Skip to content

Commit b37d496

Browse files
committed
fix: build no longer wipes dist/firefox-dev, fix ci description
1 parent 13443e8 commit b37d496

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
| Command | Description |
2323
| ---------------------- | ------------------------------------------- |
24-
| `npm run ci` | Run all checks (test + lint + format check) |
24+
| `npm run ci` | Run all checks (test + lint + format) |
2525
| `npm run dev` | Run CI then prepare Firefox dev environment |
2626
| `npm run all` | Run CI then build Chrome & Firefox packages |
2727
| `npm test` | Run tests (Vitest) |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"ci": "npm run test && npm run lint && npm run format",
2020
"dev": "npm run ci && npm run dev:firefox",
2121
"all": "npm run ci && npm run build",
22-
"build": "rm -rf dist && mkdir -p dist && zip -r dist/github-notifier-pro-chrome.zip manifest.json src/ images/ -x '*.DS_Store' '*.git*' '*node_modules*' '*.md' && mkdir -p dist/tmp-firefox && cp manifest-firefox.json dist/tmp-firefox/manifest.json && cp -r src images dist/tmp-firefox/ && (cd dist/tmp-firefox && zip -r ../github-notifier-pro-firefox.zip manifest.json src/ images/ -x '*.DS_Store' '*.git*' '*node_modules*' '*.md') && rm -rf dist/tmp-firefox && echo '✨ Build complete! Chrome & Firefox packages in dist/'",
22+
"build": "rm -rf dist/tmp-firefox dist/github-notifier-pro-chrome.zip dist/github-notifier-pro-firefox.zip && mkdir -p dist && zip -r dist/github-notifier-pro-chrome.zip manifest.json src/ images/ -x '*.DS_Store' '*.git*' '*node_modules*' '*.md' && mkdir -p dist/tmp-firefox && cp manifest-firefox.json dist/tmp-firefox/manifest.json && cp -r src images dist/tmp-firefox/ && (cd dist/tmp-firefox && zip -r ../github-notifier-pro-firefox.zip manifest.json src/ images/ -x '*.DS_Store' '*.git*' '*node_modules*' '*.md') && rm -rf dist/tmp-firefox && echo '✨ Build complete! Chrome & Firefox packages in dist/'",
2323
"dev:firefox": "rm -rf dist/firefox-dev && mkdir -p dist/firefox-dev && cp manifest-firefox.json dist/firefox-dev/manifest.json && cp -r src dist/firefox-dev/ && cp -r images dist/firefox-dev/ && echo '🦊 Firefox dev environment ready at dist/firefox-dev/'",
2424
"test": "vitest run",
2525
"lint": "oxlint --deny-warnings src/ tests/",

0 commit comments

Comments
 (0)