Repository navigation
Every package.json is a derived input: npm run runs its scripts - #38
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
inputs/package-json
branch
from
December 4, 2026 02:31
40b9166 to
0764402
Compare
Only package.json's packageManager field was an input, so a job running `npm run test` skipped after its test script changed. Every job now gets every tracked package.json, the same over-inclusive rule as lockfiles: cigen can't tell which job runs a package manager, or in which package.
ndbroadbent
force-pushed
the
inputs/package-json
branch
from
December 4, 2026 02:38
0764402 to
543d633
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 4, 2026
This was referenced Dec 4, 2026
ndbroadbent
added a commit
that referenced
this pull request
Dec 4, 2026
#38 made every package.json a derived input, through the same list as the patterns modules contribute, so explain labelled `**/package.json` as coming from a module. Derived patterns now carry a reason, `from a module` or `every package.json`, like derived files do.
ndbroadbent
added a commit
that referenced
this pull request
Dec 4, 2026
#38 made every package.json a derived input, through the same list as the patterns modules contribute, so explain labelled `**/package.json` as coming from a module. Derived patterns now carry a reason, `from a module` or `every package.json`, like derived files do.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a false skip on main from the bootstrap field report: only
package.json'spackageManagerfield was a derived input, so a job runningnpm run testskipped after itstestscript changed.What changed
package.json(pattern**/package.json, which includes the root's since Match globs with :(glob) pathspecs: **/*.md now includes root files #28, resolved withgit ls-fileslike module inputs). This is the same over-inclusive rule as lockfiles: cigen can't tell which job runs a package manager, or in which package.package_managermoved tosrc/inputs/packages.rs, with the patterns, sosrc/inputs.rsstays under 300 lines.package.json. STATUS is updated.Default hashes change once for projects that have a
package.json.Tests
tests/derived_inputs.rschanging_the_package_script_the_job_runs_makes_it_run, in mockci: a job runsnpm run test. Changing the root'stestscript reruns it, and so does changing a sub-package's. It failed on main at the root change before the fix.task cipasses with no warnings.#26 will carry the same rule over: a narrowed job gets the
package.jsonfiles only when it's in the node family or opaque.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.