Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/cli/test/published-entry-node-env-source-reroute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,16 @@ describe('#12271 - the published entry does not reroute to src/ on an ambient NO
* THE CONTROL. If this ever goes green the three assertions above have
* stopped measuring anything, and the correct response is to repair the
* fixture - never to delete this case because "the bug is fixed".
*
* ⚠️ It arms only if oclif can REGISTER tsx (`registerTsx` in `ts-path`).
* When that fails, oclif logs `Could not find tsx` under
* `DEBUG=oclif:config:ts-path` and stays on `dist/`. This leg then prints
* the version line and nothing else, and the legs above pass with the
* declaration deleted. tsx 4.23.15's CommonJS ESM API fails that way on any
* Node without tsx's `registerHooks` path (below 22.22.3 on the 22 line).
* That is why the workspace patches it: see `tsx@4.23.15` under
* `patchedDependencies` in `pnpm-workspace.yaml`. A red here with that
* output is a registration failure. Repair the registration; never this leg.
*/
it('CONTROL: neutralising the declaration in the child reproduces the card verbatim', () => {
const { status, output } = runPublishedEntry({ NODE_ENV: 'development' }, { neutralise: true });
Expand Down
8 changes: 8 additions & 0 deletions patches/tsx@4.23.15.patch

Large diffs are not rendered by default.

Loading
Loading