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(js): postProcessInlinedDependencies throwing error on movePackage #16127

Conversation

Itrulia
Copy link
Contributor

@Itrulia Itrulia commented Apr 5, 2023

Moved the deletion of the libs folder to a later stage, to avoid errors when multiple libraries depend on the same library.

closes #16125

@vercel
Copy link

vercel bot commented Apr 5, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2023 2:59pm

@@ -88,6 +88,8 @@ export function postProcessInlinedDependencies(
}
}

// TODO: hard-coded "libs"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as the /src above

Copy link
Contributor

Choose a reason for hiding this comment

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

let's use libsDir()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nartc i could not find a function called libsDir, I found getWorkspaceLayout but there's no access to a Tree there. Could you point me to the right function? I'm gonna update the PR asap then.

Thank you!

Copy link
Member

Choose a reason for hiding this comment

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

We should be handling this in a more generic way. FYI, the inline feature will be replaced in a future release but for now we should check if a package is already moved before attempting, rather than moving it here.

@Itrulia Itrulia marked this pull request as ready for review April 5, 2023 15:57
Itrulia added a commit to wepublish/wepublish that referenced this pull request May 3, 2023
Itrulia added a commit to wepublish/wepublish that referenced this pull request May 8, 2023
Itrulia added a commit to wepublish/wepublish that referenced this pull request May 9, 2023
antkiewiczk pushed a commit to wepublish/wepublish that referenced this pull request May 9, 2023
Moved the deletion of the `libs` folder to a later stage, to avoid errors when multiple libraries depend on the same library.

fixes nrwl#16125
@jaysoo jaysoo force-pushed the fix/js-postProcessInlinedDependencies-movePackage-error branch from be48cd8 to 3f7157a Compare May 31, 2023 14:57
@jaysoo jaysoo requested a review from a team as a code owner May 31, 2023 14:57
@jaysoo jaysoo enabled auto-merge (squash) May 31, 2023 15:09
@jaysoo jaysoo merged commit dfa19f5 into nrwl:master May 31, 2023
15 checks passed
@Itrulia
Copy link
Contributor Author

Itrulia commented May 31, 2023

Amazing, thank you!

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

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 Jun 6, 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.

@nrwl/js inline.ts postProcessInlinedDependencies tries to move the same inline library twice
3 participants