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(core): nx-plugin-checks accounts for outDir and rootDir of projects when checking file existence #29391

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Dec 17, 2024

For Nx plugins that use the the new TS solution setup, we need to account for generators.json, executors.json, and migrations.json pointing to dist rather than source.

This PR adds two options, rootDir and outDir, that allows the lint rule to check the source files rather than depend on build artifacts. The defaults are what we generate our plugins with.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Dec 18, 2024 3:58am

@jaysoo jaysoo marked this pull request as ready for review December 17, 2024 19:56
@jaysoo jaysoo requested review from a team as code owners December 17, 2024 19:56
@jaysoo jaysoo requested a review from JamesHenry December 17, 2024 19:56
Copy link

nx-cloud bot commented Dec 17, 2024

Your CI Pipeline Execution ↗ for commit 0e6cbfb is in progress ⏳

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 14m 14s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 20s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded <1s View ↗
nx-cloud record -- nx format:check --base=0329c... ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation --no-dte ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2024-12-18 01:55:51 UTC

@jaysoo jaysoo force-pushed the fix/nx_plugin_checks branch 2 times, most recently from e9bf0ca to 1605bc9 Compare December 17, 2024 21:10
@jaysoo jaysoo merged commit 0720f3f into master Dec 18, 2024
6 checks passed
@jaysoo jaysoo deleted the fix/nx_plugin_checks branch December 18, 2024 15:05
ndcunningham pushed a commit that referenced this pull request Dec 20, 2024
…cts when checking file existence (#29391)

For Nx plugins that use the the new TS solution setup, we need to
account for `generators.json`, `executors.json`, and `migrations.json`
pointing to `dist` rather than source.

This PR adds two options, `rootDir` and `outDir`, that allows the lint
rule to check the source files rather than depend on build artifacts.
The defaults are what we generate our plugins with.


<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants