dry-dry
dry-dry copied to clipboard
Feature request: `dry compile-only`
Would love a CLI option that just compiles package-dry.json into package.json without moving on to install steps.
Use case:
CI/CD pipelines, especially when the actual installs etc will happen inside of docker containers. Copying the compiled package.json over alone is best / easiest / lightest-weight
Would be nice to have it
Just use dry -v --dry-keep-package-json
Well, yes, that works but includes a number of other steps (eg install) rather than just outputting a compiled package.json - which would be a nice way to speed things up when your CI pipeline is something like...
- run some shell tasks
- compile the new
package.json - copy it (and other stuff) into a Docker container
- run
npm installetc inside of the container
Not really a huge deal but a nice optimization
we created a workaround script, which compares contents of package.json key-values to know weather to run the time expensive script or not.
Related to that, it would be also nice, if the script would only run "npm install" if the package.json generation changed.
we would like to switch to yarn with pnp, but because dry is still calling npm install every time and not just generate package.json, it became a hard issue for us.