Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: migration schematics #1744

wants to merge 2 commits into from

Conversation

kpanot
Copy link
Contributor

@kpanot kpanot commented May 2, 2024

Proposed change

Provide migration schematics to manually apply migration

Related issues

@kpanot kpanot requested a review from a team as a code owner May 2, 2024 11:54
Copy link

nx-cloud bot commented May 2, 2024

☁️ Nx Cloud Report

CI 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 targets

Sent with 💌 from NxCloud.

@kpanot kpanot force-pushed the feature/migrate-schematics branch from 6a9b544 to 04e59a3 Compare May 7, 2024 02:24
};

const isTypescriptSdk = (tree: Tree) => {
return tree.exists('/tsconfig.json');
Copy link
Contributor

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)

Copy link
Contributor Author

@kpanot kpanot May 16, 2024

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

@kpanot kpanot force-pushed the feature/migrate-schematics branch from 04e59a3 to a43848a Compare May 16, 2024 03:00
cpaulve-1A
cpaulve-1A previously approved these changes May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Provide a schematics to run migration scripts on non angular setup
4 participants