node-gradle / node-gradle/gradle-node-plugin

Allow removing/configuring the `inputs` of `pnpmInstall` tasks

Open
#287 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Groovy
Stars
677
Forks
120
PR merge metrics
No merged PRs in 30d

Description

pnpm is pretty fast. Running pnpm install generally takes a second or two when all is up-to-date even when there are many things in package.json.

On the other hand, Gradle's caches of the pnpmInstall task can take quite a while to compute if the task needs rerunning. I would like to remove that and set these tasks to always execute - i.e. depend on pnpm itself to be clever and not do anything rather than Gradle (which walks the whole node_modules to check for changes).

I definitely think this will improve the performance of my build. What do you think?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how pnpmInstall tasks are configured and how Gradle computes their inputs, with particular attention to package.json and node_modules. Compare the requested always-execute behavior with the current cache checks, then verify that inputs can be removed or configured without breaking pnpm installation tasks.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, nodejs
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.