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(misc): move library without given importPath default to contain slashes #11869

Merged

Conversation

jordems
Copy link
Contributor

@jordems jordems commented Sep 4, 2022

Current Behavior

Performing:
nx g mv --projectName lib/child-1 --destination lib/child-2

would result in the ts-config and import paths of files being @<project>/lib-child-2

Expected Behavior

It is expected to be @<project>/lib/child-2.
As that is how the nx g creation works when creating a library.

Related Issue(s)

Fixes #9281

@vercel
Copy link

vercel bot commented Sep 4, 2022

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

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) Sep 4, 2022 at 11:24PM (UTC)

@jordems jordems changed the title fix(misc): move library without given importPath should default to contain slashes fix(misc): move library without given importPath default to contain slashes Sep 4, 2022
…ntain slashes

`nx g mv --projectName lib/child-1 --destionation lib/child-2` would result in the ts-config and import paths of `@<project>/lib-child-2` when it is expected to be `@<project>/lib/child-2`

Closes nrwl#9281
@jordems jordems force-pushed the 9281-fix-mv-generator-default-import-paths branch from 475f63f to 536fcf2 Compare September 4, 2022 23:24
@AlexJWayne
Copy link

I noticed this too, and was thinking about fixing this myself. Thank you, @jordems!

Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! LGTM 🎉

@FrozenPandaz FrozenPandaz merged commit 9dbcb45 into nrwl:master Sep 22, 2022
vsavkin added a commit that referenced this pull request Sep 23, 2022
FrozenPandaz added a commit that referenced this pull request Sep 23, 2022
…ld default to contain slashes (#11869)""

This reverts commit 33c0f94.
FrozenPandaz added a commit that referenced this pull request Sep 23, 2022
…ld default to contain slashes (#11869)""

This reverts commit 33c0f94.
@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 Mar 17, 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.

Incorrect tsconfig.base.json "paths" after using move generator to nest a project into a subfolder
3 participants