dry-dry icon indicating copy to clipboard operation
dry-dry copied to clipboard

Feature request: `dry compile-only`

Open zfalen-deloitte opened this issue 4 years ago • 5 comments

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

zfalen-deloitte avatar Apr 02 '21 18:04 zfalen-deloitte

Would be nice to have it

raDiesle avatar Jul 29 '21 08:07 raDiesle

Just use dry -v --dry-keep-package-json

gstamac avatar Aug 18 '21 07:08 gstamac

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 install etc inside of the container

Not really a huge deal but a nice optimization

zfalen-deloitte avatar Aug 18 '21 17:08 zfalen-deloitte

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.

raDiesle avatar Aug 19 '21 10:08 raDiesle

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.

raDiesle avatar Sep 09 '22 07:09 raDiesle