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): updates the mv schematic to cope with libs created with --importPath #3712

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

catfireparty
Copy link
Contributor

ISSUES CLOSED: #3476

This adds two extra params to the move schematic

--importPath : With this you can specify the import path of the library yourself.

--updateImportPath : This allows you to disable automatic updating of the import path.

e.g.

Create a new lib - nx g @nrwl/workspace:lib my-lib --importPath=@wibble/fish
Then move it - nx g @nrwl/workspace:mv --project my-lib shared/my-lib --updateImportPath=false

This will leave the import path of the library as @wibble/fish but will update where that path points to.

@vsavkin
Copy link
Member

vsavkin commented Sep 14, 2020

Looks good

@vsavkin vsavkin merged commit 001b6ee into nrwl:master Sep 14, 2020
@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 21, 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/workspace:move errors with libs using --importPath
2 participants