Skip to content

fix: add explicit name to package.json#2199

Open
merchako wants to merge 1 commit intoai/mainfrom
ai/feature/fix-package-name-alex-04-13-2026
Open

fix: add explicit name to package.json#2199
merchako wants to merge 1 commit intoai/mainfrom
ai/feature/fix-package-name-alex-04-13-2026

Conversation

@merchako
Copy link
Copy Markdown
Contributor

@merchako merchako commented Apr 14, 2026

Summary

  • Adds "name": "paranext-core" to the root package.json
  • Regenerates package-lock.json with the correct name

Problem

The root package.json had no name field. npm falls back to the containing directory name when this field is absent, so anyone whose clone isn't in a folder named paranext-core" (e.g. a folder named core) will produce a package-lock.json with that directory name after running npm install. This creates spurious diffs that can accidentally get committed.

Test plan

  • Run npm install in the repo — package-lock.json should show "name": "paranext-core" regardless of directory name

🤖 Generated with Claude Code


Open with Devin

This change is Reviewable

…d into package-lock.json

Without a top-level `name` field, npm falls back to the containing
directory name. Anyone whose clone isn't named `paranext-core` will
produce a `package-lock.json` with a different name on `npm install`,
creating spurious diffs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Copy link
Copy Markdown
Contributor

@irahopkinson irahopkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@irahopkinson reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on merchako).


package.json line 2 at r1 (raw file):

{
  "name": "paranext-core",

I don't think you can do this because of the way ERB scripts work with this and the release/app/package.json (where the name is). If you want to pursue this you should talk to @tjcouch-sil about this change.

Also note this is based off of the ai/main branch so this isn't something we can merge into main anyway.

@merchako
Copy link
Copy Markdown
Contributor Author

Oh, in that case I have some investigating to do. Claude got confused and tried to merge with ai/main, which already caused other problems for me.

This might be a red herring.

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