Skip to content

Commit

Permalink
fix: Update package versions and CI workflow
Browse files Browse the repository at this point in the history
- Downgrade Rollup and Vite versions for Node.js 16 compatibility
- Replace npm ci with clean npm install in CI workflow
- Update peer dependencies to match devDependencies
  • Loading branch information
xanaawakens committed Dec 29, 2024
1 parent 4f4c542 commit 20a488e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci
- name: Clean install dependencies
run: |
rm -f package-lock.json
npm install
- name: Run linter
run: npm run lint
Expand Down Expand Up @@ -53,14 +55,18 @@ jobs:
cache: 'npm'

- name: Install package dependencies
run: npm ci
run: |
rm -f package-lock.json
npm install
- name: Build package
run: npm run build

- name: Install test project dependencies
working-directory: test-projects/${{ matrix.test-project }}
run: npm ci
run: |
rm -f package-lock.json
npm install
- name: Build test project
working-directory: test-projects/${{ matrix.test-project }}
Expand All @@ -81,7 +87,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci
run: |
rm -f package-lock.json
npm install
- name: Build
run: npm run build
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
},
"homepage": "https://github.com/avixiii-dev/bundle-size-tracker#readme",
"peerDependencies": {
"rollup": "^4.0.0",
"vite": "^5.0.0",
"rollup": "^3.0.0",
"vite": "^4.0.0",
"webpack": "^5.0.0"
},
"dependencies": {
"commander": "^11.1.0",
"filesize": "^10.1.0",
"@types/glob": "^8.0.0",
"chalk": "^4.1.2",
"commander": "^11.0.0",
"filesize": "^10.0.0",
"glob": "^10.0.0"
},
"devDependencies": {
Expand All @@ -59,10 +59,10 @@
"@typescript-eslint/parser": "^6.17.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"rollup": "^4.9.1",
"rollup": "^3.29.4",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vite": "^4.5.1",
"webpack": "^5.89.0"
},
"engines": {
Expand Down

0 comments on commit 20a488e

Please sign in to comment.