Exemple
Show that bun@1.3.14 is packaged as a CLI-only dependency rather than a Node import target.
sha256:feaf494f32801624ed6dcb922a8b559317e40869628693430e06c1e9a981e370
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Show that bun@1.3.14 is packaged as a CLI-only dependency rather than a Node import target. HOW
- Paquets
- bun 1.3.14
- Environnement
- node
- Créé
- 2026-08-17T01:47:46Z
Ce que l'on suppose souvent
Pinning bun in package.json should let Node import it as a normal dependency module.
L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.
Contrat
- bun@1.3.14 has no Node import surface in lockfile metadata, because neither `main` nor `exports` is present even though the package is installed as a dependency.
- assert.equal(lock.version, 3)
- assert.equal(bun.version, '1.3.14')
- assert.equal(bun.main, undefined)
- assert.equal(bun.exports, undefined)
- assert.deepStrictEqual(bun.bin, { bun: 'bin/bun.exe', bunx: 'bin/bunx.exe' })
- assert.ok(typeof bun.optionalDependencies['@oven/bun-linux-x64'] === 'string')
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9