Skip to content

release: v4.35.5 - pack subjects with --ignore-scripts - #446

Merged
Shinrai merged 11 commits into
masterfrom
next
Nov 8, 2026
Merged

Shinrai merged 11 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

v4.35.5 — 2026-11-08

Patch release with one workflow fix and a package-layout update. SLSA provenance attaches again for packages that build in prepack, and the package layout convention now names the CommonJS test script test:cjs and defines test:dist as the full test suite run against the build.

Bug Fixes

  • Provenance packs without lifecycle scripts. The subjects job in reusable-provenance.yml re-packs the publish run's build artifact with npm pack, which runs prepack first. The job never installs dependencies, so a package whose prepack builds (llm-translator's tsup) failed with tsup: not found, the SLSA job was skipped and no .intoto.jsonl was attached to the release. Both npm pack calls now pass --ignore-scripts, the same as the publish side, so the subjects still match the published tarball. Fixes #444. (#445)

Documentation

  • test:cjs and test:dist in the package layout. package-layout.md called the script that runs tests/cjs/entry.test.cjs test:dist, though it only checks the CommonJS entry on the build. That script is now test:cjs: the entry check (dist/index.cjs loading dist/index.mjs) plus any CommonJS-only tests in tests/cjs/. test:dist now means the whole vitest suite run against dist/ instead of src/. Tests import the package by name, and the vitest config leaves the <pkg>-dev condition out for --mode=dist, with a resolve test checking the import landed on the right tree (CLDMV/gitmulti is the reference). Unbundled builds (tsup bundle: false) can instead redirect resolved src/ paths to dist/, which also runs internal-module tests against the build. Fixes #442. (#443)

Upgrade notes

  • No caller changes needed; the provenance fix rides the @v4 tag. Repos that named the CommonJS entry check test:dist should rename it to test:cjs.
👥 Contributors

Co-authored-by: Shinrai [email protected]

Shinrai and others added 6 commits November 7, 2026 20:56
The subjects job re-packs the publish run's build artifact without
installing dependencies, so a prepack build (llm-translator's tsup)
failed with 'tsup: not found' and no .intoto.jsonl was attached.
Publishing already packs with --ignore-scripts, so skipping lifecycle
scripts here keeps the subjects matching the published tarball.

Fixes #444
…t:dist

test:cjs runs the CommonJS entry check plus any CommonJS-only tests in
tests/cjs/. test:dist is the full suite against dist/; an unbundled
build (tsup bundle: false) can redirect resolved src/ paths to dist/
instead of switching tests to by-name imports.

Refs #442
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 8, 2026
Shinrai and others added 3 commits November 7, 2026 22:03
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- docs: v4.35.5 release notes and README What's New (27ac440)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
Provenance's subjects job re-packs the publish run's build artifact
without installing deps, so a `prepack` build (llm-translator's tsup)
died with `tsup: not found` and no `.intoto.jsonl` got attached.
Publishing already packs with `--ignore-scripts`, so adding it to both
`npm pack` calls here keeps the sha256 subjects matching what npm got.

Resolves #444
@cldmv-bot cldmv-bot Bot added the type: ci Changes to CI workflows, actions, or build pipelines label Nov 8, 2026
@cldmv-bot cldmv-bot Bot changed the title release: v4.35.5 - name the CJS entry test script test:cjs, not test:dist release: v4.35.5 - pack subjects with --ignore-scripts Nov 8, 2026
@cldmv-bot cldmv-bot Bot added the type: bug Something is broken or not behaving as expected label Nov 8, 2026
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- docs: add the provenance fix to the v4.35.5 notes (b929e21)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@Shinrai
Shinrai merged commit 2f9b416 into master Nov 8, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reusable-provenance: npm pack runs prepack without dependencies installed package-layout: test:dist runs only the CJS entry test, name it test:cjs

1 participant