Skip to content

chore(deps): keep the unused vite 8 copy out of the lock file - #155

Merged
oleksandr-nc merged 1 commit into
mainfrom
chore/npm-lock-refresh
Oct 23, 2026
Merged

oleksandr-nc merged 1 commit into
mainfrom
chore/npm-lock-refresh

Conversation

@oleksandr-nc

@oleksandr-nc oleksandr-nc commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

vue-router, which @nextcloud/vue depends on, lists vite ^7.3.0 || ^8.0.0 as an optional peer. The app builds with vite 6, so the lock file carries a separate vite 8.3.4 for that peer under @nextcloud/vue, with the esbuild 0.28.2, rolldown 1.2.14 and lightningcss 1.33.0 it brings and their platform packages: 59 entries. The build never uses that copy. npm 11.11.0, the lowest npm engines allows and the one Dependabot runs since #154, still installs part of it on npm ci; later npm leaves it out, and any npm from 11.11 on drops it when it writes the lock file.

Dropping the copy alone does not give a stable lock: with this tree npm 11.11 to 11.17 mark vite, esbuild and esbuild's platform packages as not only for development, while npm 11.18 and later mark them dev-only, so every lock file change by Dependabot or by a newer npm would flip those 28 entries. With an override that sets every vite to the app's own ("vite": "$vite"), npm 11.11 to 11.21 write the same lock. Apart from the removed entries, only dev and devOptional flags change; no package changes version.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc oleksandr-nc changed the title chore(deps): drop the unused vite 8 copy from the lock file chore(deps): keep the unused vite 8 copy out of the lock file Oct 23, 2026
@oleksandr-nc
oleksandr-nc force-pushed the chore/npm-lock-refresh branch from a02b2e6 to 104b7fb Compare October 23, 2026 09:05
@oleksandr-nc
oleksandr-nc merged commit d9b5994 into main Oct 23, 2026
26 checks passed
@oleksandr-nc
oleksandr-nc deleted the chore/npm-lock-refresh branch October 23, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant