Skip to content

fix: typesVersions paths + ads-docs build order#43

Open
brenonovelli wants to merge 1 commit into
mainfrom
fix/ads-docs-build
Open

fix: typesVersions paths + ads-docs build order#43
brenonovelli wants to merge 1 commit into
mainfrom
fix/ads-docs-build

Conversation

@brenonovelli

Copy link
Copy Markdown
Collaborator

Summary

Fixes the pre-existing CI failure in ads-docs:build.

Root causes

1. Wrong typesVersions paths in @vtex/ads-core

typesVersions pointed to ./dist/clients/adServer/index.d.ts but tsup outputs declarations to ./dist/esm/clients/adServer/index.d.ts. TypeDoc (used by ads-docs) and TypeScript resolvers that fall back to typesVersions couldn't find the .d.ts for the /adServer and /search subpaths.

2. Turbo build ordering

ads-docs didn't list @vtex/ads-core or @vtex/ads-react as dependencies, so Turbo could start ads-docs:build in parallel with the packages on cold cache — before their types were generated.

Changes

  • packages/core/package.json: ./dist/clients/./dist/esm/clients/ in typesVersions
  • packages/ads-docs/package.json: add @vtex/ads-core and @vtex/ads-react as devDependencies so Turbo waits for them before starting the docs build

🤖 Generated with Claude Code

…o ads-docs

typesVersions pointed to ./dist/clients/ but the actual output directory is
./dist/esm/clients/ — TypeDoc and older TypeScript resolvers couldn't find the
declaration files for @vtex/ads-core/adServer and @vtex/ads-core/search subpaths.

Adding @vtex/ads-core and @vtex/ads-react as devDependencies to ads-docs so
Turbo enforces build order and ads-docs never starts before types are generated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonar-workflows

Copy link
Copy Markdown

Failed Quality Gate failed

  • 69 New Issues (is greater than 0)
  • 0.00% Coverage on New Code (is less than 80.00%)
  • 0.00% Security Hotspots Reviewed on New Code (is less than 100.00%)

Project ID: ads-js

View in SonarQube

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.

1 participant