@nrwl/workspace 13.10.0-beta.1 → 13.10.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/index.d.ts +3 -5
  2. package/index.js +4 -8
  3. package/index.js.map +1 -1
  4. package/migrations.json +12 -6
  5. package/package.json +5 -8
  6. package/src/generators/move/lib/update-cypress-json.d.ts +1 -2
  7. package/src/generators/move/lib/update-cypress-json.js.map +1 -1
  8. package/src/generators/move/lib/update-project-root-files.js +3 -3
  9. package/src/generators/move/lib/update-project-root-files.js.map +1 -1
  10. package/src/generators/move/lib/update-storybook-config.js +3 -3
  11. package/src/generators/move/lib/update-storybook-config.js.map +1 -1
  12. package/src/generators/remove/lib/check-dependencies.js +3 -3
  13. package/src/generators/remove/lib/check-dependencies.js.map +1 -1
  14. package/src/generators/utils/decorate-angular-cli.js__tmpl__ +1 -1
  15. package/src/generators/workspace/files/nx.json__tmpl__ +1 -1
  16. package/src/migrations/update-13-10-0/update-decorate-cli.d.ts +3 -0
  17. package/src/migrations/update-13-10-0/update-decorate-cli.js +14 -0
  18. package/src/migrations/update-13-10-0/update-decorate-cli.js.map +1 -0
  19. package/src/migrations/update-13-10-0/update-tasks-runner.d.ts +3 -0
  20. package/src/migrations/update-13-10-0/update-tasks-runner.js +16 -0
  21. package/src/migrations/update-13-10-0/update-tasks-runner.js.map +1 -0
  22. package/src/tasks-runner/cache.d.ts +1 -40
  23. package/src/tasks-runner/cache.js +2 -280
  24. package/src/tasks-runner/cache.js.map +1 -1
  25. package/src/tasks-runner/life-cycle.d.ts +1 -43
  26. package/src/tasks-runner/life-cycle.js +2 -68
  27. package/src/tasks-runner/life-cycle.js.map +1 -1
  28. package/src/tasks-runner/tasks-runner-v2.d.ts +1 -18
  29. package/src/tasks-runner/tasks-runner-v2.js +4 -39
  30. package/src/tasks-runner/tasks-runner-v2.js.map +1 -1
  31. package/src/tasks-runner/utils.d.ts +1 -25
  32. package/src/tasks-runner/utils.js +2 -214
  33. package/src/tasks-runner/utils.js.map +1 -1
  34. package/src/tslint/nxEnforceModuleBoundariesRule.d.ts +1 -1
  35. package/src/tslint/nxEnforceModuleBoundariesRule.js +10 -11
  36. package/src/tslint/nxEnforceModuleBoundariesRule.js.map +1 -1
  37. package/src/utilities/assets.d.ts +0 -8
  38. package/src/utilities/assets.js +1 -23
  39. package/src/utilities/assets.js.map +1 -1
  40. package/src/utilities/buildable-libs-utils.d.ts +1 -0
  41. package/src/utilities/buildable-libs-utils.js +27 -20
  42. package/src/utilities/buildable-libs-utils.js.map +1 -1
  43. package/src/utilities/fileutils.d.ts +0 -3
  44. package/src/utilities/fileutils.js +1 -8
  45. package/src/utilities/fileutils.js.map +1 -1
  46. package/src/utilities/generate-globs.js +2 -2
  47. package/src/utilities/generate-globs.js.map +1 -1
  48. package/src/utilities/output.d.ts +1 -61
  49. package/src/utilities/output.js +2 -167
  50. package/src/utilities/output.js.map +1 -1
  51. package/src/utilities/plugins/plugin-capabilities.js +2 -2
  52. package/src/utilities/plugins/plugin-capabilities.js.map +1 -1
  53. package/src/utilities/typescript/compilation.js +1 -1
  54. package/src/utilities/typescript/compilation.js.map +1 -1
  55. package/src/utilities/typescript.js +5 -5
  56. package/src/utilities/typescript.js.map +1 -1
  57. package/src/utils/ast-utils.d.ts +1 -2
  58. package/src/utils/ast-utils.js.map +1 -1
  59. package/src/utils/project-type.d.ts +1 -1
  60. package/src/utils/rules/format-files.js +6 -6
  61. package/src/utils/rules/format-files.js.map +1 -1
  62. package/src/utils/runtime-lint-utils.d.ts +2 -3
  63. package/src/utils/runtime-lint-utils.js +2 -2
  64. package/src/utils/runtime-lint-utils.js.map +1 -1
  65. package/src/utils/testing-utils.js +1 -1
  66. package/src/utils/testing-utils.js.map +1 -1
  67. package/src/utils/versions.js +1 -1
  68. package/tasks-runners/default.d.ts +1 -1
  69. package/tasks-runners/default.js +1 -1
  70. package/src/command-line/affected.d.ts +0 -3
  71. package/src/command-line/affected.js +0 -117
  72. package/src/command-line/affected.js.map +0 -1
  73. package/src/command-line/connect-to-nx-cloud.d.ts +0 -2
  74. package/src/command-line/connect-to-nx-cloud.js +0 -78
  75. package/src/command-line/connect-to-nx-cloud.js.map +0 -1
  76. package/src/command-line/daemon.d.ts +0 -2
  77. package/src/command-line/daemon.js +0 -23
  78. package/src/command-line/daemon.js.map +0 -1
  79. package/src/command-line/dep-graph.d.ts +0 -24
  80. package/src/command-line/dep-graph.js +0 -370
  81. package/src/command-line/dep-graph.js.map +0 -1
  82. package/src/command-line/examples.d.ts +0 -5
  83. package/src/command-line/examples.js +0 -283
  84. package/src/command-line/examples.js.map +0 -1
  85. package/src/command-line/format.d.ts +0 -7
  86. package/src/command-line/format.js +0 -206
  87. package/src/command-line/format.js.map +0 -1
  88. package/src/command-line/lint.d.ts +0 -1
  89. package/src/command-line/lint.js +0 -32
  90. package/src/command-line/lint.js.map +0 -1
  91. package/src/command-line/list.d.ts +0 -13
  92. package/src/command-line/list.js +0 -41
  93. package/src/command-line/list.js.map +0 -1
  94. package/src/command-line/nx-commands.d.ts +0 -9
  95. package/src/command-line/nx-commands.js +0 -426
  96. package/src/command-line/nx-commands.js.map +0 -1
  97. package/src/command-line/print-affected.d.ts +0 -6
  98. package/src/command-line/print-affected.js +0 -82
  99. package/src/command-line/print-affected.js.map +0 -1
  100. package/src/command-line/report.d.ts +0 -24
  101. package/src/command-line/report.js +0 -135
  102. package/src/command-line/report.js.map +0 -1
  103. package/src/command-line/reset.d.ts +0 -1
  104. package/src/command-line/reset.js +0 -20
  105. package/src/command-line/reset.js.map +0 -1
  106. package/src/command-line/run-many.d.ts +0 -3
  107. package/src/command-line/run-many.js +0 -61
  108. package/src/command-line/run-many.js.map +0 -1
  109. package/src/command-line/run-one.d.ts +0 -6
  110. package/src/command-line/run-one.js +0 -31
  111. package/src/command-line/run-one.js.map +0 -1
  112. package/src/command-line/shared.d.ts +0 -5
  113. package/src/command-line/shared.js +0 -75
  114. package/src/command-line/shared.js.map +0 -1
  115. package/src/command-line/supported-nx-commands.d.ts +0 -1
  116. package/src/command-line/supported-nx-commands.js +0 -35
  117. package/src/command-line/supported-nx-commands.js.map +0 -1
  118. package/src/command-line/utils.d.ts +0 -40
  119. package/src/command-line/utils.js +0 -157
  120. package/src/command-line/utils.js.map +0 -1
  121. package/src/command-line/workspace-generators.d.ts +0 -1
  122. package/src/command-line/workspace-generators.js +0 -145
  123. package/src/command-line/workspace-generators.js.map +0 -1
  124. package/src/command-line/workspace-integrity-checks.d.ts +0 -11
  125. package/src/command-line/workspace-integrity-checks.js +0 -60
  126. package/src/command-line/workspace-integrity-checks.js.map +0 -1
  127. package/src/core/affected-project-graph/affected-project-graph-models.d.ts +0 -10
  128. package/src/core/affected-project-graph/affected-project-graph-models.js +0 -3
  129. package/src/core/affected-project-graph/affected-project-graph-models.js.map +0 -1
  130. package/src/core/affected-project-graph/affected-project-graph.d.ts +0 -3
  131. package/src/core/affected-project-graph/affected-project-graph.js +0 -88
  132. package/src/core/affected-project-graph/affected-project-graph.js.map +0 -1
  133. package/src/core/affected-project-graph/index.d.ts +0 -2
  134. package/src/core/affected-project-graph/index.js +0 -6
  135. package/src/core/affected-project-graph/index.js.map +0 -1
  136. package/src/core/affected-project-graph/locators/implicit-json-changes.d.ts +0 -4
  137. package/src/core/affected-project-graph/locators/implicit-json-changes.js +0 -54
  138. package/src/core/affected-project-graph/locators/implicit-json-changes.js.map +0 -1
  139. package/src/core/affected-project-graph/locators/npm-packages.d.ts +0 -4
  140. package/src/core/affected-project-graph/locators/npm-packages.js +0 -35
  141. package/src/core/affected-project-graph/locators/npm-packages.js.map +0 -1
  142. package/src/core/affected-project-graph/locators/tsconfig-json-changes.d.ts +0 -4
  143. package/src/core/affected-project-graph/locators/tsconfig-json-changes.js +0 -64
  144. package/src/core/affected-project-graph/locators/tsconfig-json-changes.js.map +0 -1
  145. package/src/core/affected-project-graph/locators/workspace-json-changes.d.ts +0 -4
  146. package/src/core/affected-project-graph/locators/workspace-json-changes.js +0 -48
  147. package/src/core/affected-project-graph/locators/workspace-json-changes.js.map +0 -1
  148. package/src/core/affected-project-graph/locators/workspace-projects.d.ts +0 -3
  149. package/src/core/affected-project-graph/locators/workspace-projects.js +0 -40
  150. package/src/core/affected-project-graph/locators/workspace-projects.js.map +0 -1
  151. package/src/core/assert-workspace-validity.d.ts +0 -2
  152. package/src/core/assert-workspace-validity.js +0 -67
  153. package/src/core/assert-workspace-validity.js.map +0 -1
  154. package/src/core/dep-graph/3rdpartylicenses.txt +0 -732
  155. package/src/core/dep-graph/index.html +0 -16
  156. package/src/core/dep-graph/main.esm.js +0 -2
  157. package/src/core/dep-graph/main.esm.js.LICENSE.txt +0 -39
  158. package/src/core/dep-graph/polyfills.esm.js +0 -1
  159. package/src/core/dep-graph/runtime.esm.js +0 -1
  160. package/src/core/dep-graph/styles.css +0 -3
  161. package/src/core/file-map-utils.d.ts +0 -10
  162. package/src/core/file-map-utils.js +0 -80
  163. package/src/core/file-map-utils.js.map +0 -1
  164. package/src/core/file-utils.d.ts +0 -32
  165. package/src/core/file-utils.js +0 -160
  166. package/src/core/file-utils.js.map +0 -1
  167. package/src/core/hasher/file-hasher-base.d.ts +0 -12
  168. package/src/core/hasher/file-hasher-base.js +0 -68
  169. package/src/core/hasher/file-hasher-base.js.map +0 -1
  170. package/src/core/hasher/file-hasher.d.ts +0 -2
  171. package/src/core/hasher/file-hasher.js +0 -22
  172. package/src/core/hasher/file-hasher.js.map +0 -1
  173. package/src/core/hasher/git-based-file-hasher.d.ts +0 -10
  174. package/src/core/hasher/git-based-file-hasher.js +0 -50
  175. package/src/core/hasher/git-based-file-hasher.js.map +0 -1
  176. package/src/core/hasher/git-hasher.d.ts +0 -7
  177. package/src/core/hasher/git-hasher.js +0 -134
  178. package/src/core/hasher/git-hasher.js.map +0 -1
  179. package/src/core/hasher/hasher.d.ts +0 -63
  180. package/src/core/hasher/hasher.js +0 -367
  181. package/src/core/hasher/hasher.js.map +0 -1
  182. package/src/core/hasher/hashing-impl.d.ts +0 -5
  183. package/src/core/hasher/hashing-impl.js +0 -23
  184. package/src/core/hasher/hashing-impl.js.map +0 -1
  185. package/src/core/hasher/node-based-file-hasher.d.ts +0 -7
  186. package/src/core/hasher/node-based-file-hasher.js +0 -78
  187. package/src/core/hasher/node-based-file-hasher.js.map +0 -1
  188. package/src/core/normalize-nx-json.d.ts +0 -8
  189. package/src/core/normalize-nx-json.js +0 -38
  190. package/src/core/normalize-nx-json.js.map +0 -1
  191. package/src/core/nx-deps/nx-deps-cache.d.ts +0 -39
  192. package/src/core/nx-deps/nx-deps-cache.js +0 -164
  193. package/src/core/nx-deps/nx-deps-cache.js.map +0 -1
  194. package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.d.ts +0 -5
  195. package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.js +0 -19
  196. package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.js.map +0 -1
  197. package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +0 -3
  198. package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.js +0 -73
  199. package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.js.map +0 -1
  200. package/src/core/project-graph/build-dependencies/explicit-project-dependencies.d.ts +0 -3
  201. package/src/core/project-graph/build-dependencies/explicit-project-dependencies.js +0 -27
  202. package/src/core/project-graph/build-dependencies/explicit-project-dependencies.js.map +0 -1
  203. package/src/core/project-graph/build-dependencies/implicit-project-dependencies.d.ts +0 -2
  204. package/src/core/project-graph/build-dependencies/implicit-project-dependencies.js +0 -20
  205. package/src/core/project-graph/build-dependencies/implicit-project-dependencies.js.map +0 -1
  206. package/src/core/project-graph/build-dependencies/index.d.ts +0 -3
  207. package/src/core/project-graph/build-dependencies/index.js +0 -7
  208. package/src/core/project-graph/build-dependencies/index.js.map +0 -1
  209. package/src/core/project-graph/build-dependencies/typescript-import-locator.d.ts +0 -11
  210. package/src/core/project-graph/build-dependencies/typescript-import-locator.js +0 -114
  211. package/src/core/project-graph/build-dependencies/typescript-import-locator.js.map +0 -1
  212. package/src/core/project-graph/build-nodes/index.d.ts +0 -2
  213. package/src/core/project-graph/build-nodes/index.js +0 -6
  214. package/src/core/project-graph/build-nodes/index.js.map +0 -1
  215. package/src/core/project-graph/build-nodes/npm-packages.d.ts +0 -2
  216. package/src/core/project-graph/build-nodes/npm-packages.js +0 -22
  217. package/src/core/project-graph/build-nodes/npm-packages.js.map +0 -1
  218. package/src/core/project-graph/build-nodes/workspace-projects.d.ts +0 -2
  219. package/src/core/project-graph/build-nodes/workspace-projects.js +0 -49
  220. package/src/core/project-graph/build-nodes/workspace-projects.js.map +0 -1
  221. package/src/core/project-graph/build-project-graph.d.ts +0 -7
  222. package/src/core/project-graph/build-project-graph.js +0 -231
  223. package/src/core/project-graph/build-project-graph.js.map +0 -1
  224. package/src/core/project-graph/daemon/cache.d.ts +0 -6
  225. package/src/core/project-graph/daemon/cache.js +0 -56
  226. package/src/core/project-graph/daemon/cache.js.map +0 -1
  227. package/src/core/project-graph/daemon/client/client.d.ts +0 -26
  228. package/src/core/project-graph/daemon/client/client.js +0 -200
  229. package/src/core/project-graph/daemon/client/client.js.map +0 -1
  230. package/src/core/project-graph/daemon/client/exec-is-server-available.d.ts +0 -1
  231. package/src/core/project-graph/daemon/client/exec-is-server-available.js +0 -13
  232. package/src/core/project-graph/daemon/client/exec-is-server-available.js.map +0 -1
  233. package/src/core/project-graph/daemon/client/generate-help-output.d.ts +0 -1
  234. package/src/core/project-graph/daemon/client/generate-help-output.js +0 -31
  235. package/src/core/project-graph/daemon/client/generate-help-output.js.map +0 -1
  236. package/src/core/project-graph/daemon/server/logger.d.ts +0 -18
  237. package/src/core/project-graph/daemon/server/logger.js +0 -38
  238. package/src/core/project-graph/daemon/server/logger.js.map +0 -1
  239. package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.d.ts +0 -8
  240. package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.js +0 -191
  241. package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.js.map +0 -1
  242. package/src/core/project-graph/daemon/server/server.d.ts +0 -4
  243. package/src/core/project-graph/daemon/server/server.js +0 -236
  244. package/src/core/project-graph/daemon/server/server.js.map +0 -1
  245. package/src/core/project-graph/daemon/server/shutdown-utils.d.ts +0 -12
  246. package/src/core/project-graph/daemon/server/shutdown-utils.js +0 -32
  247. package/src/core/project-graph/daemon/server/shutdown-utils.js.map +0 -1
  248. package/src/core/project-graph/daemon/server/start.d.ts +0 -1
  249. package/src/core/project-graph/daemon/server/start.js +0 -19
  250. package/src/core/project-graph/daemon/server/start.js.map +0 -1
  251. package/src/core/project-graph/daemon/server/stop.d.ts +0 -1
  252. package/src/core/project-graph/daemon/server/stop.js +0 -19
  253. package/src/core/project-graph/daemon/server/stop.js.map +0 -1
  254. package/src/core/project-graph/daemon/server/watcher.d.ts +0 -12
  255. package/src/core/project-graph/daemon/server/watcher.js +0 -158
  256. package/src/core/project-graph/daemon/server/watcher.js.map +0 -1
  257. package/src/core/project-graph/daemon/socket-utils.d.ts +0 -15
  258. package/src/core/project-graph/daemon/socket-utils.js +0 -38
  259. package/src/core/project-graph/daemon/socket-utils.js.map +0 -1
  260. package/src/core/project-graph/daemon/tmp-dir.d.ts +0 -6
  261. package/src/core/project-graph/daemon/tmp-dir.js +0 -37
  262. package/src/core/project-graph/daemon/tmp-dir.js.map +0 -1
  263. package/src/core/project-graph/index.d.ts +0 -3
  264. package/src/core/project-graph/index.js +0 -10
  265. package/src/core/project-graph/index.js.map +0 -1
  266. package/src/core/project-graph/operators.d.ts +0 -14
  267. package/src/core/project-graph/operators.js +0 -119
  268. package/src/core/project-graph/operators.js.map +0 -1
  269. package/src/core/project-graph/project-graph-models.d.ts +0 -8
  270. package/src/core/project-graph/project-graph-models.js +0 -12
  271. package/src/core/project-graph/project-graph-models.js.map +0 -1
  272. package/src/core/project-graph/project-graph-worker.d.ts +0 -1
  273. package/src/core/project-graph/project-graph-worker.js +0 -19
  274. package/src/core/project-graph/project-graph-worker.js.map +0 -1
  275. package/src/core/project-graph/project-graph.d.ts +0 -16
  276. package/src/core/project-graph/project-graph.js +0 -167
  277. package/src/core/project-graph/project-graph.js.map +0 -1
  278. package/src/core/shared-interfaces.d.ts +0 -11
  279. package/src/core/shared-interfaces.js +0 -3
  280. package/src/core/shared-interfaces.js.map +0 -1
  281. package/src/core/target-project-locator.d.ts +0 -36
  282. package/src/core/target-project-locator.js +0 -164
  283. package/src/core/target-project-locator.js.map +0 -1
  284. package/src/init/init.d.ts +0 -1
  285. package/src/init/init.js +0 -13
  286. package/src/init/init.js.map +0 -1
  287. package/src/tasks-runner/batch/batch-messages.d.ts +0 -24
  288. package/src/tasks-runner/batch/batch-messages.js +0 -9
  289. package/src/tasks-runner/batch/batch-messages.js.map +0 -1
  290. package/src/tasks-runner/batch/run-batch.d.ts +0 -1
  291. package/src/tasks-runner/batch/run-batch.js +0 -57
  292. package/src/tasks-runner/batch/run-batch.js.map +0 -1
  293. package/src/tasks-runner/default-reporter.d.ts +0 -11
  294. package/src/tasks-runner/default-reporter.js +0 -79
  295. package/src/tasks-runner/default-reporter.js.map +0 -1
  296. package/src/tasks-runner/default-tasks-runner.d.ts +0 -19
  297. package/src/tasks-runner/default-tasks-runner.js +0 -48
  298. package/src/tasks-runner/default-tasks-runner.js.map +0 -1
  299. package/src/tasks-runner/empty-reporter.d.ts +0 -10
  300. package/src/tasks-runner/empty-reporter.js +0 -13
  301. package/src/tasks-runner/empty-reporter.js.map +0 -1
  302. package/src/tasks-runner/forked-process-task-runner.d.ts +0 -36
  303. package/src/tasks-runner/forked-process-task-runner.js +0 -257
  304. package/src/tasks-runner/forked-process-task-runner.js.map +0 -1
  305. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +0 -25
  306. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -349
  307. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js.map +0 -1
  308. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts +0 -25
  309. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +0 -231
  310. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js.map +0 -1
  311. package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.d.ts +0 -6
  312. package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +0 -19
  313. package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js.map +0 -1
  314. package/src/tasks-runner/life-cycles/pretty-time.d.ts +0 -4
  315. package/src/tasks-runner/life-cycles/pretty-time.js +0 -75
  316. package/src/tasks-runner/life-cycles/pretty-time.js.map +0 -1
  317. package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts +0 -33
  318. package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +0 -110
  319. package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js.map +0 -1
  320. package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts +0 -31
  321. package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +0 -97
  322. package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js.map +0 -1
  323. package/src/tasks-runner/life-cycles/task-profiling-life-cycle.d.ts +0 -19
  324. package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +0 -67
  325. package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js.map +0 -1
  326. package/src/tasks-runner/life-cycles/task-timings-life-cycle.d.ts +0 -13
  327. package/src/tasks-runner/life-cycles/task-timings-life-cycle.js +0 -33
  328. package/src/tasks-runner/life-cycles/task-timings-life-cycle.js.map +0 -1
  329. package/src/tasks-runner/remove-old-cache-records.d.ts +0 -1
  330. package/src/tasks-runner/remove-old-cache-records.js +0 -62
  331. package/src/tasks-runner/remove-old-cache-records.js.map +0 -1
  332. package/src/tasks-runner/reporter.d.ts +0 -14
  333. package/src/tasks-runner/reporter.js +0 -11
  334. package/src/tasks-runner/reporter.js.map +0 -1
  335. package/src/tasks-runner/run-command.d.ts +0 -19
  336. package/src/tasks-runner/run-command.js +0 -353
  337. package/src/tasks-runner/run-command.js.map +0 -1
  338. package/src/tasks-runner/run-one-reporter.d.ts +0 -12
  339. package/src/tasks-runner/run-one-reporter.js +0 -68
  340. package/src/tasks-runner/run-one-reporter.js.map +0 -1
  341. package/src/tasks-runner/task-graph-creator.d.ts +0 -11
  342. package/src/tasks-runner/task-graph-creator.js +0 -71
  343. package/src/tasks-runner/task-graph-creator.js.map +0 -1
  344. package/src/tasks-runner/task-orchestrator.d.ts +0 -37
  345. package/src/tasks-runner/task-orchestrator.js +0 -299
  346. package/src/tasks-runner/task-orchestrator.js.map +0 -1
  347. package/src/tasks-runner/tasks-runner.d.ts +0 -44
  348. package/src/tasks-runner/tasks-runner.js +0 -15
  349. package/src/tasks-runner/tasks-runner.js.map +0 -1
  350. package/src/tasks-runner/tasks-schedule.d.ts +0 -32
  351. package/src/tasks-runner/tasks-schedule.js +0 -130
  352. package/src/tasks-runner/tasks-schedule.js.map +0 -1
  353. package/src/utilities/array.d.ts +0 -17
  354. package/src/utilities/array.js +0 -26
  355. package/src/utilities/array.js.map +0 -1
  356. package/src/utilities/cache-directory.d.ts +0 -1
  357. package/src/utilities/cache-directory.js +0 -34
  358. package/src/utilities/cache-directory.js.map +0 -1
  359. package/src/utilities/is_ci.d.ts +0 -1
  360. package/src/utilities/is_ci.js +0 -21
  361. package/src/utilities/is_ci.js.map +0 -1
  362. package/src/utilities/json-diff.d.ts +0 -17
  363. package/src/utilities/json-diff.js +0 -112
  364. package/src/utilities/json-diff.js.map +0 -1
  365. package/src/utilities/perf-logging.d.ts +0 -1
  366. package/src/utilities/perf-logging.js +0 -12
  367. package/src/utilities/perf-logging.js.map +0 -1
  368. package/src/utilities/project-graph-utils.d.ts +0 -11
  369. package/src/utilities/project-graph-utils.js +0 -95
  370. package/src/utilities/project-graph-utils.js.map +0 -1
  371. package/src/utilities/strip-source-code.d.ts +0 -2
  372. package/src/utilities/strip-source-code.js +0 -85
  373. package/src/utilities/strip-source-code.js.map +0 -1
