Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

Disable npm install scripts - #322

Merged
zanieb merged 1 commit into
astral-sh:mainfrom
zaniebot:agent/disable-npm-install-scripts
Aug 18, 2026
Merged

zanieb merged 1 commit into
astral-sh:mainfrom
zaniebot:agent/disable-npm-install-scripts

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Scenario formatting uses npm ci with dependency lifecycle scripts enabled, and npx can download a formatter if the local command is missing. Set ignore-scripts=true, make the install policy explicit in CI, and invoke the formatter installed from the existing lockfile. The dependency versions are unchanged.

Related: #324 adds an enforced seven-day release-age policy to this lockfile. astral-sh/hawk#161 and astral-sh/astral-tl#21 record locked prettier environments for their formatting jobs. astral-sh/uv#21193 covers uv's direct prettier invocations.

@zanieb
zanieb marked this pull request as ready for review August 18, 2026 17:00
@zanieb
zanieb merged commit 07b349b into astral-sh:main Aug 18, 2026
8 checks passed
zanieb pushed a commit that referenced this pull request Aug 18, 2026
The formatter is installed from a lockfile, but new npm resolutions can
still select a package immediately after publication. Add a seven-day
release-age policy and require `npm>=11.10.0` with `engine-strict` so
older clients cannot silently ignore it. Use a compatible Node 24
runtime in CI and keep the existing locked dependency versions.

Follow-up to #322. Related: astral-sh/uv#21193.

Co-authored-by: zaniebot <[email protected]>
zanieb pushed a commit that referenced this pull request Aug 18, 2026
The Node range added in #324 ensures npm supports
dependency cooldowns, but it still changes as new Node 24 releases
become available. Pin CI to Node `24.19.0` so runtime updates are
reviewed as repository changes. The existing Renovate GitHub Actions
configuration can maintain the exact version.

Related: #324 supplies the cooldown-supporting `npm`
policy, and #322 covers script-free locked formatter
installation.

Co-authored-by: zaniebot <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants