Files
2026-05-27 23:29:53 +01:00

1.2 KiB

Capability Spec Delta: testing-integration-postgres (testing-integration-vite-entry-fix)

Package: @suaveplan/testing-integration-postgres Status: PROPOSED

ADDED Requirements

Requirement: Main entry resolves for cross-package consumers

After bun run build, the file dist/index.js MUST exist at the path declared by package.json's exports."." → import.default. A consumer importing @suaveplan/testing-integration-postgres from any other workspace package MUST receive a working module without Failed to resolve entry for package errors. Enforced by output.entryFileNames: "[name].js" in vite.config.ts's build.rollupOptions.output block.

Scenario: dist/index.js is present after build

  • WHEN bunx turbo build --filter=@suaveplan/testing-integration-postgres completes
  • THEN packages/dev/testing-integration-postgres/dist/index.js exists on disk

Scenario: external consumer can import the package

  • WHEN a sibling workspace package imports from @suaveplan/testing-integration-postgres
  • THEN the import resolves and the public exports are callable

Verified by: scripts/check-fixture-resolves.ts (this change).