You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the context of a generator, when projects are configured using package.json instead of project.json file, the devkit util function updateProjectConfiguration fails with the following error:
Cannot update project [name] at [path]. It doesn't exist or use package.json configuration.
Expected Behavior
I'm expecting this function to handle package.json based projects. Otherwise, what is the recommended way to handle this?
Thanks in advance.
GitHub Repo
No response
Steps to Reproduce
setup a fresh monorepo with package.json projects based (no project.json)
try to use updateProjectConfiguration to update those projects
Nx Report
Node : 16.18.1
OS : linux x64
yarn : 3.4.1
nx : 15.6.3
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : Not Found
@nrwl/devkit : 15.6.3
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.6.3
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.6.3
@nrwl/js : 15.6.3
@nrwl/linter : 15.6.3
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : 15.6.3
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/webpack : Not Found
@nrwl/workspace : 15.6.3
@nrwl/vite : Not Found
typescript : 4.9.5
---------------------------------------
Local workspace plugins:
@jscutlery/semver
---------------------------------------
Community plugins:
ngx-deploy-npm: 5.2.0
Package json based projects aren't handled by update project configuration, it is meant for project.json based projects only. If you want to support them, currently you'd need to do so with updateJson or similar.
Current Behavior
In the context of a generator, when projects are configured using package.json instead of project.json file, the devkit util function
updateProjectConfiguration
fails with the following error:Expected Behavior
I'm expecting this function to handle package.json based projects. Otherwise, what is the recommended way to handle this?
Thanks in advance.
GitHub Repo
No response
Steps to Reproduce
updateProjectConfiguration
to update those projectsNx Report
Failure Logs
No response
Additional Information
Related issue jscutlery/semver#634.
The text was updated successfully, but these errors were encountered: