as a simple example i have two Javascript files.
toAppend.js:
console.log("appended content");
main.js
console.log("main content");
when i run:
type toAppend.js >> main.js
in my power shell, it copies over a bunch of invalid chars, in between each letter. see image.
second, when i try to add this command to an NPM script, it says i have the incorrect syntax.
Any idea why this issue is occuring? since i'm using windows, i suppose the shell used to execute npm would be cmd.exe