Make npm executions work with WorkParameter objects
I'm trying to write a task that uses the Worker API to execute several npx tasks in parallel. The parameters encoded in the WorkParameters class need to serializable, but since the NpmExecRunner::executeNpxCommand function takes in the extension object (which cannot be serialized) I'm unable to get anything working.
In short, can a serializable object be added that contains all of the information from the plugin configuration that executeNpxCommand needs to work?
I'm willing to put together a PR, but I want to make sure that this is feasible or there isn't a better solution. I can post my code for the task if needed.
Maybe a better idea is to make the ExecConfiguration type meet this requirement, and tweak the various APIs around that? I'm not sure what to do about the execOverrides field, but ever other field would be easy to convert.
This looks to be similar to https://github.com/node-gradle/gradle-node-plugin/issues/334 which has a draft PR at https://github.com/node-gradle/gradle-node-plugin/pull/337