Quinn O'Donnell
00a8fe96f8
fix(hooks): skip stdin listeners on require and match exact tsc paths in post-edit-typecheck
...
config-protection.js and post-edit-typecheck.js attached process.stdin
listeners at module scope. tests/hooks/hook-input.test.js requires
config-protection.js, so that test never exits while stdin stays open.
Attach the listeners only when the script runs directly
(require.main === module), as stop-format-typecheck.js and quality-gate.js
already do.
post-edit-typecheck.js picked tsc diagnostics with line.includes(candidate),
so editing a root index.ts reported the errors of src/index.ts, and a
Windows relative path (src\index.ts) never matched tsc's forward-slash
output. Compare the file at the start of each diagnostic instead, the same
check diagnosticMatchesFile() does in stop-format-typecheck.js.
Refs #3821
2026-10-30 12:29:32 -04:00
..
2026-07-28 21:32:42 -04:00
2026-10-28 12:20:21 +05:00
2026-10-11 11:10:53 -04:00
2026-03-16 14:31:49 -07:00
2026-10-10 19:33:54 -04:00
2026-10-30 12:29:32 -04:00
2026-10-10 18:56:12 -04:00
2026-09-12 02:59:02 -04:00
2026-07-03 20:40:44 -07:00
2026-10-28 12:20:21 +05:00
2026-10-09 16:10:04 -04:00
2026-10-09 16:10:04 -04:00
2026-04-02 17:33:17 -07:00
2026-07-26 00:04:35 -07:00
2026-05-19 12:51:18 -04:00
2026-06-29 15:54:55 -07:00
2026-08-10 22:33:10 -04:00
2026-09-13 05:08:23 +08:00
2026-10-11 05:31:15 -04:00
2026-10-11 09:42:05 -04:00
2026-10-11 02:22:24 -04:00
2026-05-15 23:18:01 -04:00
2026-10-28 12:20:21 +05:00
2026-10-29 17:00:10 -07:00
2026-09-29 21:50:25 -04:00
2026-09-29 21:50:26 -04:00
2026-09-07 17:57:26 -04:00
2026-10-15 23:22:53 +05:30
2026-10-23 00:52:59 +00:00
2026-10-09 19:10:06 -04:00
2026-10-09 15:59:20 -04:00
2026-10-09 15:59:20 -04:00
2026-10-09 15:59:20 -04:00
2026-10-09 15:59:20 -04:00
2026-09-12 02:59:02 -04:00
2026-10-28 12:20:21 +05:00
2026-05-18 00:47:05 -04:00
2026-10-29 19:15:02 -07:00
2026-09-14 13:24:58 +05:30
2026-06-25 16:47:32 -07:00
2026-06-07 13:01:24 +08:00
2026-09-19 20:56:34 +08:00
2026-08-12 18:36:30 -04:00
2026-10-11 08:56:29 -04:00
2026-10-27 16:52:44 -03:00
2026-10-11 02:16:56 -04:00
2026-07-03 21:10:45 -07:00
2026-05-19 12:51:18 -04:00
2026-09-06 00:01:49 +08:00
2026-07-03 21:10:45 -07:00
2026-08-24 22:26:24 -03:00
2026-10-25 17:54:47 -04:00
2026-09-07 16:26:10 -04:00
2026-10-10 19:19:30 -04:00
2026-07-08 17:12:48 -04:00
2026-09-02 19:55:26 -04:00
2026-10-09 15:56:14 -04:00
2026-03-16 14:31:49 -07:00
2026-10-30 12:29:32 -04:00
2026-10-09 15:59:20 -04:00
2026-09-21 14:33:19 -04:00
2026-10-29 18:44:54 +00:00
2026-05-28 07:45:46 -04:00
2026-07-20 16:21:03 -04:00
2026-07-28 21:32:42 -04:00
2026-10-10 19:13:24 -04:00
2026-10-11 02:03:45 -04:00
2026-09-18 18:42:20 -04:00
2026-10-28 11:55:06 -07:00
2026-10-29 18:57:29 -07:00
2026-10-29 19:42:27 -07:00
2026-10-10 20:28:19 -04:00
2026-10-07 19:45:21 -05:00
2026-10-22 23:42:21 +02:00
2026-10-28 12:20:21 +05:00
2026-10-29 19:42:27 -07:00
2026-08-11 14:15:57 -04:00