mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): drop min-release-age override from managed npm ci (#11270)
Updates of pi.dev installer installs run npm ci against a release lockfile that pins every package, so npm never resolves versions and a configured min-release-age does not apply. The --min-release-age=0 flag had no effect, but security scanners that block it stopped the update. Global npm, pnpm and bun self-updates keep their age-gate overrides. closes #11262
This commit is contained in:
parent
ac80dd88f3
commit
476a303c12
2 changed files with 6 additions and 1 deletions
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
|
||||
- `pi update` for installs from the pi.dev installer no longer passes `--min-release-age=0` to `npm ci`. The release lockfile pins every package, so the flag had no effect, and security scanners that block it stopped the update ([#11262](https://github.com/earendil-works/pi/issues/11262))
|
||||
|
||||
## [1.4.0] - 2026-10-21
|
||||
|
||||
### New Features
|
||||
|
|
|
|||
|
|
@ -88,10 +88,11 @@ async function fetchInstallerArtifact(url: string, label: string): Promise<strin
|
|||
}
|
||||
|
||||
async function runManagedNpmCi(stageDir: string): Promise<void> {
|
||||
// No age-gate override: the release lockfile pins every package, so npm never
|
||||
// resolves versions and a configured min-release-age does not apply.
|
||||
const args = [
|
||||
"ci",
|
||||
"--ignore-scripts",
|
||||
"--min-release-age=0",
|
||||
"--omit=dev",
|
||||
"--include=optional",
|
||||
"--no-fund",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue