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
feat: migration schematics #1744
base: main
Are you sure you want to change the base?
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 0b8cdda. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
6a9b544
to
04e59a3
Compare
}; | ||
|
||
const isTypescriptSdk = (tree: Tree) => { | ||
return tree.exists('/tsconfig.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not enough for applications with tsconfig files following the tsconfig.bas.json pattern (you can have a look at #1696)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should always have a tsconfig.json
in anycase, if there is no tsconfig.json
in a project based on Typescript it is maybe an issue. But not always at the root (in case of monorepo) indeed.
I fixed the code by checking pattern and allowing additional path. I moved it to be shared between the 2 schematics
04e59a3
to
a43848a
Compare
Proposed change
Provide migration schematics to manually apply migration
Related issues