* fix(testing): jest.preset.ts => jest.preset.js
* fix(testing): update to export default
* fix(testing): migration for moving to export default
* fix(testing): add eslint ignore comments for jest config properties
fixes: #10021
* fix(testing): update tsconfig.spec.json for next apps with project parserOptions
fixes: #9982
* fix(testing): prevent renaming root jest preset
fixes: #9973
* fix(testing): update snapshots for export default
* fix(testing): bump migration version to run
* fix(testing): make sure default jest tests pass for various projects
* fix(js): generate correct jest config for --compiler=swc --js
* feat(core): add nx.json, workspace.json, and project.json JSON schemas
ISSUES CLOSED: #8574, #2299
* fix(core): add ajv to test generated config files based on JSON schema
* fix(core): only add $schema to project.json if it is standalone and in create mode
* feat(core): add migration to add json schema to config files for 14.2.0
* fix(core): adjust schemas
* chore(core): adjust tests across repo to adhere to JSON schema if generated
* fix(core): construct the json schema object instead of using a boolean flag
* chore(core): add ajv tests for workspacejson and nxjson
* chore(core): remove unnecessary standalone check
* feat(testing): move jest config to .ts
move jest config and preset to ts files
ISSUES CLOSED: #8344
* fix(testing): update tests for jest.config.ts changes
update tests broken by renaming jest fils to ts files
* cleanup(misc): replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
* fix(js): fix slice change
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
Node hasher paths need to be normalized, since on windows they return with '\' instead of '/' and don't match keys in workspace configuration.
Fixes#9584Fixes#9581
* cleanup(angular): move the angular cli migration generator from @nrwl/workspace to @nrwl/angular
* cleanup(angular): support merged packages (cli, tao, nx)
* cleanup(angular): update make-angular-cli-faster to support packages consolidation
The Node documentation for `exec` states:
> Never pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.
The `folder` variable comes directly from the `NX_CACHE_DIRECTORY` environment variable (or from `nx.json`). Careful crafting of this variable can result in NX executing arbitrary commands.
This patch fixes this by using `execFile`, which does not spawn a shell.