Commit ccd7612
fix(app): emit declaration files and fix package type exports for external consumers (#26)
* fix(app): emit declaration files and fix package type exports for external consumers
- Add tsconfig.build.json that emits .d.ts only from src/ (excludes examples with test fixture imports)
- Change build script to vite build && tsc -p tsconfig.build.json so declarations survive Vite's dist clean
- Point exports.types from ./src/index.ts to ./dist/index.d.ts so consumers get compiled declarations
- Remove src/ from published files — only dist/ is shipped
- Add tests/consumer/ fixture with strict tsconfig and proof-obligation import to pass tsc --noEmit
Closes #25
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(tests): remove void operator from consumer fixture (sonarjs/void-use)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(tsconfig): exclude tests/consumer from main typecheck
tests/consumer has its own tsconfig.json with paths mapping for
@prover-coder-ai/openapi-effect. Including it in the main tsc --noEmit
causes TS2307 since the package isn't resolved in the monorepo context.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(consumer): address CodeRabbit review — build before consumer check, add baseUrl
- test:consumer now runs tsc -p tsconfig.build.json first so the script
works on a clean checkout without a pre-built dist/
- Add baseUrl: "." to tests/consumer/tsconfig.json alongside paths so
TypeScript module resolution follows the standard paths protocol
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 564ef0a commit ccd7612
5 files changed
Lines changed: 63 additions & 6 deletions
File tree
- packages/app
- tests/consumer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
0 commit comments