-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Overriding tsconfig.json path #23045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It works for me, but it doesn't satisfy my need for a second tsconfig.json file. |
I believe that makes sense. I am going to mark this as a feature request then. It might be good to have a small repository that shows the use case / need if possible. |
Hello guys! At Allegro we faced a similar issue and would like to be able to customize
I created a repository to illustrate the problem. @AtofStryker please take a look. |
@vkhytskyi-allegro the link 404s for me. Is the link still valid? |
Accidentally made the repo private. It should be publicly accessible now. |
@vkhytskyi-allegro I believe I was able to reproduce. With conflicting |
@AtofStryker Yes, but the |
Any proposal for how this API should look? It cannot be in Using a script (bash, or Node.js with the Cypress Module API) and dynamically changing I understanding writing a script with some // scripts/runCypress.js
const cypress = require('cypress')
const fs = require('fs')
if (process.env.CI) {
fs.copyFile('tsconfig.ci.json', 'cypress/tsconfig.json')
} else {
// use default for local development
} Then you could just add something in your {
"scripts": {
"cypress:run": "node scripts/runCypress.js"
}
} Would this solve the problem? We can still consider the feature request, but for those looking for something now, this could be a good solution. |
We're encountering issues with this after migrating to use The move to |
For some reasons my cypress |
Having a similar issue... the my
This extends the one in the app, which extends a shared
Which has Note: I also have a |
Do you have any solution here? I'm facing the same problem |
I'm also wondering if there's a solution yet |
Running into same/similar issue. @iongion im wondering with what you said would that mean if we did some hacky deletion like |
We are going to be adding this to the Cypress 15 release scope. If it doesn't make it in the first major release, it will be delivered as a feature post the |
What would you like?
At the moment the ts-node configuration searches the tsconfig.json at the cypress config file location.
This should be overridable.
Why is this needed?
We are using different tsconfig.json files for local development and running on ci machines.
It would be nice to have the possibility to override the tsconfig.json path during the startup of cypress.
Other
No response
The text was updated successfully, but these errors were encountered: