Skip to content

fix(angular): directory type is not optional#30354

Merged
Coly010 merged 1 commit into
masterfrom
fix/angular-generators
Mar 13, 2025
Merged

fix(angular): directory type is not optional#30354
Coly010 merged 1 commit into
masterfrom
fix/angular-generators

Conversation

@mhartington

Copy link
Copy Markdown
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
@vercel

vercel Bot commented Mar 12, 2025

Copy link
Copy Markdown

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

@nx-cloud

nx-cloud Bot commented Mar 12, 2025

Copy link
Copy Markdown
Contributor

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
@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)
@github-actions

Copy link
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants