Commit 7b502b0
agentmd: run CLI via tsx in subprocess tests
The release workflow runs `npm test` before `npm run build`, so the new
cli.test.ts's dependency on `dist/cli.js` broke the v0.2.0 publish. Invoke
the CLI straight from source with `node --import tsx src/cli.ts` instead
— matches how the test runner itself loads TypeScript and removes the
ordering dependency.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent e73c41a commit 7b502b0
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments