Skip to content

chore: sync package-lock.json with package.json (fix CI npm ci)#46

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-ci-job-validate-error
Draft

chore: sync package-lock.json with package.json (fix CI npm ci)#46
Copilot wants to merge 2 commits intomainfrom
copilot/fix-ci-job-validate-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

What Changed

package-lock.json was stale — npm ci in the validate CI job was failing due to four version mismatches. Regenerated the lockfile via npm install --package-lock-only. Only package-lock.json changed.

Package Lock had Now resolves to
@react-native-picker/picker 2.11.1 2.11.4
expo-secure-store missing 15.0.8
pdfjs-dist 5.5.207 5.6.205
react-native-webview 13.15.0 13.16.1

Checklist

  • I tested the main behavior
  • I verified that typecheck passes
  • I updated any relevant documentation
  • I checked possible Android / Wear OS impact

Screenshot or Video

N/A — no UI changes.

Review Notes

Pure lockfile sync; no source or package.json changes. All resolved versions satisfy the existing semver ranges in package.json.

Original prompt

Create a new pull request in TargetMisser/FlightWorkApp (base branch: main) to fix the failing CI job validate which fails at npm ci due to package.json and package-lock.json being out of sync.

Context:

  • The CI job log for validate shows npm error EUSAGE and: "npm ci can only install packages when your package.json and package-lock.json ... are in sync".
  • Reported lockfile issues include:
    • Invalid: lock file's @react-native-picker/picker@2.11.1 does not satisfy @react-native-picker/picker@2.11.4
    • Missing: expo-secure-store@15.0.8 from lock file
    • Invalid: lock file's pdfjs-dist@5.5.207 does not satisfy pdfjs-dist@5.6.205
    • Invalid: lock file's react-native-webview@13.15.0 does not satisfy react-native-webview@13.16.1

Requirements:

  1. Update package-lock.json (and only other files if strictly required) so that npm ci succeeds.
  2. Keep dependency versions as specified by package.json; do not introduce unrelated upgrades.
  3. Ensure the GitHub Actions CI workflow in .github/workflows/ci.yml passes on the PR.
  4. Add a clear PR description summarizing that this sync fixes CI npm ci.

Reference:

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: Ciao, mi dice qualche check CI non ha funzionato

Assistant: Nella PR #41 il check CI che non ha funzionato è il job validate (workflow CI, file .github/workflows/ci.yml).

  • Link al job fallito: https://github.com/TargetMisser/FlightWorkApp/actions/runs/24052270532/job/70188360571
  • Errore: fallisce su npm ci perché package.json e package-lock.json non sono sincronizzati.

Dettagli principali dal log:

  • npm ci richiede che lockfile e package.json siano allineati
  • mismatch/mancanze nel lockfile:
    • Invalid: @react-native-picker/picker nel lock è 2.11.1 ma serve 2.11.4
    • Missing: expo-secure-store@15.0.8 manca dal lockfile
    • Invalid: pdfjs-dist nel lock è 5.5.207 ma serve 5.6.205
    • Invalid: react-native-webview nel lock è 13.15.0 ma serve 13.16.1

Per sistemare: aggiorna il lockfile (tipicamente npm install nella root del progetto) e committa le modifiche a package-lock.json, poi il CI con npm ci dovrebbe ripartire. Se vuoi, dimmi su che branch/commit stai lavorando e ti guido sul set minimo di cambi da committare.

User: Boh, fallo te grazie 🤣

Assistant: Posso farlo io, ma per farlo “bene” devo sapere dove applicare la fix, perché la PR #41 è già mergiata su main (merge alle 2026-04-07 04:45:33Z). Quindi non posso “fixare quella PR” in sé: devo aprire una nuova PR che sistemi il lockfile su main (o su un branch che mi dici tu).

Confermi che vuoi che apra una nuova PR su TargetMisser/FlightWorkApp che:

  1. esegue l’equivalente di npm install per riallineare package-lock.json a package.json, e
  2. committa il nuovo package-lock.json (ed eventuali cambi necessari)?

Dimmi solo:

  • base branch: main va bene?
  • titolo PR: va bene “chore: sync package-lock.json with package.json (fix CI npm ci)”?

Se mi confermi, la apro io.

This pull request was created from Copilot chat.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flight-work-app Ready Ready Preview, Comment, Open in v0 Apr 7, 2026 9:49am

Regenerated package-lock.json to resolve version mismatches:
- @react-native-picker/picker: 2.11.1 → 2.11.4
- expo-secure-store: added 15.0.8 (was missing)
- pdfjs-dist: 5.5.207 → 5.6.205
- react-native-webview: 13.15.0 → 13.16.1

Agent-Logs-Url: https://github.com/TargetMisser/FlightWorkApp/sessions/49b6a716-e8c0-4d54-81c0-e7347eb38d67

Co-authored-by: TargetMisser <52361977+TargetMisser@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing CI job validate due to package-lock.json out of sync chore: sync package-lock.json with package.json (fix CI npm ci) Apr 7, 2026
Copilot AI requested a review from TargetMisser April 7, 2026 09:52
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.

2 participants