Skip to content

chore(server): refresh package-lock metadata to match package.json (name / version / license drift) #50

Closed

Description

@gkhngyk

What's wrong

server/package-lock.json has stale top-level metadata that doesn't
match the current server/package.json:

Field Lock file (stale) package.json (truth)
name aeo-server @aeohub/ansvisor-server
version 1.0.0 0.1.0
license ISC MIT

The package was renamed and the license was set to MIT, but npm install was never run after those edits, so the lock file kept the
old defaults from when the project was first scaffolded.

Why this matters

  • License scanners / supply-chain tools read the lock file too.
    Reporting ISC for an MIT-licensed package is incorrect metadata
    on a public open-source repo and confuses any downstream
    compliance check that parses lockfiles.
  • Package name drift means npm itself shows the wrong project
    name in install warnings, audit output, and npm ls.
  • Version drift misleads anyone reading the lock file directly
    about what's actually in package.json.

The actual dependency tree in the lock file is fine — only the
top-level metadata block (the very first object in the file) is
stale.

Fix

This is a one-command fix. From a clean clone of main:

cd server
npm install

That re-syncs the lock file's top metadata with package.json
without changing any of the resolved dependency versions. Verify the
diff is small and only touches the name, version, and
license fields at the very top of server/package-lock.json —
nothing else.

If the diff shows any dep version churn, don't commit it: that
means your local npm resolved something different than what's
locked. Try npm ci instead, or open a discussion before pushing.

How to verify

  • git diff server/package-lock.json shows exactly three field
    changes near the top (name, version, license) — and no
    dependency-tree changes
  • cat server/package-lock.json | head -10 shows the new
    values matching server/package.json
  • cd server && npm run dev still starts the server cleanly

Out of scope

  • Upgrading any actual dependencies (this is metadata-only)
  • Touching web/yarn.lock (different workspace, different package
    manager)

Contribution guide

See CONTRIBUTING.md for branch naming, commit
conventions, and PR workflow.

Activity

  1. added
    bug
    good first issue
    help wanted
    on May 18, 2026
  2. sourabh-31 commented on May 18, 2026

    @sourabh-31
    Contributor

    Hi, I will be fixing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions