Skip to content

Commit 0bc6d08

Browse files
Copilotjonobr1
andauthored
fix: stabilize Dependabot — restore missing package.json, add dependabot.yml, regenerate lockfiles (#815)
* Stabilize Dependabot updates by removing invalid update targets and tightening npm update scope Agent-Logs-Url: https://github.com/jonobr1/two.js/sessions/cf6e28e3-9973-47b4-8806-5a4c9c7c5ee4 Co-authored-by: jonobr1 <220033+jonobr1@users.noreply.github.com> * chore: begin Dependabot stabilization plan Agent-Logs-Url: https://github.com/jonobr1/two.js/sessions/6e86b4bd-5c7f-40c3-8f01-e95d525e29c6 Co-authored-by: jonobr1 <220033+jonobr1@users.noreply.github.com> * fix: stabilize Dependabot - add dependabot.yml, restore tests/types package.json, regenerate lockfiles, remove package-lock=false Agent-Logs-Url: https://github.com/jonobr1/two.js/sessions/6e86b4bd-5c7f-40c3-8f01-e95d525e29c6 Co-authored-by: jonobr1 <220033+jonobr1@users.noreply.github.com> * fix: track tests/typescript/package-lock.json (unignore and commit) Agent-Logs-Url: https://github.com/jonobr1/two.js/sessions/6e86b4bd-5c7f-40c3-8f01-e95d525e29c6 Co-authored-by: jonobr1 <220033+jonobr1@users.noreply.github.com> * Remove test script from tests/types package.json Delete the scripts section that defined the "test" script ("jest") from tests/types/package.json. The updated file also no longer has a trailing newline. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jonobr1 <220033+jonobr1@users.noreply.github.com> Co-authored-by: Jono Brandel <developer@jono.fyi>
1 parent 6ad9725 commit 0bc6d08

11 files changed

Lines changed: 11198 additions & 6518 deletions

File tree

.github/dependabot.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 2
2+
3+
updates:
4+
# Root npm package
5+
- package-ecosystem: "npm"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
open-pull-requests-limit: 10
10+
groups:
11+
dev-dependencies:
12+
patterns:
13+
- "*"
14+
15+
# tests/types npm package
16+
- package-ecosystem: "npm"
17+
directory: "/tests/types"
18+
schedule:
19+
interval: "weekly"
20+
open-pull-requests-limit: 5
21+
groups:
22+
dev-dependencies:
23+
patterns:
24+
- "*"
25+
26+
# tests/typescript npm package
27+
- package-ecosystem: "npm"
28+
directory: "/tests/typescript"
29+
schedule:
30+
interval: "weekly"
31+
open-pull-requests-limit: 5
32+
groups:
33+
dev-dependencies:
34+
patterns:
35+
- "*"
36+
37+
# GitHub Actions
38+
- package-ecosystem: "github-actions"
39+
directory: "/"
40+
schedule:
41+
interval: "weekly"
42+
open-pull-requests-limit: 10
43+
groups:
44+
github-actions:
45+
patterns:
46+
- "*"

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,32 @@ jobs:
1313
run: npm ci
1414
- name: Run ESLint
1515
run: npm run lint
16+
17+
check-dependency-files:
18+
name: Check dependency manifest/lockfile pairs
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
22+
- name: Verify each Dependabot-managed npm directory has package.json and package-lock.json
23+
shell: bash
24+
run: |
25+
dirs=("." "tests/types" "tests/typescript")
26+
ok=true
27+
for dir in "${dirs[@]}"; do
28+
if [ ! -f "$dir/package.json" ]; then
29+
echo "ERROR: $dir/package.json is missing"
30+
ok=false
31+
fi
32+
if [ ! -f "$dir/package-lock.json" ]; then
33+
echo "ERROR: $dir/package-lock.json is missing"
34+
ok=false
35+
fi
36+
done
37+
if [ "$ok" != "true" ]; then
38+
echo ""
39+
echo "Every npm directory managed by Dependabot must contain both"
40+
echo "package.json and package-lock.json. Run 'npm install' in the"
41+
echo "affected directory and commit the result."
42+
exit 1
43+
fi
44+
echo "All dependency file pairs are present."

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ docs.json
66
dist
77
.idea
88
.codacy
9-
tests/typescript/package-lock.json
109

1110
#Ignore vscode AI rules
1211
.github/instructions/codacy.instructions.md

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)