* Don't disable chalk when FORCE_COLOR is set
My lint output in Jenkins wasn't colored, which is pretty normal because
a lot of apps when running in Jenkins don't think they have a
color-capable terminal to write to, but I expected that setting the
`FORCE_COLOR` environment variable would work to override this, but I
was surprised to find that it didn't help. Looking at the Nx code, I see
that chalk is turned off whenever `CI` is true, which seems like it
should be refined a bit.
* chore(core): fix code
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
Only use parent directory for outputs if output is a file. Closes#8504.
This bug has been caused by 16e9f58f76.
Co-authored-by: skrtheboss <denisfrenademetz97@gmail.com>
* fix(core): use fs/promises instead of promisifying with the util module
* chore(core): use path exists instead of existsSync
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
* fix(core): need to read in any base nx.json when building a workspace
* chore(core): remove changes to ngcli-adapter and cleanup nx extension
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
* feat(core): add nx graph as alias of nx dep-graph
* docs(core): add note about old dep-graph syntax
* cleanup(core): formatting
* feat(core): formatting
* feat(core): formatting
Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
If some .ts file imports an npm package that is not directly registered as dependency
the caching of
project graph may result in an exception
when switching back and forth between branches where the
npm package
is a dependency and where it is not
This PR will just provide some dummy checksum for
unknown dependencies
ISSUES CLOSED: #7225
Previously when the passing through complex parameters nx would alter
the original parameters in the following scenarios:
- When passing through parameters, dot notation parameters would be
parsed and no longer would be passthrough the the following process
correctly ( --cucumberOpts.timeout=10000" would instead be passed as
"--cucumberOpts=[Object]")
- strings with spaces (delimited by quotes) would be rendered as
multiple words instead ('--tags="not @exclude"' would be passed as
'--tags=not @exclude' where '@exclude' no longer is part of the tags
param)
This would that when running nx cli to run a command the final command
would not get the correct parameters