Skip to content

Commit 24bf3ad

Browse files
author
Oleksandr Dzhychko
committed
build: do not cache output of NPX tasks if package-lock.json changes
A PR with a new Redocly version should have failed because of a bug, but it did not because we cached the results. See #1037 See Redocly/redocly-cli#1715
1 parent 5afb6d6 commit 24bf3ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

model-server-openapi/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ val bundleSpecs = tasks.register<NpxTask>("bundleSpecs") {
1919

2020
dependsOn(tasks.getByName("npmInstall"))
2121

22+
inputs.file("package-lock.json")
2223
inputs.dir(specDir)
2324

2425
outputs.cacheIf { true }
@@ -35,6 +36,7 @@ val joinSpecs = tasks.register<NpxTask>("joinSpecs") {
3536
dependsOn(tasks.getByName("npmInstall"))
3637
dependsOn(bundleSpecs)
3738

39+
inputs.file("package-lock.json")
3840
inputs.dir(bundleDir)
3941

4042
outputs.cacheIf { true }

0 commit comments

Comments
 (0)