NpmConfig uses package 'ini' which adds CRLF on Windows #3545
Labels
bug
Something isn't working
good first issue
Good for newcomers
windows
Issues with running projen on Windows
I ran into an issue where developers on Windows generated a different .npmrc file with the NpmConfig class then developers on Ubuntu. The cause is the use of the 'ini' package for the .npmrc file:
projen/src/javascript/npm-config.ts
Line 38 in 6ee24aa
That package adds CRLF on Windows, but just LF on Ubuntu.
This results in the mutation check constantly failing as different developers commit slightly different versions of the .npmrc file.
I believe this file could just as easily be created with TextFile, which would avoid this problem.
The text was updated successfully, but these errors were encountered: