Anyone else run into an issue where changing the v...
# javascript
a
Anyone else run into an issue where changing the version of an npm dependency (via the Gradle DSL, i.e.
implementation(npm(package, version))
does not invalidate build cache? Kotlin 2.2.0, Gradle 8.12 Running build before and after changing the NPM dependency shows the same build cache key for
compileKotlinJs
. I would expect this to trigger a failed build and prompt the user to run
kotlinUpgradeYarnLock
like normal.
a
@Ilya Goncharov [JB] @Adam Semenenko ^^
e
Never noticed this in 2.1.21. Maybe it's a new bug.
a
Will test in 2.1.21 and report back
gratitude thank you 1
a
iirc npm dependencies are not an input for Kotlin compilation, so changing them won't affect the
compileKotlinJs
task. npm dependencies are an input for other tasks, like Webpack bundling and executing tests.