Skip to content

Commit

Permalink
Use bun outdated instead of npm-check-updates
Browse files Browse the repository at this point in the history
Fixes #721
  • Loading branch information
lukasjuhrich committed Aug 28, 2024
1 parent 6ceb978 commit 7f1f807
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- run: bun install --frozen-lockfile
- run: bun run bundle --prod
- name: Check for outdated NPM packages
run: bun x npm-check-updates --root --format group >> "${GITHUB_STEP_SUMMARY}"
run: ./scripts/bun_outdated.sh | tee "${GITHUB_STEP_SUMMARY}"
build:
runs-on: ubuntu-latest
steps:
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"esbuild-plugin-clean": "^1.0.1",
"esbuild-plugin-summary": "^0.0.2",
"eslint": "^8.16.0",
"npm-check-updates": "^16.14.18",
"typescript": "^4.1.3"
},
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions scripts/bun_outdated.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
FORCE_COLOR=1 bun outdated | \
sed -E \
-e 's/│/|/g' \
-e 's/\x1b\[1m(\x1b\[[0-9;]+m)+([0-9.]+)\x1b\[0m/**\2**/g' \
-e 's/\x1b\[[0-9;]+m//g' \
-e '2a| --- | --- | --- | --- |' \
-e '/─/d'

0 comments on commit 7f1f807

Please sign in to comment.