NPM Version Not Committing Workspace package.json

683 Views Asked by At

When trying to set the version of all work-spaces I have found that only the root workspace change is committed. Steps to reproduce using Angular CLI:

  1. ng new test-workspace --create-application false
  2. cd test-workspace
  3. ng generate application test-app
  4. git add --all
  5. git commit -m "Application"
  6. ng generate library test-lib
  7. git add --all
  8. git commit -m "Library"
  9. Change root-level package.json to include:
    "workspaces": [
      "projects/test-lib"
    ]
    
  10. git add --all
  11. git commit -m "Workspaces"
  12. npm version --workspaces --include-workspace-root true --workspaces-update false 0.0.2

After the final step test-lib/package.json has been changed to the new version but has not been commited.

0

There are 0 best solutions below