feat(npm): add self-contained support
Metadata
Current evaluation
Merged. Adds self-contained build support to the npm plugin, enabling dependency installation from pre-cached tarballs and using a bundled semver.js binary. Introduces an npm-publish-to-cache key for exporting tarballs. Approved by three reviewers.
Suggested action: —
No scores available.
Issue body
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint && make test`?
- [x] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
---
- Adds `self-contained` build attribute support for npm plugin.
- dependencies are installed from pre-cached tarballs
- version resolution uses the semver.js binary that is bundled with node.js
- Adds a `npm-publish-to-cache` key to pack tarballs to export directory
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Adds self-contained build support to the npm plugin, enabling dependency installation from pre-cached tarballs and using a bundled semver.js binary. Introduces an npm-publish-to-cache key for exporting tarballs. Approved by three reviewers. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged by smethnani. Enables self-contained npm builds by installing dependencies from pre-cached tarballs and bundling semver.js. Adds an npm-publish-to-cache key to export tarballs to the export directory. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1462 feat: add npm-use | craft-parts | merged | Merged an npm-use plugin that packs tarballs to the export directory, moving shared logic to npm_utils.py. Approved by two reviewers and passed all CI checks. |