Skip to content

Commit e3f3e09

Browse files
committed
Don't cache when fastNpmInstall is enabled
1 parent ab81294 commit e3f3e09

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## Version 3.6.0 *(unreleased)*
66
* Allow task rules to be disabled [#116](https://github.com/node-gradle/gradle-node-plugin/issues/116)
7+
* Add `fastNpmInstall` option to only track lock-files #[157](https://github.com/node-gradle/gradle-node-plugin/issues/157)
78

89
## Version 3.5.1 *(2022-12-26)*
910
* Fix configuration cache support in pnpm

src/main/kotlin/com/github/gradle/node/npm/task/NpmInstallTask.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ abstract class NpmInstallTask : NpmTask() {
2929
dependsOn(NpmSetupTask.NAME)
3030
npmCommand.set(nodeExtension.npmInstallCommand.map { listOf(it) })
3131
fastInstall.set(nodeExtension.fastNpmInstall)
32+
outputs.doNotCacheIf("With fastNpmInstall there's no output to cache") {
33+
fastInstall.get()
34+
}
3235
}
3336

3437
@PathSensitive(RELATIVE)

0 commit comments

Comments
 (0)