@@ -1,283 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.examples = void 0;
4
- exports.examples = {
5
- 'print-affected': [
6
- {
7
- command: 'print-affected',
8
- description: 'Print information about affected projects and the project graph',
9
- },
10
- {
11
- command: 'print-affected --base=main --head=HEAD',
12
- description: 'Print information about the projects affected by the changes between main and HEAD (e.g,. PR)',
13
- },
14
- {
15
- command: 'print-affected --target=test',
16
- description: 'Prints information about the affected projects and a list of tasks to test them',
17
- },
18
- {
19
- command: 'print-affected --target=build --select=projects',
20
- description: 'Prints the projects property from the print-affected output',
21
- },
22
- {
23
- command: 'print-affected --target=build --select=tasks.target.project',
24
- description: 'Prints the tasks.target.project property from the print-affected output',
25
- },
26
- ],
27
- affected: [
28
- {
29
- command: 'affected --target=custom-target',
30
- description: 'Run custom target for all affected projects',
31
- },
32
- {
33
- command: 'affected --target=test --parallel=5',
34
- description: 'Run tests in parallel',
35
- },
36
- {
37
- command: 'affected --target=test --all',
38
- description: 'Run the test target for all projects',
39
- },
40
- {
41
- command: 'affected --target=test --files=libs/mylib/src/index.ts',
42
- description: 'Run tests for all the projects affected by changing the index.ts file',
43
- },
44
- {
45
- command: 'affected --target=test --base=main --head=HEAD',
46
- description: 'Run tests for all the projects affected by the changes between main and HEAD (e.g., PR)',
47
- },
48
- {
49
- command: 'affected --target=test --base=main~1 --head=main',
50
- description: 'Run tests for all the projects affected by the last commit on main',
51
- },
52
- ],
53
- 'affected:test': [
54
- {
55
- command: 'affected:test --parallel=5',
56
- description: 'Run tests in parallel',
57
- },
58
- {
59
- command: 'affected:test --all',
60
- description: 'Run the test target for all projects',
61
- },
62
- {
63
- command: 'affected:test --files=libs/mylib/src/index.ts',
64
- description: 'Run tests for all the projects affected by changing the index.ts file',
65
- },
66
- {
67
- command: 'affected:test --base=main --head=HEAD',
68
- description: 'Run tests for all the projects affected by the changes between main and HEAD (e.g., PR)',
69
- },
70
- {
71
- command: 'affected:test --base=main~1 --head=main',
72
- description: 'Run tests for all the projects affected by the last commit on main',
73
- },
74
- ],
75
- 'affected:build': [
76
- {
77
- command: 'affected:build --parallel=5',
78
- description: 'Run build in parallel',
79
- },
80
- {
81
- command: 'affected:build --all',
82
- description: 'Run the build target for all projects',
83
- },
84
- {
85
- command: 'affected:build --files=libs/mylib/src/index.ts',
86
- description: 'Run build for all the projects affected by changing the index.ts file',
87
- },
88
- {
89
- command: 'affected:build --base=main --head=HEAD',
90
- description: 'Run build for all the projects affected by the changes between main and HEAD (e.g., PR)',
91
- },
92
- {
93
- command: 'affected:build --base=main~1 --head=main',
94
- description: 'Run build for all the projects affected by the last commit on main',
95
- },
96
- ],
97
- 'affected:e2e': [
98
- {
99
- command: 'affected:e2e --parallel=5',
100
- description: 'Run tests in parallel',
101
- },
102
- {
103
- command: 'affected:e2e --all',
104
- description: 'Run the test target for all projects',
105
- },
106
- {
107
- command: 'affected:e2e --files=libs/mylib/src/index.ts',
108
- description: 'Run tests for all the projects affected by changing the index.ts file',
109
- },
110
- {
111
- command: 'affected:e2e --base=main --head=HEAD',
112
- description: 'Run tests for all the projects affected by the changes between main and HEAD (e.g., PR)',
113
- },
114
- {
115
- command: 'affected:e2e --base=main~1 --head=main',
116
- description: 'Run tests for all the projects affected by the last commit on main',
117
- },
118
- ],
119
- 'affected:lint': [
120
- {
121
- command: 'affected:lint --parallel=5',
122
- description: 'Run lint in parallel',
123
- },
124
- {
125
- command: 'affected:lint --all',
126
- description: 'Run the lint target for all projects',
127
- },
128
- {
129
- command: 'affected:lint --files=libs/mylib/src/index.ts',
130
- description: 'Run lint for all the projects affected by changing the index.ts file',
131
- },
132
- {
133
- command: 'affected:lint --base=main --head=HEAD',
134
- description: 'Run lint for all the projects affected by the changes between main and HEAD (e.g., PR)',
135
- },
136
- {
137
- command: 'affected:lint --base=main~1 --head=main',
138
- description: 'Run lint for all the projects affected by the last commit on main',
139
- },
140
- ],
141
- 'affected:apps': [
142
- {
143
- command: 'affected:apps --files=libs/mylib/src/index.ts',
144
- description: 'Print the names of all the apps affected by changing the index.ts file',
145
- },
146
- {
147
- command: 'affected:apps --base=main --head=HEAD',
148
- description: 'Print the names of all the apps affected by the changes between main and HEAD (e.g., PR)',
149
- },
150
- {
151
- command: 'affected:apps --base=main~1 --head=main',
152
- description: 'Print the names of all the apps affected by the last commit on main',
153
- },
154
- ],
155
- 'affected:libs': [
156
- {
157
- command: 'affected:libs --files=libs/mylib/src/index.ts',
158
- description: 'Print the names of all the libs affected by changing the index.ts file',
159
- },
160
- {
161
- command: 'affected:libs --base=main --head=HEAD',
162
- description: 'Print the names of all the libs affected by the changes between main and HEAD (e.g., PR)',
163
- },
164
- {
165
- command: 'affected:libs --base=main~1 --head=main',
166
- description: 'Print the names of all the libs affected by the last commit on main',
167
- },
168
- ],
169
- 'format:write': [],
170
- 'format:check': [],
171
- graph: [
172
- {
173
- command: 'graph',
174
- description: 'Open the project graph of the workspace in the browser',
175
- },
176
- {
177
- command: 'graph --file=output.json',
178
- description: 'Save the project graph into a json file',
179
- },
180
- {
181
- command: 'graph --file=output.html',
182
- description: 'Generate a static website with project graph into an html file, accompanied by an asset folder called static',
183
- },
184
- {
185
- command: 'graph --focus=todos-feature-main',
186
- description: 'Show the graph where every node is either an ancestor or a descendant of todos-feature-main',
187
- },
188
- {
189
- command: 'graph --include=project-one,project-two',
190
- description: 'Include project-one and project-two in the project graph',
191
- },
192
- {
193
- command: 'graph --exclude=project-one,project-two',
194
- description: 'Exclude project-one and project-two from the project graph',
195
- },
196
- {
197
- command: 'graph --focus=todos-feature-main --exclude=project-one,project-two',
198
- description: 'Show the graph where every node is either an ancestor or a descendant of todos-feature-main, but exclude project-one and project-two',
199
- },
200
- {
201
- command: 'graph --watch',
202
- description: 'Watch for changes to project graph and update in-browser',
203
- },
204
- ],
205
- 'affected:graph': [
206
- {
207
- command: 'affected:graph --files=libs/mylib/src/index.ts',
208
- description: 'Open the project graph of the workspace in the browser, and highlight the projects affected by changing the index.ts file',
209
- },
210
- {
211
- command: 'affected:graph --base=main --head=HEAD',
212
- description: 'Open the project graph of the workspace in the browser, and highlight the projects affected by the changes between main and HEAD (e.g., PR)',
213
- },
214
- {
215
- command: 'affected:graph --base=main --head=HEAD --file=output.json',
216
- description: 'Save the project graph of the workspace in a json file, and highlight the projects affected by the changes between main and HEAD (e.g., PR)',
217
- },
218
- {
219
- command: 'affected:graph --base=main --head=HEAD --file=output.html',
220
- description: 'Generate a static website with project graph data in an html file, highlighting the projects affected by the changes between main and HEAD (e.g., PR)',
221
- },
222
- {
223
- command: 'affected:graph --base=main~1 --head=main',
224
- description: 'Open the project graph of the workspace in the browser, and highlight the projects affected by the last commit on main',
225
- },
226
- {
227
- command: 'affected:graph --exclude=project-one,project-two',
228
- description: 'Open the project graph of the workspace in the browser, highlight the projects affected, but exclude project-one and project-two',
229
- },
230
- ],
231
- 'workspace-generator': [],
232
- list: [
233
- {
234
- command: 'list',
235
- description: 'List the plugins installed in the current workspace',
236
- },
237
- {
238
- command: 'list @nrwl/web',
239
- description: 'List the generators and executors available in the `@nrwl/web` plugin if it is installed (If the plugin is not installed `nx` will show advice on how to add it to your workspace)',
240
- },
241
- ],
242
- 'run-many': [
243
- {
244
- command: 'run-many --target=test --all',
245
- description: 'Test all projects',
246
- },
247
- {
248
- command: 'run-many --target=test --projects=proj1,proj2',
249
- description: 'Test proj1 and proj2',
250
- },
251
- {
252
- command: 'run-many --target=test --projects=proj1,proj2 --parallel=2',
253
- description: 'Test proj1 and proj2 in parallel',
254
- },
255
- ],
256
- migrate: [
257
- {
258
- command: 'migrate next',
259
- description: 'Update @nrwl/workspace to "next". This will update other packages and will generate migrations.json',
260
- },
261
- {
262
- command: 'migrate 9.0.0',
263
- description: 'Update @nrwl/workspace to "9.0.0". This will update other packages and will generate migrations.json',
264
- },
265
- {
266
- command: 'migrate @nrwl/workspace@9.0.0 --from="@nrwl/workspace@8.0.0,@nrwl/node@8.0.0"',
267
- description: 'Update @nrwl/workspace and generate the list of migrations starting with version 8.0.0 of @nrwl/workspace and @nrwl/node, regardless of what installed locally',
268
- },
269
- {
270
- command: 'migrate @nrwl/workspace@9.0.0 --to="@nrwl/react@9.0.1,@nrwl/angular@9.0.1"',
271
- description: 'Update @nrwl/workspace to "9.0.0". If it tries to update @nrwl/react or @nrwl/angular, use version "9.0.1"',
272
- },
273
- {
274
- command: 'migrate another-package@12.0.0',
275
- description: 'Update another-package to "12.0.0". This will update other packages and will generate migrations.json file',
276
- },
277
- {
278
- command: 'migrate --run-migrations=migrations.json',
279
- description: 'Run migrations from the migrations.json file. You can modify migrations.json and run this command many times',
280
- },
281
- ],
282
- };
283
- //# sourceMappingURL=examples.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"examples.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/command-line/examples.ts"],"names":[],"mappings":";;;AAKa,QAAA,QAAQ,GAA8B;IACjD,gBAAgB,EAAE;QAChB;YACE,OAAO,EAAE,gBAAgB;YACzB,WAAW,EACT,iEAAiE;SACpE;QACD;YACE,OAAO,EAAE,wCAAwC;YACjD,WAAW,EACT,+FAA+F;SAClG;QACD;YACE,OAAO,EAAE,8BAA8B;YACvC,WAAW,EACT,iFAAiF;SACpF;QACD;YACE,OAAO,EAAE,iDAAiD;YAC1D,WAAW,EACT,6DAA6D;SAChE;QACD;YACE,OAAO,EAAE,6DAA6D;YACtE,WAAW,EACT,yEAAyE;SAC5E;KACF;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,iCAAiC;YAC1C,WAAW,EAAE,6CAA6C;SAC3D;QACD;YACE,OAAO,EAAE,qCAAqC;YAC9C,WAAW,EAAE,uBAAuB;SACrC;QACD;YACE,OAAO,EAAE,8BAA8B;YACvC,WAAW,EAAE,sCAAsC;SACpD;QACD;YACE,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,0 @@
1
- import * as yargs from 'yargs';
2
- import { WorkspaceJsonConfiguration } from 'nx/src/shared/workspace';
3
- import { NxJsonConfiguration, ProjectConfiguration } from '@nrwl/devkit';
4
- export declare function format(command: 'check' | 'write', args: yargs.Arguments): Promise<void>;
5
- export declare function moveTagsAndImplicitDepsFromNxJsonToWorkspaceJson(workspaceJson: WorkspaceJsonConfiguration, nxJson: NxJsonConfiguration & {
6
- projects: Record<string, Pick<ProjectConfiguration, 'tags' | 'implicitDependencies'>>;
7
- }): void;
@@ -1,206 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.moveTagsAndImplicitDepsFromNxJsonToWorkspaceJson = exports.format = void 0;
4
- const tslib_1 = require("tslib");
5
- const child_process_1 = require("child_process");
6
- const path = require("path");
7
- const shared_1 = require("./shared");
8
- const fileutils_1 = require("../utilities/fileutils");
9
- const project_graph_1 = require("../core/project-graph");
10
- const affected_project_graph_1 = require("../core/affected-project-graph");
11
- const file_utils_1 = require("../core/file-utils");
12
- const utils_1 = require("./utils");
13
- const workspace_1 = require("nx/src/shared/workspace");
14
- const app_root_1 = require("nx/src/utils/app-root");
15
- const prettier = require("prettier");
16
- const devkit_1 = require("@nrwl/devkit");
17
- const object_sort_1 = require("nx/src/utils/object-sort");
18
- const typescript_1 = require("../utilities/typescript");
19
- const PRETTIER_PATH = require.resolve('prettier/bin-prettier');
20
- function format(command, args) {
21
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
- const { nxArgs } = (0, utils_1.splitArgsIntoNxArgsAndOverrides)(args, 'affected');
23
- const patterns = (yield getPatterns(Object.assign(Object.assign({}, args), nxArgs))).map((p) => `"${p}"`);
24
- // Chunkify the patterns array to prevent crashing the windows terminal
25
- const chunkList = chunkify(patterns, 50);
26
- switch (command) {
27
- case 'write':
28
- const workspaceJsonPath = (0, workspace_1.workspaceConfigName)(app_root_1.appRootPath);
29
- if (workspaceJsonPath) {
30
- updateWorkspaceJsonToMatchFormatVersion(workspaceJsonPath);
31
- sortWorkspaceJson(workspaceJsonPath);
32
- movePropertiesToNewLocations(workspaceJsonPath);
33
- }
34
- sortTsConfig();
35
- addRootConfigFiles(chunkList, nxArgs, workspaceJsonPath);
36
- chunkList.forEach((chunk) => write(chunk));
37
- break;
38
- case 'check':
39
- const pass = chunkList.reduce((pass, chunk) => check(chunk) && pass, true);
40
- if (!pass) {
41
- process.exit(1);
42
- }
43
- break;
44
- }
45
- });
46
- }
47
- exports.format = format;
48
- function getPatterns(args) {
49
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
- const graph = yield (0, project_graph_1.createProjectGraphAsync)();
51
- const allFilesPattern = ['.'];
52
- if (args.all) {
53
- return allFilesPattern;
54
- }
55
- try {
56
- if (args.projects && args.projects.length > 0) {
57
- return getPatternsFromProjects(args.projects);
58
- }
59
- const p = (0, shared_1.parseFiles)(args);
60
- const supportedExtensions = prettier
61
- .getSupportInfo()
62
- .languages.flatMap((language) => language.extensions)
63
- .filter((extension) => !!extension);
64
- const patterns = p.files.filter((f) => (0, fileutils_1.fileExists)(f) && supportedExtensions.includes(path.extname(f)));
65
- return args.libsAndApps
66
- ? yield getPatternsFromApps(patterns, graph.allWorkspaceFiles)
67
- : patterns;
68
- }
69
- catch (_a) {
70
- return allFilesPattern;
71
- }
72
- });
73
- }
74
- function getPatternsFromApps(affectedFiles, allWorkspaceFiles) {
75
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
76
- const graph = yield (0, project_graph_1.createProjectGraphAsync)();
77
- const affectedGraph = (0, affected_project_graph_1.filterAffected)(graph, (0, file_utils_1.calculateFileChanges)(affectedFiles, allWorkspaceFiles));
78
- return getPatternsFromProjects(Object.keys(affectedGraph.nodes));
79
- });
80
- }
81
- function addRootConfigFiles(chunkList, nxArgs, workspaceJsonPath) {
82
- if (nxArgs.all) {
83
- return;
84
- }
85
- const chunk = [];
86
- const addToChunkIfNeeded = (file) => {
87
- if (chunkList.every((c) => !c.includes(`"${file}"`))) {
88
- chunk.push(file);
89
- }
90
- };
91
- if (workspaceJsonPath) {
92
- addToChunkIfNeeded(workspaceJsonPath);
93
- }
94
- ['nx.json', (0, typescript_1.getRootTsConfigFileName)()]
95
- .filter(Boolean)
96
- .forEach(addToChunkIfNeeded);
97
- if (chunk.length > 0) {
98
- chunkList.push(chunk);
99
- }
100
- }
101
- function getPatternsFromProjects(projects) {
102
- return (0, shared_1.getProjectRoots)(projects);
103
- }
104
- function chunkify(target, size) {
105
- return target.reduce((current, value, index) => {
106
- if (index % size === 0)
107
- current.push([]);
108
- current[current.length - 1].push(value);
109
- return current;
110
- }, []);
111
- }
112
- function write(patterns) {
113
- if (patterns.length > 0) {
114
- (0, child_process_1.execSync)(`node "${PRETTIER_PATH}" --write ${patterns.join(' ')}`, {
115
- stdio: [0, 1, 2],
116
- });
117
- }
118
- }
119
- function check(patterns) {
120
- if (patterns.length === 0) {
121
- return true;
122
- }
123
- try {
124
- (0, child_process_1.execSync)(`node "${PRETTIER_PATH}" --list-different ${patterns.join(' ')}`, {
125
- stdio: [0, 1, 2],
126
- });
127
- return true;
128
- }
129
- catch (_a) {
130
- return false;
131
- }
132
- }
133
- function updateWorkspaceJsonToMatchFormatVersion(workspaceJsonPath) {
134
- try {
135
- const workspaceJson = (0, devkit_1.readJsonFile)(workspaceJsonPath);
136
- const reformatted = (0, workspace_1.reformattedWorkspaceJsonOrNull)(workspaceJson);
137
- if (reformatted) {
138
- (0, devkit_1.writeJsonFile)(workspaceJsonPath, reformatted);
139
- }
140
- }
141
- catch (e) {
142
- console.error(`Failed to format workspace config: ${workspaceJsonPath}`);
143
- console.error(e);
144
- }
145
- }
146
- function sortWorkspaceJson(workspaceJsonPath) {
147
- try {
148
- const workspaceJson = (0, devkit_1.readJsonFile)(workspaceJsonPath);
149
- if (Object.entries(workspaceJson.projects).length !== 0) {
150
- const sortedProjects = (0, object_sort_1.sortObjectByKeys)(workspaceJson.projects);
151
- workspaceJson.projects = sortedProjects;
152
- (0, devkit_1.writeJsonFile)(workspaceJsonPath, workspaceJson);
153
- }
154
- }
155
- catch (e) {
156
- // catch noop
157
- }
158
- }
159
- function sortTsConfig() {
160
- try {
161
- const tsconfigPath = (0, typescript_1.getRootTsConfigPath)();
162
- const tsconfig = (0, devkit_1.readJsonFile)(tsconfigPath);
163
- const sortedPaths = (0, object_sort_1.sortObjectByKeys)(tsconfig.compilerOptions.paths);
164
- tsconfig.compilerOptions.paths = sortedPaths;
165
- (0, devkit_1.writeJsonFile)(tsconfigPath, tsconfig);
166
- }
167
- catch (e) {
168
- // catch noop
169
- }
170
- }
171
- function movePropertiesToNewLocations(workspaceJsonPath) {
172
- var _a, _b, _c, _d;
173
- try {
174
- const workspaceJson = (0, devkit_1.readJsonFile)(workspaceJsonPath);
175
- const nxJson = (0, devkit_1.readJsonFile)('nx.json');
176
- if (workspaceJson.cli ||
177
- workspaceJson.generators ||
178
- nxJson.projects ||
179
- nxJson.defaultProject) {
180
- (_a = nxJson.cli) !== null && _a !== void 0 ? _a : (nxJson.cli = workspaceJson.cli);
181
- (_b = nxJson.generators) !== null && _b !== void 0 ? _b : (nxJson.generators = (_c = workspaceJson.generators) !== null && _c !== void 0 ? _c : workspaceJson.schematics);
182
- (_d = nxJson.defaultProject) !== null && _d !== void 0 ? _d : (nxJson.defaultProject = workspaceJson.defaultProject);
183
- delete workspaceJson['cli'];
184
- delete workspaceJson['generators'];
185
- delete workspaceJson['defaultProject'];
186
- moveTagsAndImplicitDepsFromNxJsonToWorkspaceJson(workspaceJson, nxJson);
187
- (0, devkit_1.writeJsonFile)(workspaceJsonPath, workspaceJson);
188
- (0, devkit_1.writeJsonFile)('nx.json', nxJson);
189
- }
190
- }
191
- catch (e) {
192
- console.error(`Error moving properties between Nx.Json + ${workspaceJsonPath}`);
193
- console.error(e);
194
- }
195
- }
196
- function moveTagsAndImplicitDepsFromNxJsonToWorkspaceJson(workspaceJson, nxJson) {
197
- if (!nxJson.projects) {
198
- return;
199
- }
200
- Object.entries(nxJson.projects).forEach(([project, config]) => {
201
- workspaceJson.projects[project] = Object.assign(Object.assign({}, workspaceJson.projects[project]), config);
202
- });
203
- delete nxJson.projects;
204
- }
205
- exports.moveTagsAndImplicitDepsFromNxJsonToWorkspaceJson = moveTagsAndImplicitDepsFromNxJsonToWorkspaceJson;
206
- //# sourceMappingURL=format.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/command-line/format.ts"],"names":[],"mappings":";;;;AAAA,iDAAyC;AACzC,6BAA6B;AAC7B,qCAAuD;AACvD,sDAAoD;AACpD,yDAAgE;AAChE,2EAAgE;AAChE,mDAAoE;AAEpE,mCAAkE;AAClE,uDAIiC;AACjC,oDAAoD;AACpD,qCAAqC;AACrC,yCAKsB;AACtB,0DAA4D;AAC5D,wDAGiC;AAEjC,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAE/D,SAAsB,MAAM,CAC1B,OAA0B,EAC1B,IAAqB;;QAErB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,uCAA+B,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,CAAC,MAAM,WAAW,CAAC,gCAAK,IAAI,GAAK,MAAM,CAAS,CAAC,CAAC,CAAC,GAAG,CACrE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAChB,CAAC;QAEF,uEAAuE;QACvE,MAAM,SAAS,GAAe,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAErD,QAAQ,OAAO,EAAE;YACf,KAAK,OAAO;gBACV,MAAM,iBAAiB,GAAG,IAAA,+BAAmB,EAAC,sBAAW,CAAC,CAAC;gBAC3D,IAAI,iBAAiB,EAAE;oBACrB,uCAAuC,CAAC,iBAAiB,CAAC,CAAC;oBAC3D,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;oBACrC,4BAA4B,CAAC,iBAAiB,CAAC,CAAC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AC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,EAAE;QAC5D,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,mCAC1B,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,GAC/B,MAAM,CACV,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC;AAnBD,4GAmBC"}
@@ -1 +0,0 @@
1
- export declare function workspaceLint(): Promise<void>;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.workspaceLint = void 0;
4
- const tslib_1 = require("tslib");
5
- const project_graph_1 = require("../core/project-graph");
6
- const workspace_integrity_checks_1 = require("./workspace-integrity-checks");
7
- const file_utils_1 = require("../core/file-utils");
8
- const output_1 = require("../utilities/output");
9
- const path = require("path");
10
- function workspaceLint() {
11
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
- const graph = yield (0, project_graph_1.createProjectGraphAsync)();
13
- const allWorkspaceFiles = graph.allWorkspaceFiles;
14
- const projectGraph = (0, project_graph_1.pruneExternalNodes)(graph);
15
- const cliErrorOutputConfigs = new workspace_integrity_checks_1.WorkspaceIntegrityChecks(projectGraph, readAllFilesFromAppsAndLibs(allWorkspaceFiles)).run();
16
- if (cliErrorOutputConfigs.length > 0) {
17
- cliErrorOutputConfigs.forEach((errorConfig) => {
18
- output_1.output.error(errorConfig);
19
- });
20
- process.exit(1);
21
- }
22
- });
23
- }
24
- exports.workspaceLint = workspaceLint;
25
- function readAllFilesFromAppsAndLibs(allWorkspaceFiles) {
26
- const wl = (0, file_utils_1.workspaceLayout)();
27
- return allWorkspaceFiles
28
- .map((f) => f.file)
29
- .filter((f) => f.startsWith(`${wl.appsDir}/`) || f.startsWith(`${wl.libsDir}/`))
30
- .filter((f) => !path.basename(f).startsWith('.'));
31
- }
32
- //# sourceMappingURL=lint.js.map
@@ -1 +0,0 @@
1
- {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CAAC"}
@@ -1,13 +0,0 @@
1
- export interface ListArgs {
2
- /** The name of an installed plugin to query */
3
- plugin?: string | undefined;
4
- }
5
- /**
6
- * List available plugins or capabilities within a specific plugin
7
- *
8
- * @remarks
9
- *
10
- * Must be run within an Nx workspace
11
- *
12
- */
13
- export declare function listHandler(args: ListArgs): Promise<void>;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listHandler = void 0;
4
- const tslib_1 = require("tslib");
5
- const app_root_1 = require("nx/src/utils/app-root");
6
- const output_1 = require("../utilities/output");
7
- const plugins_1 = require("../utilities/plugins");
8
- /**
9
- * List available plugins or capabilities within a specific plugin
10
- *
11
- * @remarks
12
- *
13
- * Must be run within an Nx workspace
14
- *
15
- */
16
- function listHandler(args) {
17
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
18
- if (args.plugin) {
19
- (0, plugins_1.listPluginCapabilities)(args.plugin);
20
- }
21
- else {
22
- const corePlugins = (0, plugins_1.fetchCorePlugins)();
23
- const communityPlugins = yield (0, plugins_1.fetchCommunityPlugins)().catch(() => {
24
- output_1.output.warn({
25
- title: `Community plugins:`,
26
- bodyLines: [`Error fetching plugins.`],
27
- });
28
- return [];
29
- });
30
- const installedPlugins = (0, plugins_1.getInstalledPluginsFromPackageJson)(app_root_1.appRootPath, corePlugins, communityPlugins);
31
- (0, plugins_1.listInstalledPlugins)(installedPlugins);
32
- (0, plugins_1.listCorePlugins)(installedPlugins, corePlugins);
33
- (0, plugins_1.listCommunityPlugins)(installedPlugins, communityPlugins);
34
- output_1.output.note({
35
- title: `Use "nx list [plugin]" to find out more`,
36
- });
37
- }
38
- });
39
- }
40
- exports.listHandler = listHandler;
41
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/command-line/list.ts"],"names":[],"mappings":";;;;AAAA,oDAAoD;AACpD,gDAA6C;AAC7C,kDAQ8B;AAO9B;;;;;;;GAOG;AACH,SAAsB,WAAW,CAAC,IAAc;;QAC9C,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,IAAA,gCAAsB,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACrC;aAAM;YACL,MAAM,WAAW,GAAG,IAAA,0BAAgB,GAAE,CAAC;YACvC,MAAM,gBAAgB,GAAG,MAAM,IAAA,+BAAqB,GAAE,CAAC,KAAK,CAAC,GAAG,EAAE;gBAChE,eAAM,CAAC,IAAI,CAAC;oBACV,KAAK,EAAE,oBAAoB;oBAC3B,SAAS,EAAE,CAAC,yBAAyB,CAAC;iBACvC,CAAC,CAAC;gBAEH,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;YAEH,MAAM,gBAAgB,GAAG,IAAA,4CAAkC,EACzD,sBAAW,EACX,WAAW,EACX,gBAAgB,CACjB,CAAC;YACF,IAAA,8BAAoB,EAAC,gBAAgB,CAAC,CAAC;YACvC,IAAA,yBAAe,EAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;YAC/C,IAAA,8BAAoB,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;YAEzD,eAAM,CAAC,IAAI,CAAC;gBACV,KAAK,EAAE,yCAAyC;aACjD,CAAC,CAAC;SACJ;IACH,CAAC;CAAA;AA3BD,kCA2BC"}
@@ -1,9 +0,0 @@
1
- import * as yargs from 'yargs';
2
- /**
3
- * Exposing the Yargs commands object so the documentation generator can
4
- * parse it. The CLI will consume it and call the `.argv` to bootstrapped
5
- * the CLI. These command declarations needs to be in a different file
6
- * from the `.argv` call, so the object and it's relative scripts can
7
- * be executed correctly.
8
- */
9
- export declare const commandsObject: yargs.Argv<{}>;