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

Sign up to get free protection for your applications and to get access to all the features.
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,19 +0,0 @@
1
- import { TasksRunner } from './tasks-runner';
2
- import { LifeCycle } from './life-cycle';
3
- export interface RemoteCache {
4
- retrieve: (hash: string, cacheDirectory: string) => Promise<boolean>;
5
- store: (hash: string, cacheDirectory: string) => Promise<boolean>;
6
- }
7
- export interface DefaultTasksRunnerOptions {
8
- parallel?: number;
9
- cacheableOperations?: string[];
10
- cacheableTargets?: string[];
11
- runtimeCacheInputs?: string[];
12
- cacheDirectory?: string;
13
- remoteCache?: RemoteCache;
14
- lifeCycle: LifeCycle;
15
- captureStderr?: boolean;
16
- skipNxCache?: boolean;
17
- }
18
- export declare const defaultTasksRunner: TasksRunner<DefaultTasksRunnerOptions>;
19
- export default defaultTasksRunner;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultTasksRunner = void 0;
4
- const tslib_1 = require("tslib");
5
- const task_orchestrator_1 = require("./task-orchestrator");
6
- const perf_hooks_1 = require("perf_hooks");
7
- const task_graph_creator_1 = require("./task-graph-creator");
8
- const hasher_1 = require("../core/hasher/hasher");
9
- const defaultTasksRunner = (tasks, options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
10
- if (options['parallel'] === 'false' ||
11
- options['parallel'] === false) {
12
- options['parallel'] = 1;
13
- }
14
- else if (options['parallel'] === 'true' ||
15
- options['parallel'] === true ||
16
- options['parallel'] === undefined) {
17
- options['parallel'] = Number(options['maxParallel'] || 3);
18
- }
19
- options.lifeCycle.startCommand();
20
- try {
21
- return yield runAllTasks(tasks, options, context);
22
- }
23
- catch (e) {
24
- console.error('Unexpected error:');
25
- console.error(e);
26
- process.exit(1);
27
- }
28
- finally {
29
- options.lifeCycle.endCommand();
30
- }
31
- });
32
- exports.defaultTasksRunner = defaultTasksRunner;
33
- function runAllTasks(tasks, options, context) {
34
- var _a;
35
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
36
- const defaultTargetDependencies = (_a = context.nxJson.targetDependencies) !== null && _a !== void 0 ? _a : {};
37
- const taskGraphCreator = new task_graph_creator_1.TaskGraphCreator(context.projectGraph, defaultTargetDependencies);
38
- const taskGraph = taskGraphCreator.createTaskGraph(tasks);
39
- perf_hooks_1.performance.mark('task-graph-created');
40
- perf_hooks_1.performance.measure('nx-prep-work', 'init-local', 'task-graph-created');
41
- perf_hooks_1.performance.measure('graph-creation', 'command-execution-begins', 'task-graph-created');
42
- const hasher = new hasher_1.Hasher(context.projectGraph, context.nxJson, options);
43
- const orchestrator = new task_orchestrator_1.TaskOrchestrator(hasher, context.initiatingProject, context.projectGraph, taskGraph, options);
44
- return orchestrator.run();
45
- });
46
- }
47
- exports.default = exports.defaultTasksRunner;
48
- //# sourceMappingURL=default-tasks-runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-tasks-runner.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/tasks-runner/default-tasks-runner.ts"],"names":[],"mappings":";;;;AAEA,2DAAuD;AACvD,2CAAyC;AACzC,6DAAwD;AACxD,kDAA+C;AAoBxC,MAAM,kBAAkB,GAE3B,CACF,KAAa,EACb,OAAkC,EAClC,OAKC,EACsC,EAAE;IACzC,IACG,OAAe,CAAC,UAAU,CAAC,KAAK,OAAO;QACvC,OAAe,CAAC,UAAU,CAAC,KAAK,KAAK,EACtC;QACC,OAAe,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;KAClC;SAAM,IACJ,OAAe,CAAC,UAAU,CAAC,KAAK,MAAM;QACtC,OAAe,CAAC,UAAU,CAAC,KAAK,IAAI;QACpC,OAAe,CAAC,UAAU,CAAC,KAAK,SAAS,EAC1C;QACC,OAAe,CAAC,UAAU,CAAC,GAAG,MAAM,CAAE,OAAe,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;KAC7E;IAED,OAAO,CAAC,SAAS,CAAC,YA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@ -1,10 +0,0 @@
1
- import { Task } from '@nrwl/devkit';
2
- import { Reporter, ReporterArgs } from './reporter';
3
- /**
4
- * @deprecated the reporter API is no longer supported
5
- * The class will be removed after Nx 14 is released.
6
- */
7
- export declare class EmptyReporter implements Reporter {
8
- beforeRun(projectNames: string[], tasks: Task[], args: ReporterArgs, taskOverrides: any): void;
9
- printResults(args: ReporterArgs, startedWithFailedProjects: boolean, tasks: Task[], failedTasks: Task[], tasksWithFailedDependencies: Task[], cachedTasks: Task[]): void;
10
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmptyReporter = void 0;
4
- /**
5
- * @deprecated the reporter API is no longer supported
6
- * The class will be removed after Nx 14 is released.
7
- */
8
- class EmptyReporter {
9
- beforeRun(projectNames, tasks, args, taskOverrides) { }
10
- printResults(args, startedWithFailedProjects, tasks, failedTasks, tasksWithFailedDependencies, cachedTasks) { }
11
- }
12
- exports.EmptyReporter = EmptyReporter;
13
- //# sourceMappingURL=empty-reporter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty-reporter.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/tasks-runner/empty-reporter.ts"],"names":[],"mappings":";;;AAGA;;;GAGG;AACH,MAAa,aAAa;IACxB,SAAS,CACP,YAAsB,EACtB,KAAa,EACb,IAAkB,EAClB,aAAkB,IACjB,CAAC;IAEJ,YAAY,CACV,IAAkB,EAClB,yBAAkC,EAClC,KAAa,EACb,WAAmB,EACnB,2BAAmC,EACnC,WAAmB,IAClB,CAAC;CACL;AAhBD,sCAgBC"}
@@ -1,36 +0,0 @@
1
- import { DefaultTasksRunnerOptions } from './default-tasks-runner';
2
- import { Task } from './tasks-runner';
3
- import { Batch } from './tasks-schedule';
4
- import { BatchResults } from './batch/batch-messages';
5
- export declare class ForkedProcessTaskRunner {
6
- private readonly options;
7
- workspaceRoot: string;
8
- cliPath: string;
9
- private processes;
10
- constructor(options: DefaultTasksRunnerOptions);
11
- forkProcessForBatch({ executorName, taskGraph }: Batch): Promise<BatchResults>;
12
- forkProcessPipeOutputCapture(task: Task, { forwardOutput, temporaryOutputPath, }: {
13
- forwardOutput: boolean;
14
- temporaryOutputPath: string;
15
- }): Promise<{
16
- code: number;
17
- terminalOutput: string;
18
- }>;
19
- forkProcessDirectOutputCapture(task: Task, { forwardOutput, temporaryOutputPath, }: {
20
- forwardOutput: boolean;
21
- temporaryOutputPath: string;
22
- }): Promise<{
23
- code: number;
24
- terminalOutput: string;
25
- }>;
26
- private readTerminalOutput;
27
- private writeTerminalOutput;
28
- private getEnvVariablesForProcess;
29
- private getEnvVariablesForTask;
30
- private getNxEnvVariablesForForkedProcess;
31
- private getNxEnvVariablesForTask;
32
- private getDotenvVariablesForForkedProcess;
33
- private getDotenvVariablesForTask;
34
- private signalToCode;
35
- private setupOnProcessExitListener;
36
- }
@@ -1,257 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ForkedProcessTaskRunner = void 0;
4
- const fs_1 = require("fs");
5
- const dotenv = require("dotenv");
6
- const child_process_1 = require("child_process");
7
- const app_root_1 = require("nx/src/utils/app-root");
8
- const output_1 = require("../utilities/output");
9
- const utils_1 = require("./utils");
10
- const path_1 = require("path");
11
- const batch_messages_1 = require("./batch/batch-messages");
12
- const devkit_1 = require("@nrwl/devkit");
13
- const workerPath = (0, path_1.join)(__dirname, './batch/run-batch.js');
14
- class ForkedProcessTaskRunner {
15
- constructor(options) {
16
- this.options = options;
17
- this.workspaceRoot = app_root_1.appRootPath;
18
- this.cliPath = (0, utils_1.getCliPath)(this.workspaceRoot);
19
- this.processes = new Set();
20
- this.setupOnProcessExitListener();
21
- }
22
- // TODO: vsavkin delegate terminal output printing
23
- forkProcessForBatch({ executorName, taskGraph }) {
24
- return new Promise((res, rej) => {
25
- try {
26
- const count = Object.keys(taskGraph.tasks).length;
27
- if (count > 1) {
28
- output_1.output.logSingleLine(`Running ${output_1.output.bold(count)} ${output_1.output.bold('tasks')} with ${output_1.output.bold(executorName)}`);
29
- }
30
- else {
31
- const args = (0, utils_1.getCommandArgsForTask)(Object.values(taskGraph.tasks)[0]);
32
- output_1.output.logCommand(args.join(' '));
33
- output_1.output.addNewline();
34
- }
35
- const p = (0, child_process_1.fork)(workerPath, {
36
- stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
37
- env: this.getEnvVariablesForProcess(),
38
- });
39
- this.processes.add(p);
40
- p.once('exit', (code, signal) => {
41
- if (code === null)
42
- code = this.signalToCode(signal);
43
- if (code !== 0) {
44
- const results = {};
45
- for (const rootTaskId of taskGraph.roots) {
46
- results[rootTaskId] = {
47
- success: false,
48
- };
49
- }
50
- rej(new Error(`"${executorName}" exited unexpectedly with code: ${code}`));
51
- }
52
- });
53
- p.on('message', (message) => {
54
- switch (message.type) {
55
- case batch_messages_1.BatchMessageType.Complete: {
56
- res(message.results);
57
- }
58
- }
59
- });
60
- // Start the tasks
61
- p.send({
62
- type: batch_messages_1.BatchMessageType.Tasks,
63
- taskGraph,
64
- executorName,
65
- });
66
- }
67
- catch (e) {
68
- rej(e);
69
- }
70
- });
71
- }
72
- forkProcessPipeOutputCapture(task, { forwardOutput, temporaryOutputPath, }) {
73
- return new Promise((res, rej) => {
74
- try {
75
- const args = (0, utils_1.getCommandArgsForTask)(task);
76
- if (forwardOutput) {
77
- output_1.output.logCommand(args.join(' '));
78
- output_1.output.addNewline();
79
- }
80
- const p = (0, child_process_1.fork)(this.cliPath, args, {
81
- stdio: ['inherit', 'pipe', 'pipe', 'ipc'],
82
- env: this.getEnvVariablesForTask(task, process.env.FORCE_COLOR === undefined
83
- ? 'true'
84
- : process.env.FORCE_COLOR, undefined, forwardOutput),
85
- });
86
- this.processes.add(p);
87
- let out = [];
88
- let outWithErr = [];
89
- p.stdout.on('data', (chunk) => {
90
- if (forwardOutput) {
91
- process.stdout.write(chunk);
92
- }
93
- out.push(chunk.toString());
94
- outWithErr.push(chunk.toString());
95
- });
96
- p.stderr.on('data', (chunk) => {
97
- if (forwardOutput) {
98
- process.stderr.write(chunk);
99
- }
100
- outWithErr.push(chunk.toString());
101
- });
102
- p.on('exit', (code, signal) => {
103
- if (code === null)
104
- code = this.signalToCode(signal);
105
- // we didn't print any output as we were running the command
106
- // print all the collected output|
107
- const terminalOutput = outWithErr.join('');
108
- if (!forwardOutput) {
109
- this.options.lifeCycle.printTaskTerminalOutput(task, code === 0 ? 'success' : 'failure', terminalOutput);
110
- }
111
- this.writeTerminalOutput(temporaryOutputPath, terminalOutput);
112
- res({ code, terminalOutput });
113
- });
114
- }
115
- catch (e) {
116
- console.error(e);
117
- rej(e);
118
- }
119
- });
120
- }
121
- forkProcessDirectOutputCapture(task, { forwardOutput, temporaryOutputPath, }) {
122
- return new Promise((res, rej) => {
123
- try {
124
- const args = (0, utils_1.getCommandArgsForTask)(task);
125
- if (forwardOutput) {
126
- output_1.output.logCommand(args.join(' '));
127
- output_1.output.addNewline();
128
- }
129
- const p = (0, child_process_1.fork)(this.cliPath, args, {
130
- stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
131
- env: this.getEnvVariablesForTask(task, undefined, temporaryOutputPath, forwardOutput),
132
- });
133
- this.processes.add(p);
134
- p.on('exit', (code, signal) => {
135
- if (code === null)
136
- code = this.signalToCode(signal);
137
- // we didn't print any output as we were running the command
138
- // print all the collected output
139
- let terminalOutput = '';
140
- try {
141
- terminalOutput = this.readTerminalOutput(temporaryOutputPath);
142
- if (!forwardOutput) {
143
- this.options.lifeCycle.printTaskTerminalOutput(task, code === 0 ? 'success' : 'failure', terminalOutput);
144
- }
145
- }
146
- catch (e) {
147
- console.log((0, devkit_1.stripIndents) `
148
- Unable to print terminal output for Task "${task.id}".
149
- Task failed with Exit Code ${code} and Signal "${signal}".
150
-
151
- Received error message:
152
- ${e.message}
153
- `);
154
- }
155
- res({
156
- code,
157
- terminalOutput,
158
- });
159
- });
160
- }
161
- catch (e) {
162
- console.error(e);
163
- rej(e);
164
- }
165
- });
166
- }
167
- readTerminalOutput(outputPath) {
168
- return (0, fs_1.readFileSync)(outputPath).toString();
169
- }
170
- writeTerminalOutput(outputPath, content) {
171
- (0, fs_1.writeFileSync)(outputPath, content);
172
- }
173
- // region Environment Variables
174
- getEnvVariablesForProcess() {
175
- return Object.assign(Object.assign(Object.assign({}, this.getDotenvVariablesForForkedProcess()), process.env), this.getNxEnvVariablesForForkedProcess(process.env.FORCE_COLOR === undefined ? 'true' : process.env.FORCE_COLOR));
176
- }
177
- getEnvVariablesForTask(task, forceColor, outputPath, forwardOutput) {
178
- return Object.assign(Object.assign(Object.assign({}, this.getDotenvVariablesForTask(task)), process.env), this.getNxEnvVariablesForTask(task, forceColor, outputPath, forwardOutput));
179
- }
180
- getNxEnvVariablesForForkedProcess(forceColor, outputPath, forwardOutput) {
181
- const env = {
182
- FORCE_COLOR: forceColor,
183
- NX_INVOKED_BY_RUNNER: 'true',
184
- NX_WORKSPACE_ROOT: this.workspaceRoot,
185
- NX_SKIP_NX_CACHE: this.options.skipNxCache ? 'true' : undefined,
186
- };
187
- if (outputPath) {
188
- env.NX_TERMINAL_OUTPUT_PATH = outputPath;
189
- if (this.options.captureStderr) {
190
- env.NX_TERMINAL_CAPTURE_STDERR = 'true';
191
- }
192
- if (forwardOutput) {
193
- env.NX_FORWARD_OUTPUT = 'true';
194
- }
195
- }
196
- return env;
197
- }
198
- getNxEnvVariablesForTask(task, forceColor, outputPath, forwardOutput) {
199
- const env = {
200
- NX_TASK_TARGET_PROJECT: task.target.project,
201
- NX_TASK_HASH: task.hash,
202
- };
203
- // TODO: remove this once we have a reasonable way to configure it
204
- if (task.target.target === 'test') {
205
- env.NX_TERMINAL_CAPTURE_STDERR = 'true';
206
- }
207
- return Object.assign(Object.assign({}, this.getNxEnvVariablesForForkedProcess(forceColor, outputPath, forwardOutput)), env);
208
- }
209
- getDotenvVariablesForForkedProcess() {
210
- return Object.assign(Object.assign(Object.assign({}, parseEnv('.env')), parseEnv('.local.env')), parseEnv('.env.local'));
211
- }
212
- getDotenvVariablesForTask(task) {
213
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getDotenvVariablesForForkedProcess()), parseEnv(`.${task.target.target}.env`)), parseEnv(`.env.${task.target.target}`)), parseEnv(`${task.projectRoot}/.env`)), parseEnv(`${task.projectRoot}/.local.env`)), parseEnv(`${task.projectRoot}/.env.local`)), parseEnv(`${task.projectRoot}/.${task.target.target}.env`)), parseEnv(`${task.projectRoot}/.env.${task.target.target}`));
214
- }
215
- // endregion Environment Variables
216
- signalToCode(signal) {
217
- if (signal === 'SIGHUP')
218
- return 128 + 1;
219
- if (signal === 'SIGINT')
220
- return 128 + 2;
221
- if (signal === 'SIGTERM')
222
- return 128 + 15;
223
- return 128;
224
- }
225
- setupOnProcessExitListener() {
226
- process.on('SIGINT', () => {
227
- this.processes.forEach((p) => {
228
- p.kill('SIGTERM');
229
- });
230
- // we exit here because we don't need to write anything to cache.
231
- process.exit();
232
- });
233
- process.on('SIGTERM', () => {
234
- this.processes.forEach((p) => {
235
- p.kill('SIGTERM');
236
- });
237
- // no exit here because we expect child processes to terminate which
238
- // will store results to the cache and will terminate this process
239
- });
240
- process.on('SIGHUP', () => {
241
- this.processes.forEach((p) => {
242
- p.kill('SIGTERM');
243
- });
244
- // no exit here because we expect child processes to terminate which
245
- // will store results to the cache and will terminate this process
246
- });
247
- }
248
- }
249
- exports.ForkedProcessTaskRunner = ForkedProcessTaskRunner;
250
- function parseEnv(path) {
251
- try {
252
- const envContents = (0, fs_1.readFileSync)(path);
253
- return dotenv.parse(envContents);
254
- }
255
- catch (e) { }
256
- }
257
- //# sourceMappingURL=forked-process-task-runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"forked-process-task-runner.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/tasks-runner/forked-process-task-runner.ts"],"names":[],"mappings":";;;AAAA,2BAAiD;AACjD,iCAAiC;AACjC,iDAAmD;AACnD,oDAAoD;AAG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K,CAAC,WAAW,CAAC,CAAC;KAClC;IAAC,OAAO,CAAC,EAAE,GAAE;AAChB,CAAC"}
@@ -1,25 +0,0 @@
1
- import type { LifeCycle } from '../life-cycle';
2
- import type { Task } from '../tasks-runner';
3
- /**
4
- * The following function is responsible for creating a life cycle with dynamic
5
- * outputs, meaning previous outputs can be rewritten or modified as new outputs
6
- * are added. It is therefore intended for use on a user's local machines.
7
- *
8
- * In CI environments the static equivalent of this life cycle should be used.
9
- *
10
- * NOTE: output.dim() should be preferred over output.colors.gray() because it
11
- * is much more consistently readable across different terminal color themes.
12
- */
13
- export declare function createRunManyDynamicOutputRenderer({ projectNames, tasks, args, overrides, }: {
14
- projectNames: string[];
15
- tasks: Task[];
16
- args: {
17
- target?: string;
18
- configuration?: string;
19
- parallel?: number;
20
- };
21
- overrides: Record<string, unknown>;
22
- }): Promise<{
23
- lifeCycle: LifeCycle;
24
- renderIsDone: Promise<void>;
25
- }>;