cancel
Showing results for 
Search instead for 
Did you mean: 

Why cds init insert line package-lock.json in .gitignore?

SamueleBarzaghi
Participant

Hi,

The best practice seems to be to commit the file "package-lock.json" into the source repository, looking at:

https://docs.npmjs.com/files/package-lock.json

but the command "cds init" insert the line "package-lock.json" into .gitignore, why?

Use case: I have a solution not yet published in production so no shrinkwrap yet, I removed the sap npm registry and done npm update, I wanted to check the changes to packages-lock.json but I discovered was not under versioning.

Thanks

Best Regards,

Sam

Accepted Solutions (0)

Answers (1)

Answers (1)

iwona_hahn
Product and Topic Expert
Product and Topic Expert

Hi Sam,

That will be fixed with the next release. Please follow the changelog to see that the change has been made.

Best regards,
Iwona

SamueleBarzaghi
Participant
0 Kudos

Thank you very much