Skip to content

Surface declared lifecycle scripts across 13 ecosystems - #100

Merged
andrew merged 1 commit into
mainfrom
lifecycle-scripts
Sep 22, 2026
Merged

andrew merged 1 commit into
mainfrom
lifecycle-scripts

Conversation

@andrew

@andrew andrew commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Expose declared hooks and tasks through ParseResult.Scripts, a map[string][]string that preserves ordered commands, callbacks and script paths. This lets consumers detect changes such as a new npm postinstall command or gemspec extension.

Adds extraction for npm, RubyGems, Cargo, Composer, Crystal, Deno, DUB, NuGet/MSBuild, Poetry/PDM, OPAM, Alpine, Arch and CocoaPods, with public API fixtures and documented format limits. Parsing reads declarations without executing scripts or resolving dynamic expressions. File-based detection of implicit hooks is tracked in git-pkgs/brief#194.

Closes #99.

@andrew
andrew merged commit 5a80185 into main Sep 22, 2026
5 checks passed
@andrew
andrew deleted the lifecycle-scripts branch September 22, 2026 07:39
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.

Surface lifecycle scripts from manifests

1 participant