我正在创建一个nx工作区来了解它是如何工作的,为此我遵循了
getting started on the nrwl website
:
yarn global add @nrwl/schematics
create-nx-workspace myworkspace
然后我创建了一个库和两个使用同一个库的不同应用程序。我可以用一个
ng serve appName
.
我想在
package.json
但没有成功:
ibenjelloun@COMPUTER MINGW64 /s/tmp/myworkspace (master)
$ yarn affected:dep-graph
yarn run v1.7.0
$ ./node_modules/.bin/nx affected:dep-graph
Invalid options provided
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
要让这些脚本正常工作,需要做些什么吗?我错过了什么?