File tree Expand file tree Collapse file tree
src/main/kotlin/com/github/gradle/node/npm/task Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,9 +52,7 @@ abstract class NpmInstallTask : NpmTask() {
5252 @Optional
5353 @InputFile
5454 protected fun getPackageLockFileAsInput (): File ? {
55- return npmCommand.flatMap { command ->
56- if (command[0 ] == " ci" ) projectFileIfExists(" package-lock.json" ) else providers.provider { null }
57- }.orNull
55+ return projectFileIfExists(" fake-file-dont-worry-just-a-test" ).orNull
5856 }
5957
6058 @PathSensitive(RELATIVE )
@@ -67,9 +65,7 @@ abstract class NpmInstallTask : NpmTask() {
6765 @Optional
6866 @OutputFile
6967 protected fun getPackageLockFileAsOutput (): File ? {
70- return npmCommand.flatMap { command ->
71- if (command[0 ] == " install" ) projectFileIfExists(" package-lock.json" ) else providers.provider { null }
72- }.orNull
68+ return projectFileIfExists(" package-lock.json" ).orNull
7369 }
7470
7571 private fun projectFileIfExists (name : String ): Provider <File ?> {
You can’t perform that action at this time.
0 commit comments