Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 34a4388

Browse files
author
Sergey Mashkov
committed
Disable npm package lock file
Related to issue #91
1 parent 31fe6dc commit 34a4388

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kotlin-frontend/src/main/kotlin/org/jetbrains/kotlin/gradle/frontend/npm/GeneratePackagesJsonTask.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,12 @@ open class GeneratePackagesJsonTask : DefaultTask() {
122122
packageJsonFile.writeText(JsonBuilder(resultJson).toPrettyString())
123123
npmrcFile.writeText("""
124124
progress=false
125+
package-lock=false
125126
# cache-min=3600
126127
""".trimIndent())
127128

129+
npmrcFile.resolveSibling("package-lock.json").delete()
130+
128131
if (buildPackageJsonFile != null) {
129132
buildPackageJsonFile.parentFile.mkdirsOrFail()
130133
packageJsonFile.copyTo(buildPackageJsonFile, overwrite = true)

0 commit comments

Comments
 (0)