Skip to content

Commit 6e81083

Browse files
committed
Expand only package.json file during prepareNodePackage, otherwise files like webpack configs may become corrupted
1 parent 4d5246a commit 6e81083

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gradle/node-js.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ node {
1515

1616
task prepareNodePackage(type: Copy) {
1717
from("npm") {
18+
include 'package.json'
1819
// Postpone expansion of package.json until we configure version property in build.gradle
1920
def copySpec = it
2021
afterEvaluate {
2122
copySpec.expand(project.properties + [kotlinDependency: ""])
2223
}
2324
}
25+
from("npm") {
26+
exclude 'package.json'
27+
}
2428
into "$node.nodeModulesDir"
2529
}
2630

0 commit comments

Comments
 (0)