1524 Commits

Author SHA1 Message Date
Chau Tran
1afad766e6
fix(core): return a list of dependents that do not have sourceRoot to calculate glob patterns (#10899)
When a library (often an implicit dependency one) does not have `sourceRoot`,
`getSourceDirOfDependentProjects` returns an array with the problematic library path as `[undefined,
libs/some-other-lib]` which causes `createGlobPatternsForDependencies` to throw an error and
ultimately returns an empty `[]` instead of `[libs/some-other-lib]`.
This PR ensures
`getSourceDirOfDependentProjects` filters out `undefined` (`sourceRoot`) as well as logs a warning
to let the users know that they have libraries that are missing `sourceRoot` and Nx cannot calculate
their glob patterns

ISSUES CLOSED: #10871
2022-06-27 13:53:40 -05:00
Miroslav Jonaš
077e75c0fc
chore(repo): update nx orb version to 1.5.1 (#10907) 2022-06-27 11:33:16 +00:00
Miroslav Jonaš
803333aea5
feat(core): update github action workflow to latest version (#10863) 2022-06-23 11:47:16 +00:00
Miroslav Jonaš
62bae5a120
feat(core): make npmScope optional (#10018) 2022-06-23 10:57:54 +02:00
Sicarius
a7888552b8
fix(linter): update @typescript-eslint/* deps
Co-authored-by: Miroslav Jonas <missing.manual@gmail.com>
2022-06-21 10:33:42 +00:00
Lars Gyrup Brink Nielsen
28b65f63a4
docs(core): correct typo in ci-workflow generator description (#10695)
Generete -> Generate
2022-06-16 15:36:48 -04:00
Jack Morrison
a0f5b7cc38
fix(core): update move generator to move multiple projects in eslint parserOptions override (#10775)
move generator now copies over all projects in the parserOptions of the .eslintrc.json rather than
just overriding with the base tsconfigs

ISSUES CLOSED: #10774
2022-06-16 11:39:52 -04:00
Dylan Andersen
8cae2c9eca
docs(core): fix links to nx tutorials (#10763)
Co-authored-by: Dylan Andersen <dylan@joinhandshake.com@Dylans-MBP.attlocal.net>
2022-06-16 10:54:22 -04:00
Victor Savkin
f86a5ffe2e feat(core): generalize setting target defaults 2022-06-15 12:51:26 -04:00
Lars Gyrup Brink Nielsen
df02953630
docs(core): correct grammar in preset generator description (#10712) 2022-06-12 21:54:22 -04:00
Victor Savkin
5c49345c34 feat(core): provide a way to handle get unparsed args in the executor 2022-06-10 14:04:08 -04:00
Craigory Coppola
6132ad7472
fix(js): preset should use packages folder (#10691) 2022-06-10 13:25:16 -04:00
Craigory Coppola
15c04b099e
chore(repo): enable eslint plugin checks (#10666) 2022-06-09 18:04:06 -04:00
Phillip Barta
b9e623d84d
cleanup(repo): refactored fileutils (#10503) 2022-06-08 10:38:34 -04:00
Craigory Coppola
838170e200
fix(linter): relative paths should be correct on windows (#10604) 2022-06-06 20:09:25 -04:00
Craigory Coppola
4d7e5ba29a
chore(misc): remove defaultCollection from generators (#10601) 2022-06-06 20:03:46 +00:00
Victor Savkin
932404303a cleanup(core): use npm.json instead core.json as the preset name for npm workspaces 2022-06-06 15:10:29 -04:00
Craigory Coppola
7f7bc1a095
fix(core): require.resolve(m/package.json) is not guarunteed to work for modern module format (#10497)
* fix(core): require.resolve(m/package.json) is not guarunteed to work for modern module format

* chore(repo): update usage of new readModulePackageJson function
2022-06-03 20:54:15 +00:00
Phillip Barta
d53000ae67
feat(core): migrate to prettier ^2.6.2 (#10499) 2022-06-03 11:18:28 -04:00
Leosvel Pérez Espinosa
eea2470619
feat(angular): support angular v14.0.0 (#10559) 2022-06-03 10:23:09 -04:00
Leosvel Pérez Espinosa
914f0ce707
feat(misc): update typescript to 4.7 (#10560) 2022-06-02 13:29:11 -04:00
Leosvel Pérez Espinosa
26edb49302
feat(angular): support angular v14.0.0-rc.3 (#10543) 2022-06-01 16:26:09 +00:00
Victor Savkin
e491c6f738 feat(core): make nx.json optional 2022-05-31 15:35:28 -04:00
Victor Savkin
3d97203b1e
chore(repo): migrate to nx@14.2.0-beta.1 2022-05-30 20:10:02 -04:00
Miroslav Jonaš
daa5cfe558
fix(core): ensure pnpm v7 install when peer deps are missing (#10522) 2022-05-30 21:27:28 +00:00
Leosvel Pérez Espinosa
62afcb79b0
feat(angular): support angular v14.0.0-rc.2 (#8883) 2022-05-30 16:09:00 -04:00
Denis Frenademetz
7ee93f03fe
fix(core): ensure createPackageJson sorts dependencies consistently (#10476) 2022-05-27 17:47:55 -04:00
Craigory Coppola
c9897c61e6
fix(core): swc should be an optional peer dependency (#10461) 2022-05-26 12:09:27 -04:00
Alan Pazetto
5378a027f4
chore(misc): updated minimatch version (#10472)
Co-authored-by: Alan Pazetto <alan.pazetto@ifood.com.br>
2022-05-25 21:17:53 +00:00
Jason Jean
2814a86b4c
fix(repo): update package group during publishing (#10411) 2022-05-24 23:28:10 +00:00
Chau Tran
124fd7d206
fix(core): ensure updateStorybook in nrwl/workspace:move handle direc… (#10399)
* fix(core): ensure updateStorybook in nrwl/workspace:move handle directories and files

* chore(core): remove console log
2022-05-20 12:58:29 +03:00
Miroslav Jonaš
c17a086390
fix(core): include types/node in deps when adding workspace-generator (#10388) 2022-05-20 09:52:52 +02:00
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +00:00
“JamesHenry”
399f2ab70a fix(core): bump nrwl/ci workflow versions 2022-05-19 08:48:52 -04:00
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
AgentEnder
a2d9d5664e fix(angular): when generating --preset angular and --cli nx use angular readme at root 2022-05-12 11:18:05 -04:00
Caleb Ukle
ecf88a6995
fix(testing): update v14 migration and migrate jest.config.ts to use export default (#10035)
* 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
2022-05-11 18:04:29 +00:00
Nicoss54
5c995a797f
docs(nxdev): update run-script documentation (#10195) 2022-05-11 11:08:12 -04:00
Chau Tran
512237caf7
feat(core): add nx.json, workspace.json, and project.json JSON schemas (#10228)
* 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
2022-05-10 15:05:26 -05:00
Ilya Zyablitsev
fdd7479465
fix(core): migrate should not fail if dependencies section doesn't exist (#10202) 2022-05-09 17:16:22 -04:00
Phillip Barta
0cc7042beb
chore(repo): updated dependency fs-extra to ^10.1.0 (#9985) 2022-05-06 17:56:19 -04:00
Jason Jean
8b810879d2
fix(core): add tao to package group (#10148) 2022-05-04 22:43:40 +00:00
Jason Jean
ac8ebed1c8
fix(core): add dependency from workspace to devkit (#10147) 2022-05-04 21:27:31 +00:00
Jason Jean
e4cccfc14d
chore(repo): update nx to 14.1.1 (#10132) 2022-05-04 15:27:43 +00:00
Victor Savkin
e6738abc9f feat(misc): move run-commands executor to nx 2022-05-03 14:35:18 -04:00
Katerina Skroumpelou
bef82408b4
fix(core): refine move and remove generators for projects with a target name (#10063)
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2022-04-29 16:15:08 +00:00
Jason Jean
5e23c07077
fix(core): automatically add root to the project.json projects (#9977)
* fix(core): automatically add root to the project.json projects

* chore(core): move project-configuration generator utils to nx package

* fix(core): add migrations to remove root
2022-04-28 13:24:35 -04:00
James Henry
13807d3a81
chore(core): remove deprecated with-deps, NxJsonProjectConfiguration + operators (#9947) 2022-04-26 10:55:24 -04:00
Jason Jean
4f99b77e42
chore(repo): update nx to 14.0.2 (#9974) 2022-04-23 18:06:01 +00:00
Caleb Ukle
88971468db
fix(testing): pass --js flag to jest generators (#9965) 2022-04-22 22:43:59 -04:00