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

fix(react): fix creating a react library with cwd #19721

Conversation

xiongemi
Copy link
Collaborator

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@xiongemi xiongemi requested review from a team as code owners October 18, 2023 22:38
@vercel
Copy link

vercel bot commented Oct 18, 2023

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 19, 2023 3:13pm

@xiongemi xiongemi force-pushed the feature/nxp-211-react-lib-generator-places-component-outside-of-project branch from 2af5866 to 4f15e12 Compare October 19, 2023 02:56
@xiongemi xiongemi force-pushed the feature/nxp-211-react-lib-generator-places-component-outside-of-project branch from 4f15e12 to 5cb03a2 Compare October 19, 2023 14:06
@xiongemi xiongemi force-pushed the feature/nxp-211-react-lib-generator-places-component-outside-of-project branch from 5cb03a2 to 4d3ce11 Compare October 19, 2023 15:12
@@ -171,9 +173,15 @@ export async function libraryGeneratorInternal(host: Tree, schema: Schema) {
}

if (options.component) {
const relativeCwd = getRelativeCwd();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just inline the logic of getRelativeCwd here if needed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disregard, the other utils are also exported like getCwd.

@FrozenPandaz FrozenPandaz merged commit 85bda9a into nrwl:master Oct 19, 2023
2 checks passed
@github-actions
Copy link

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 Oct 25, 2023
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.

4 participants