{"record":{"id":"860e85bfbc7a9567","repo":"oven-sh/bun","slug":"did-not-find-vendor-json-vendorpath","errorCode":null,"errorMessage":"Did not find vendor.json: ${vendorPath}","messagePattern":"Did not find vendor\\.json: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"scripts/runner.node.mjs","lineNumber":2371,"sourceCode":" * @property {boolean | Record<string, boolean | string>} [skipTests]\n */\n\n/**\n * @typedef {object} VendorTest\n * @property {string} cwd\n * @property {string} packageManager\n * @property {string} testRunner\n * @property {string[]} testPaths\n */\n\n/**\n * @param {string} cwd\n * @returns {Promise<VendorTest[]>}\n */\nasync function getVendorTests(cwd) {\n  const vendorPath = join(cwd, \"test\", \"vendor.json\");\n  if (!existsSync(vendorPath)) {\n    throw new Error(`Did not find vendor.json: ${vendorPath}`);\n  }\n\n  /** @type {Vendor[]} */\n  const vendors = JSON.parse(readFileSync(vendorPath, \"utf-8\")).sort(\n    (a, b) => a.package.localeCompare(b.package) || a.tag.localeCompare(b.tag),\n  );\n\n  const shardId = parseInt(options[\"shard\"]);\n  const maxShards = parseInt(options[\"max-shards\"]);\n\n  /** @type {Vendor[]} */\n  let relevantVendors = [];\n  if (maxShards > 1) {\n    for (let i = 0; i < vendors.length; i++) {\n      if (i % maxShards === shardId) {\n        relevantVendors.push(vendors[i]);\n      }\n    }","sourceCodeStart":2353,"sourceCodeEnd":2389,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/scripts/runner.node.mjs#L2353-L2389","documentation":"Error \"Did not find vendor.json: ${vendorPath}\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at scripts/runner.node.mjs:2371 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}