With strict package managers such as pnpm or Yarn PnP, transitive
dependencies are *not* hoisted to the root node_modules folder. This
means that a webpack config defined within a package like
'@nrwl/cypress' cannot resolve loaders like 'ts-loader', unless
'ts-loader' is declared in the workspace's own package.json.
This is a problem because the workspace might define a different version
of 'ts-loader', incompatible with the version declared by
'@nrwl/cypress/package.json'. The workspace should not need to declare
a dependency on 'ts-loader' anyway.
See also:
* https://github.com/pnpm/pnpm/issues/801
* https://github.com/webpack/webpack/issues/5087
* fix(testing): require jest config to resolve it better during migration
* fix(testing): require with appRootPath
* chore(testing): remove uneeded exports and imports
* feat(testing): add util to update jest configs.
* feat(testing): place configurations in jest config file rather than just the builder
* feat(testing): create migration and unit tests
* feat(testing): fix jest template
* feat(testing): fix jest template to correct unit tests
* feat(testing): include globals.ts-jest for all non babel configs
* feat(testing): include globals.ts-jest for node e2e
* feat(testing): fix migration to run properly. Also check for angular tests using the setupfile rather than builder
* feat(testing): clean up jest config functions and fix errors with some migrations
* feat(testing): add new line to package.json
* feat(testing): update object check to actually check for undefined
* chore(testing): loop through all project targets as well as targets
* chore(testing): update migration to be 10.0.0-beta.2
NX workspace schematics could not be executed, because the NodeWorkflow was created without the "resolvePaths" options. Therefore the NodeModulesEngineHost was created without paths to look for the collection.
Closes#3233
With the introduction of Nrwl building Nx with Nx, a lot of linting errors were created. This change fixes all of the schematic and builder linting errors in the nx-plugin package, and also updates the file structure to match more recent changes to the code base.
Fixes runNxNewCommand so plugin e2e tests will work by passing --preset=empty to new proj.
ISSUES CLOSED: #3253
Co-authored-by: root <root@Kyle.localdomain>