Nx Apr 2026
"^build" means: run build for all dependencies first. List generators:
nx list Example: generate a React component library "^build" means: run build for all dependencies first
"targetDefaults": "build": "dependsOn": ["^build"], "outputs": ["projectRoot/dist"] "depConstraints": [ "sourceTag": "scope:app"
"rules": "@nx/enforce-module-boundaries": ["error", "depConstraints": [ "sourceTag": "scope:app", "onlyDependOnLibsWithTags": ["scope:shared", "scope:app"] ] ] "scope:app"] ] ]