Closed daichuanwu21 closed 1 year ago
You're absolutely right. I was intending on removing it from the .gitignore as soon as we got a stable release (which we now do) but ultimately forgot.
This is indeed the maintained version of V5 Refer to: https://github.com/SudhanPlayz/Discord-MusicBot/pull/1227
Is your feature request related to a problem? Please describe.
The package-lock.json file generated by NPM during install is currently being ignored under .gitignore.
This is specifically discouraged by NPM's documentation found here. The relevant extract is shown below:
Most significantly, adding the package-lock.json allows for reproducibility in both testing and production deployments. For example, it would become possible to easily distinguish between a regression introduced by developer code, versus some dependency that just so happened to change versions. Furthermore, it will reduce confusion among end-users, who may be annoyed that newer deployments don't share the same behavior to older deployments.
Describe the ideal solution
npm ci
instead ofnpm install
, while warning against usingnpm install
(this is becausenpm ci
does not update package-lock.json, and installs packages exactly according to the lock file)npm ci
instead ofnpm install
Describe alternatives you've considered
None considered.
Additional context
This issue is copy of #1266 on the SudhanPlayz repo, since I'm not exactly sure which is being actively developed.