It is a common pattern to add the dist folder to the .gitignore so it is not tracked by git. This makes diffs much easier to read and shouldn't affect anything.
If doing this it might be good to also add a prepublish script that builds before publish (so this won't be accidentally forgotten when releasing).
It is a common pattern to add the dist folder to the
.gitignoreso it is not tracked by git. This makes diffs much easier to read and shouldn't affect anything.If doing this it might be good to also add a
prepublishscript that builds before publish (so this won't be accidentally forgotten when releasing).