Commit e4597e9
committed
fix(e2e): add project node_modules to NODE_PATH for pushy hdiff
Root cause: loadModule('node-hdiffpatch') in CLI's lib/diff.js uses
require.resolve with paths=['.', ...NODE_PATH]. The '.' resolves to
cliRoot/lib/, and NODE_PATH only had cliRoot/node_modules/. But
node-hdiffpatch was installed in projectRoot/node_modules/, which was
not in the search path. The module silently failed to load, the diff
command exited without error (or with a swallowed error), and the
output file was never created.
Fix: add projectRoot/node_modules to NODE_PATH so the CLI can find
node-hdiffpatch installed in the project's node_modules.1 parent 3834477 commit e4597e9
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
0 commit comments