Gradle, js: revert to storing compile output inside node_modules
#KT-30530
Currently kotlin JS compiler generated `require('a.js')` for test -> main
dependencies. This is not worked in layout with compile output at project
work dir (will work if compiler will generate `require('a_test.js')`).
This commit is contained in:
+1
-8
@@ -32,14 +32,7 @@ enum class NpmProjectLayout {
|
||||
nodeJsWorldDir.resolve("packages").resolve(projectPackage)
|
||||
}
|
||||
|
||||
return object : NpmProject(
|
||||
project,
|
||||
workDir,
|
||||
searchInParents = true
|
||||
) {
|
||||
override val compileOutputCopyDest: File?
|
||||
get() = nodeWorkDir
|
||||
}
|
||||
return NpmProject(project, workDir, searchInParents = true)
|
||||
}
|
||||
},
|
||||
BUILD_DIR {
|
||||
|
||||
Reference in New Issue
Block a user