Some paths are not updated correctly for @nrwl/angular:move schematic
See original GitHub issueWhen using the @nrwl/angular:move schematic it does not update the path
- in the libraries .eslintrc.json file for the
parserOption
- in the ng-package.json for the
dest
ination and - for the
name
property in the package.json file. - In the jest.config.js file in the root directory
Current Behavior
The path of these two properties does not get updated correctly.
Expected Behavior
The path of these two properties should be updated correctly and point to the new library path.
Steps to Reproduce
git clone https://github.com/nrwl/nx-examples.git
cd nx-examples
npm i
Open NX Console and choose @nrwl/angular:move with the following output
> Executing task: nx generate @nrwl/angular:move --destination=categories/manage-categories --projectName=products-home-page --no-interactive <
DELETE libs/products/home-page/src/lib/home-page/home-page.component.html
DELETE libs/products/home-page/src/lib/home-page/home-page.component.scss
DELETE libs/products/home-page/src/lib/home-page/home-page.component.spec.ts
DELETE libs/products/home-page/src/lib/home-page/home-page.component.ts
DELETE libs/products/home-page/src/lib/products-home-page.module.spec.ts
DELETE libs/products/home-page/src/lib/products-home-page.module.ts
DELETE libs/products/home-page/src/index.ts
DELETE libs/products/home-page/src/test-setup.ts
DELETE libs/products/home-page/.eslintrc.json
DELETE libs/products/home-page/README.md
DELETE libs/products/home-page/jest.config.js
DELETE libs/products/home-page/tsconfig.json
DELETE libs/products/home-page/tsconfig.lib.json
DELETE libs/products/home-page/tsconfig.spec.json
CREATE libs/categories/manage-categories/src/lib/home-page/home-page.component.html
CREATE libs/categories/manage-categories/src/lib/home-page/home-page.component.scss
CREATE libs/categories/manage-categories/src/lib/home-page/home-page.component.spec.ts
CREATE libs/categories/manage-categories/src/lib/home-page/home-page.component.ts
CREATE libs/categories/manage-categories/src/index.ts
CREATE libs/categories/manage-categories/src/test-setup.ts
CREATE libs/categories/manage-categories/.eslintrc.json
CREATE libs/categories/manage-categories/README.md
CREATE libs/categories/manage-categories/jest.config.js
CREATE libs/categories/manage-categories/tsconfig.json
CREATE libs/categories/manage-categories/tsconfig.lib.json
CREATE libs/categories/manage-categories/tsconfig.spec.json
CREATE libs/categories/manage-categories/src/lib/categories-manage-categories.module.ts
CREATE libs/categories/manage-categories/src/lib/categories-manage-categories.module.spec.ts
UPDATE apps/products/src/app/app.module.ts
UPDATE tsconfig.base.json
UPDATE jest.config.js
UPDATE nx.json
UPDATE workspace.json
The file libs/categories/manage-categories/.eslintrc.json still has
"parserOptions": {
"project": ["libs/products/home-page/tsconfig.*?.json"]
},
The lib is not buildable, therefore there are no package.json and ng-package.json files.
I would be happy to help with the fix if this gets accepted.
Environment
Node : 15.14.0
OS : darwin x64
npm : 6.14.13
nx : Not Found
@nrwl/angular : 12.0.8
@nrwl/cli : 12.0.8
@nrwl/cypress : 12.0.8
@nrwl/devkit : 12.0.8
@nrwl/eslint-plugin-nx : 12.0.8
@nrwl/express : Not Found
@nrwl/jest : 12.0.8
@nrwl/linter : 12.0.8
@nrwl/nest : 12.0.8
@nrwl/next : Not Found
@nrwl/node : 12.0.8
@nrwl/react : 12.0.8
@nrwl/schematics : Not Found
@nrwl/tao : 12.0.8
@nrwl/web : 12.0.8
@nrwl/workspace : 12.0.8
@nrwl/storybook : 12.0.8
@nrwl/gatsby : Not Found
typescript : 4.1.5
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Angular Schematics relative path - Stack Overflow
I would like the newly created/updated files to be inside the /src/app/modules/foo directory instead of the root directory. Think of how ng ...
Read more >Distributed Caching, improved dependency detection, better ...
By running the schematic with a project name and destination, all the necessary folders, and configuration is moved to its new location within ......
Read more >Files changed (153) - Renovate Bot Package Diff
"description": "Migrates some rules that have changed in Angular EsLint", ... the path to the custom webpack file is correct: \n${pathToWebpackConfig}`);.
Read more >Pulse · nrwl/nx · GitHub
workspace-schematic `externalSchematic` fails with `FileDoesNotExistException [Error]: Path "../.browserslistrc" does not exist.` #13089 closed Dec 15, 2022.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
These issues have been solved since then. Could you please retry with the latest versions?
This issue has been automatically marked as stale because it hasn’t had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