After debugging the procedure, it is found that the call-process calls prettier with arguments with outputting to temporary files before doing patching. Original implementation is to input code content to prettier via standard input, however somehow it does not work under win11/powershell. When putting the code file as argument, the reformat is working (e.g. prettier xxx.js).
Test Coverage
Only tested on Win11. Environment can be found in issue #77 as well.
Problem
See the issue #77
Brief Analysis
After debugging the procedure, it is found that the
call-process
callsprettier
with arguments with outputting to temporary files before doing patching. Original implementation is to input code content toprettier
via standard input, however somehow it does not work under win11/powershell. When putting the code file as argument, the reformat is working (e.g.prettier xxx.js
).Test Coverage
Only tested on Win11. Environment can be found in issue #77 as well.