Run NPM_AUTH_TOKEN=dummy ./gradlew :kilua-assets:pack (some token in env is required to enable task)
Two packages are created inside kilua-assets/build/packages. aaa-kilua-assets-0.0.3.tgz contains nodejs_dom.js and nodejs_dom.mjs files, and zzz-kilua-assets-0.0.3-tgz contains style.css at the top level (so far so good, this is how the packages are configured inside kilua-assets/build.gradle.kts).
Now make a change in kilua-assets/build.gradle.kts changing from("$projectDir/src/js") to from("$projectDir/src") and from("$projectDir/src/css") to from("$projectDir/src").
Delete kilua-assets/build directory
Run NPM_AUTH_TOKEN=dummy ./gradlew :kilua-assets:pack again.
Two packages are created again but the first one (aaa-kilua-assets-0.0.3.tgz) still contains nodejs_dom.js and nodejs_dom.mjs files at top level (and it should not - it should be the same as the other package, which for some reason is build correctly). Cleaning the project and build directories doesn't help. The package will be incorrect every time.
Steps to reproduce:
NPM_AUTH_TOKEN=dummy ./gradlew :kilua-assets:pack
(some token in env is required to enable task)kilua-assets/build/packages
.aaa-kilua-assets-0.0.3.tgz
containsnodejs_dom.js
andnodejs_dom.mjs
files, andzzz-kilua-assets-0.0.3-tgz
containsstyle.css
at the top level (so far so good, this is how the packages are configured insidekilua-assets/build.gradle.kts
).kilua-assets/build.gradle.kts
changingfrom("$projectDir/src/js")
tofrom("$projectDir/src")
andfrom("$projectDir/src/css")
tofrom("$projectDir/src")
.kilua-assets/build
directoryNPM_AUTH_TOKEN=dummy ./gradlew :kilua-assets:pack
again.aaa-kilua-assets-0.0.3.tgz
) still containsnodejs_dom.js
andnodejs_dom.mjs
files at top level (and it should not - it should be the same as the other package, which for some reason is build correctly). Cleaning the project andbuild
directories doesn't help. The package will be incorrect every time.