Skip to content

Conversation

mhartington
Copy link
Contributor

Current Behavior

The directory option for the ngrx feature store generator is currently marked as optional. With that, if you try to run the generator and do not pass a directory, it will throw an error.

Expected Behavior

directory needs to be a required option. The Nx Console already handles this by pre-populating the option, this just adjusts things appropriately for those not using the console, or calling the generator programatically.

Related Issue(s)

Fixes #

@mhartington mhartington requested a review from a team as a code owner March 12, 2025 20:54
@mhartington mhartington requested a review from Coly010 March 12, 2025 20:54
Copy link

vercel bot commented Mar 12, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2025 0:00am
Copy link
Contributor

nx-cloud bot commented Mar 12, 2025

View your CI Pipeline Execution ↗ for commit 56a13f8.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 16m 36s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 17s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base=598f4... ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-03-13 12:18:56 UTC

@Coly010 Coly010 force-pushed the fix/angular-generators branch from 2d1c0b6 to 56a13f8 Compare March 13, 2025 11:57
@Coly010 Coly010 merged commit 6770636 into master Mar 13, 2025
12 checks passed
@Coly010 Coly010 deleted the fix/angular-generators branch March 13, 2025 12:20
FrozenPandaz pushed a commit that referenced this pull request Mar 14, 2025
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- 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 -->
The `directory` option for the ngrx feature store generator is currently
marked as optional. With that, if you try to run the generator and do
not pass a directory, it will throw an error.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
`directory` needs to be a required option. The Nx Console already
handles this by pre-populating the option, this just adjusts things
appropriately for those not using the console, or calling the generator
programatically.

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

Fixes #

(cherry picked from commit 6770636)
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants