サンプル
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
ケース
- ゴール
- Show that bun@1.3.14 is packaged as a CLI-only dependency rather than a Node import target. HOW
- パッケージ
- bun 1.3.14
- 環境
- node
- 作成日
- 2026-08-17T01:47:46Z
よくある思い込み
Pinning bun in package.json should let Node import it as a normal dependency module.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- 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')
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9