Skip to content

Fix docs AI smart contracts path#996

Open
samsamtrum wants to merge 1 commit into
NilFoundation:mainfrom
samsamtrum:fix-docs-ai-smart-contracts-path
Open

Fix docs AI smart contracts path#996
samsamtrum wants to merge 1 commit into
NilFoundation:mainfrom
samsamtrum:fix-docs-ai-smart-contracts-path

Conversation

@samsamtrum
Copy link
Copy Markdown

Summary

  • resolve the smart contracts source path from populateDB.js instead of relying on the process working directory
  • load contracts from the checked-out smart-contracts/contracts folder instead of root node_modules

Why

This addresses #732 by removing the docs AI DB population dependency on node_modules/@nilfoundation/smart-contracts/contracts. The route can now find the Solidity sources from the repository layout directly.

Testing

  • git diff --check
  • Verified the resolved path points to smart-contracts/contracts and exists locally

Note: pnpm install --frozen-lockfile is currently blocked by an overrides/lockfile config mismatch with pnpm 11, and pnpm --filter docs_ai_backend exec tsc --noEmit triggers workspace install that fails on malformed registry metadata for hardhat-foundry in rollup-bridge-contracts.

Fixes #732

@samsamtrum samsamtrum force-pushed the fix-docs-ai-smart-contracts-path branch from d3fa521 to 41ff7d0 Compare May 22, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove vectorizing smart-contracts from node_modules in docs_ai_backend

1 participant