Skip to content

Commit

Permalink
chore(node): Add a link to the documentation for shrinkwrap
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Sep 17, 2024
1 parent a960e4c commit 705b62c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ enum class NodePackageManager(
val markerFileName: String? = null,
val workspaceFileName: String = NodePackageManager.DEFINITION_FILE
) {
NPM("package-lock.json", markerFileName = "npm-shrinkwrap.json") {
NPM(
lockfileName = "package-lock.json",
markerFileName = "npm-shrinkwrap.json" // See https://docs.npmjs.com/cli/v6/configuring-npm/shrinkwrap-json.
) {
override fun hasLockfile(projectDir: File): Boolean =
super.hasLockfile(projectDir) || hasNonEmptyFile(projectDir, markerFileName)
},
Expand Down

0 comments on commit 705b62c

Please sign in to comment.