Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@angular-devkit/schematics): ensure collections can be resolved v…
…ia test runner in pnpm workspaces Currently when operating within a pnpm workspace and leveraging the schematic test runner, there are situations where e.g. `@schematics/angular` cannot be resolved. Consider this pnpm node modules structure: ``` packages/ pwa/ node_modules/@schematics/angular --> .pnpm-store/@schematics/angular/... node_modules/@angular-devkit/schematics --> .pnpm-store/@angular-devkit/schematics/... index_spec.js // trying to call external schematic `@schematics/angular` ``` This above setup will fail because `@schematics/angular` is attempted to be resolved from within the devkit schematics code, which doesn't have access, or a dependency on `@schematics/angular`. We can use the specified collection of the test runner to determine a good "resolution lookup site", similiar to how it happens with the real `ng update` command.
- Loading branch information