6116 Commits

Author SHA1 Message Date
Miroslav Jonaš
f50f0bc845
chore(core): split hasher filter types for node and workspace project (#9293)
* chore(core): split hasher filter types for node and workspace project

* fix(core): change leftover hash filter to node hash filter
2022-03-18 16:26:37 -04:00
Matthias Stemmler
dff05dcbde
fix(web): fix handling of buildLibsFromSource: false in dev-server executor (#9326)
* modify buildOptions.tsConfig before creating Webpack config
* do not join buildOptions.tsConfig to root path as it is already an absolute path
2022-03-18 16:21:56 -04:00
Sorin Davidoi
75f9ece440
fix(core): don't allow arbitrary code execution when manipulating cache (#9329)
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.
2022-03-18 16:19:12 -04:00
Sorin Davidoi
f5dfb837a2
fix(web): don't allow arbitrary code execution in file-server (#9330)
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 `outputPath`, `options.buildTarget` and `options.maxParallel` come from `nx.json`. Careful crafting of these fields can result in NX executing arbitrary commands.

This patch fixes this by using `execFile`, which does not spawn a shell.
2022-03-18 16:16:31 -04:00
K. Golbang
cd8c9b0313
feat(testing): support for memory leaks detection for jest added [logHeapUsage, detectLeaks] (#9339) 2022-03-18 16:10:28 -04:00
Craigory Coppola
05f72c96ea
fix(core): targets referred to by targetDependencies should be optional by default (#9344) 2022-03-18 15:30:48 -04:00
Jason Jean
949498f5ac
fix(core): remove @nrwl/cli bin setting (#9394) 2022-03-18 12:06:59 -04:00
Colum Ferry
a8ede441eb
feat(angular): support angular v13.3.0 (#9311) 2022-03-18 14:59:04 +00:00
Craigory Coppola
75ad30ca18
feat(core): ability to run local nx plugins w/o build step (#9116)
* feat(core): ability to run local nx plugins generators and executors

* feat(core): support for project inference and graph extension local plugins

* chore(core): cleanup after package relocation

* chore(core): changes for review
2022-03-18 14:10:06 +00:00
Katerina Skroumpelou
483115ba06
fix(storybook): when building set node_env (#9390)
ISSUES CLOSED: #8403
2022-03-18 14:00:40 +00:00
Colum Ferry
08c6b02e50
fix(angular): set tsconfig path correctly (#9386) 2022-03-18 11:43:24 +00:00
Craigory Coppola
19e9b462ec
chore(repo): move add-nx into main nx repo (#9382)
* chore(repo): move add-nx into main nx repo

* fix(misc): fix publishing of add nx projects

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-03-17 18:38:06 -04:00
Emily Xiong
3627c3a38c
feat(react-native): upgrade metro-resolver to 0.69.1 (#9381) 2022-03-17 13:46:01 -04:00
Emily Xiong
83acbafa7c
bugfix(storybook): should add @storybook/react-native to devDependencies (#9364) 2022-03-17 00:38:17 +00:00
Jason Jean
731e57098e chore(core): fix snapshots 2022-03-16 17:26:16 -04:00
Jason Jean
74980db347
fix(core): undo removal of @nrwl/cli and add warning when it is imported (#9370) 2022-03-16 17:24:36 -04:00
Benjamin Cabanes
5245202628
docs(nxdev): update workspace example with nx cmd (#9360) 2022-03-16 15:22:10 -04:00
Emily Xiong
615bd73c59
bugfix(react-native): add ENTRY_FILE relative to PROJECT_DIR in iOS shell script (#9222) 2022-03-16 13:03:37 -04:00
Giora Guttsait
f44165d993
feat(js): infer tslib as a dependency when using importHelpers (#9350) 2022-03-16 12:47:39 -04:00
Leosvel Pérez Espinosa
39554b9035
fix(core): fix migrate command to properly handle the packages consolidation (#9352) 2022-03-16 11:19:24 -04:00
Colum Ferry
a26caaa288
feat(angular): add component generator (#9351) 2022-03-16 12:48:27 +00:00
Miroslav Jonaš
996e2decc7
fix(linter): ensure eslint fixes are stored before results are filtered (#9348) 2022-03-16 09:59:08 +00:00
Colum Ferry
2d0871932c
feat(angular): add withModuleFederation helper (#9289)
* feat(angular): withModuleFederation helper
2022-03-16 09:47:03 +00:00
Miroslav Jonaš
3c17e80bde
fix(linter): check for both nrwl/nx and eslint for terminal runs (#9340) 2022-03-16 08:42:29 +00:00
Austin
48d32acca3
feat(web): add proxy config support to file-server executor (#9225) 2022-03-15 16:11:17 -04:00
Jason Jean
5d5be04865 chore(core): format tao re-exports 2022-03-15 15:54:49 -04:00
Victor Savkin
0f7cf3464e
fix(misc): reexport tokens that from nx 2022-03-15 15:20:49 -04:00
Victor Savkin
419131838f
fix(misc): handle tsx files correctly when excluding specs 2022-03-15 13:52:56 -04:00
Leosvel Pérez Espinosa
7ae6d48f94
cleanup(angular): ban imports from @nrwl/workspace entry point (#9341) 2022-03-15 17:02:57 +00:00
Victor Savkin
86aaeb635a
fix(core): reexport package-manager 2022-03-15 12:22:17 -04:00
Leosvel Pérez Espinosa
a82edb1bc4
feat(angular): add buildLibsFromSource option to @nrwl/angular:webpack-browser executor (#9334) 2022-03-15 15:33:56 +00:00
Victor Savkin
9c25cd9f59
chore(repo): reenable tests 2022-03-15 09:52:43 -04:00
Colum Ferry
c4f96467c3
feat(angular): default export of scams to true (#9331) 2022-03-15 13:39:57 +00:00
Colum Ferry
3c39c311f8
fix(angular): strip trailing slash from directory #9263 (#9314) 2022-03-15 09:38:32 +00:00
Victor Savkin
53a0528d7a
fix(repo): temporary disable tests 2022-03-14 21:31:55 -04:00
Victor Savkin
7b4ee52833
fix(core): fix a typo in a migration 2022-03-14 21:13:54 -04:00
Victor Savkin
94f575a326
fix(core): correctly reexport from nx to preserve backwards compat 2022-03-14 20:54:01 -04:00
Victor Savkin
48a5d19b68
feat(core): add a migration to replace nrwl/cli and nrwl/tao with nx 2022-03-14 20:45:51 -04:00
Enoyao
03e9015d69
chore(core): combine identical conditional expressions (#9136) 2022-03-14 17:09:59 -04:00
Craigory Coppola
db938799a3
fix(misc): report should include nx-plugin (#9312) 2022-03-14 17:09:27 -04:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Jason Jean
5c0da2f635
fix(js): fix inconsistent tsconfig module casing (#9320) 2022-03-14 20:32:29 +00:00
Katerina Skroumpelou
dbbd7eff83
fix(storybook): fixing the static-dir issue (#9313) 2022-03-14 17:53:15 +02:00
Chau Tran
71bd3e13ad
fix(js): default swcCwd to '.' to prevent ENOENT error when invoking swc cli (#9256)
Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-13 22:07:09 -05:00
Jack Hsu
cd81a2061e
fix(react): update package.json only with shallow dependencies (#9297) 2022-03-11 14:43:34 -05:00
Craigory Coppola
208d5c0f6d
feat(nx-plugin): port compiler option into nx-plugin generator (#9299) 2022-03-11 14:36:56 -05:00
Jack Hsu
ec533c521d
feat(react): update packages (#9296) 2022-03-11 12:18:40 -05:00
Victor Savkin
4e9375f5f4 chore(repo): update the version of nx 2022-03-11 10:40:40 -05:00
Richard Roozenboom
5949c4ea45
fix(angular): jest-preset-angular migration format files once (#9292)
Move the formatFiles call outside of the for loop

ISSUES CLOSED: #9291

Co-authored-by: Richard Roozenboom <richard.roozenboom@rabobank.nl>
2022-03-11 13:56:00 +00:00
Miroslav Jonaš
ca38be735d
chore(core): add type for hasher filter to avoid typos (#9287) 2022-03-11 14:54:21 +01:00