When I rename a standaloneConfig package using @nrwl/workspace:move, it deletes the project.json file and moves the configuration back to workspace.json, resetting the standaloneConfig:
npm run nx -- g @nrwl/workspace:move --projectName nx-debug --destination nx-debug-app
Expected Behavior
When I run the above command, I would expect the project.json file to be updated, not to be deleted, and I would expect the package to remain a standalone project.
While I have larger workspaces that are not exhibiting this behavior (move works for them), they use the same version of nx (12.6.2); however, they were created with earlier versions of nx and migrated to latest, so it is unclear whether or not this is a regression.
You can use the commit history to view the state of the repo after each step. In short, to reproduce:
npx create-nx-workspace (nest)
npm run nx -- g @nrwl/workspace:convert-to-nx-project --all
npm run nx -- g @nrwl/workspace:move --projectName nx-debug --destination nx-debug-app
Environment
> nx-debug@0.0.0 nx /home/joshua/WebDev/sandbox/nx-move-standalone-build-taret/nx-debug
> nx "report"
> NX Report complete - copy this into the issue template
Node : 12.22.1
OS : linux x64
npm : 6.14.12
nx : Not Found
@nrwl/angular : Not Found
@nrwl/cli : 12.6.2
@nrwl/cypress : Not Found
@nrwl/devkit : 12.6.2
@nrwl/eslint-plugin-nx : 12.6.2
@nrwl/express : Not Found
@nrwl/jest : 12.6.2
@nrwl/linter : 12.6.2
@nrwl/nest : 12.6.2
@nrwl/next : Not Found
@nrwl/node : 12.6.2
@nrwl/nx-cloud : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.6.2
@nrwl/web : Not Found
@nrwl/workspace : 12.6.2
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.3.5
Current Behavior
When I rename a standaloneConfig package using
@nrwl/workspace:move
, it deletes theproject.json
file and moves the configuration back toworkspace.json
, resetting the standaloneConfig:Expected Behavior
When I run the above command, I would expect the project.json file to be updated, not to be deleted, and I would expect the package to remain a standalone project.
While I have larger workspaces that are not exhibiting this behavior (
move
works for them), they use the same version of nx (12.6.2
); however, they were created with earlier versions of nx and migrated to latest, so it is unclear whether or not this is a regression.Steps to Reproduce
This repo is the result of creating a new workspace, converting to standalongConfig, and running the above command: https://github.com/JoshuaCWebDeveloper/deubg-nx-move-standalone-001
You can use the commit history to view the state of the repo after each step. In short, to reproduce:
Environment