How to disable the binary download and use Cypress for just the Typescript types? #17966
Unanswered
codefactor
asked this question in
CI setup
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create a library with a lot of Typescript utilities that make uses of the
cy
andCypress
globals. Many different teams will then use this library a dependency to their projects, and they can each have this shared library of Cucumber Given/Then/When statements without copying code to each module. If they wanted to, their project would mostly be just*.feature
files.The library will never directly run tests, I am basically only using the
cypress
dependency here for the typescript support. On top of that, the build machine which is trying the install is giving the following error:This is a blocker for me - how can I skip the download for this project entirely, since it is not running tests but merely using the types? This would unblock the build machine, and also make the build faster.
I tried the following environment variable:
I'm not sure if it is working. The error above was copied after I tried to set this. But there is a chance that I didn't set the environment variable correctly (since this is a remote build machine after all).
Is there a way to use just the typescript files and avoid any sort of large binary files that I won't actually be using as part of this library?
Beta Was this translation helpful? Give feedback.
All reactions