Skip to content

fix(build): remove package-lock.json from install stamp prerequisites#133

Merged
CoderCoco merged 1 commit into
mainfrom
worktree-claude+issue-132-fix-makefile-install-stamp
May 10, 2026
Merged

fix(build): remove package-lock.json from install stamp prerequisites#133
CoderCoco merged 1 commit into
mainfrom
worktree-claude+issue-132-fix-makefile-install-stamp

Conversation

@CoderCoco
Copy link
Copy Markdown
Owner

Closes #132

Summary

  • app/package-lock.json was listed in PKG_JSONS as a hard prerequisite for .make/install.stamp, but it is an output of npm install, not an input — making the dependency circular
  • On a fresh clone the file doesn't exist, so Make immediately bails with No rule to make target 'app/package-lock.json', needed by '.make/install.stamp'
  • Removed the lockfile from PKG_JSONS; the workspace package.json files are sufficient for detecting when a re-install is needed

Test plan

  • Run make tf-plan (or make build-lambdas) on a fresh clone with no app/package-lock.json present — confirm the install stamp runs successfully instead of bailing with a missing-target error

package-lock.json is an output of npm install, not an input.
Listing it in PKG_JSONS caused Make to immediately bail with
"No rule to make target 'app/package-lock.json'" on fresh clones
where the file does not yet exist.

Closes #132

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 10, 2026 02:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a Makefile dependency cycle that caused make tf-plan (and other targets depending on .make/install.stamp) to fail on a fresh clone by removing app/package-lock.json from the install stamp prerequisites, since that lockfile is produced by npm install and may not exist beforehand.

Changes:

  • Removed app/package-lock.json from PKG_JSONS, so .make/install.stamp depends only on workspace package.json files.

@CoderCoco CoderCoco merged commit 2e7edc1 into main May 10, 2026
12 checks passed
@CoderCoco CoderCoco deleted the worktree-claude+issue-132-fix-makefile-install-stamp branch May 10, 2026 02:35
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.

fix(makefile): remove package-lock.json as install stamp prerequisite

2 participants