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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) hide show
  1. package/index.d.ts +3 -5
  2. package/index.js +5 -9
  3. package/index.js.map +1 -1
  4. package/migrations.json +12 -6
  5. package/package.json +5 -8
  6. package/src/executors/counter/counter.impl.js +7 -7
  7. package/src/executors/counter/counter.impl.js.map +1 -1
  8. package/src/executors/run-commands/run-commands.impl.js +4 -4
  9. package/src/executors/run-script/run-script.impl.js +1 -1
  10. package/src/generators/convert-to-nx-project/convert-to-nx-project.js +2 -2
  11. package/src/generators/library/library.js +2 -2
  12. package/src/generators/move/lib/update-cypress-json.d.ts +1 -2
  13. package/src/generators/move/lib/update-cypress-json.js.map +1 -1
  14. package/src/generators/move/lib/update-project-root-files.js +3 -3
  15. package/src/generators/move/lib/update-project-root-files.js.map +1 -1
  16. package/src/generators/move/lib/update-storybook-config.js +3 -3
  17. package/src/generators/move/lib/update-storybook-config.js.map +1 -1
  18. package/src/generators/move/move.js +1 -1
  19. package/src/generators/new/new.js +3 -3
  20. package/src/generators/npm-package/npm-package.js +1 -1
  21. package/src/generators/preset/preset.js +2 -2
  22. package/src/generators/remove/lib/check-dependencies.js +4 -4
  23. package/src/generators/remove/lib/check-dependencies.js.map +1 -1
  24. package/src/generators/remove/remove.js +1 -1
  25. package/src/generators/run-commands/run-commands.js +1 -1
  26. package/src/generators/utils/decorate-angular-cli.js__tmpl__ +1 -1
  27. package/src/generators/workspace/files/nx.json__tmpl__ +1 -1
  28. package/src/generators/workspace/workspace.js +1 -1
  29. package/src/generators/workspace-generator/workspace-generator.js +1 -1
  30. package/src/migrations/update-12-5-0/add-target-dependencies.js +1 -1
  31. package/src/migrations/update-13-0-0/config-locations/config-locations.js +1 -1
  32. package/src/migrations/update-13-0-0/set-default-base-if-not-set.js +1 -1
  33. package/src/migrations/update-13-10-0/update-decorate-cli.d.ts +3 -0
  34. package/src/migrations/update-13-10-0/update-decorate-cli.js +14 -0
  35. package/src/migrations/update-13-10-0/update-decorate-cli.js.map +1 -0
  36. package/src/migrations/update-13-10-0/update-tasks-runner.d.ts +3 -0
  37. package/src/migrations/update-13-10-0/update-tasks-runner.js +16 -0
  38. package/src/migrations/update-13-10-0/update-tasks-runner.js.map +1 -0
  39. package/src/migrations/update-13-2-0/set-parallel-default.js +1 -1
  40. package/src/migrations/update-13-3-0/update-tsc-executor-location.js +1 -1
  41. package/src/tslint/nxEnforceModuleBoundariesRule.d.ts +1 -1
  42. package/src/tslint/nxEnforceModuleBoundariesRule.js +10 -11
  43. package/src/tslint/nxEnforceModuleBoundariesRule.js.map +1 -1
  44. package/src/utilities/assets.d.ts +0 -8
  45. package/src/utilities/assets.js +1 -23
  46. package/src/utilities/assets.js.map +1 -1
  47. package/src/utilities/buildable-libs-utils.d.ts +1 -0
  48. package/src/utilities/buildable-libs-utils.js +27 -20
  49. package/src/utilities/buildable-libs-utils.js.map +1 -1
  50. package/src/utilities/fileutils.d.ts +0 -3
  51. package/src/utilities/fileutils.js +1 -8
  52. package/src/utilities/fileutils.js.map +1 -1
  53. package/src/utilities/generate-globs.js +2 -2
  54. package/src/utilities/generate-globs.js.map +1 -1
  55. package/src/utilities/output.d.ts +1 -61
  56. package/src/utilities/output.js +2 -167
  57. package/src/utilities/output.js.map +1 -1
  58. package/src/utilities/plugins/community-plugins.js +1 -1
  59. package/src/utilities/plugins/plugin-capabilities.js +2 -2
  60. package/src/utilities/plugins/plugin-capabilities.js.map +1 -1
  61. package/src/utilities/prettier.js +1 -1
  62. package/src/utilities/run-tasks-in-serial.js +1 -1
  63. package/src/utilities/typescript/compilation.js +2 -2
  64. package/src/utilities/typescript/compilation.js.map +1 -1
  65. package/src/utilities/typescript.js +5 -5
  66. package/src/utilities/typescript.js.map +1 -1
  67. package/src/utils/ast-utils.d.ts +1 -2
  68. package/src/utils/ast-utils.js.map +1 -1
  69. package/src/utils/lint.js +1 -1
  70. package/src/utils/lint.js.map +1 -1
  71. package/src/utils/project-type.d.ts +1 -1
  72. package/src/utils/rules/format-files.js +7 -7
  73. package/src/utils/rules/format-files.js.map +1 -1
  74. package/src/utils/rules/rename-package-imports.js +1 -1
  75. package/src/utils/runtime-lint-utils.d.ts +2 -3
  76. package/src/utils/runtime-lint-utils.js +2 -2
  77. package/src/utils/runtime-lint-utils.js.map +1 -1
  78. package/src/utils/testing-utils.js +4 -4
  79. package/src/utils/testing-utils.js.map +1 -1
  80. package/src/utils/testing.js +2 -2
  81. package/src/utils/version-utils.js +1 -1
  82. package/src/utils/version-utils.js.map +1 -1
  83. package/src/utils/versions.js +1 -1
  84. package/src/utils/workspace.js +6 -6
  85. package/tasks-runners/default.d.ts +1 -1
  86. package/tasks-runners/default.js +1 -1
  87. package/src/command-line/affected.d.ts +0 -3
  88. package/src/command-line/affected.js +0 -117
  89. package/src/command-line/affected.js.map +0 -1
  90. package/src/command-line/connect-to-nx-cloud.d.ts +0 -2
  91. package/src/command-line/connect-to-nx-cloud.js +0 -78
  92. package/src/command-line/connect-to-nx-cloud.js.map +0 -1
  93. package/src/command-line/daemon.d.ts +0 -2
  94. package/src/command-line/daemon.js +0 -23
  95. package/src/command-line/daemon.js.map +0 -1
  96. package/src/command-line/dep-graph.d.ts +0 -24
  97. package/src/command-line/dep-graph.js +0 -370
  98. package/src/command-line/dep-graph.js.map +0 -1
  99. package/src/command-line/examples.d.ts +0 -5
  100. package/src/command-line/examples.js +0 -283
  101. package/src/command-line/examples.js.map +0 -1
  102. package/src/command-line/format.d.ts +0 -7
  103. package/src/command-line/format.js +0 -206
  104. package/src/command-line/format.js.map +0 -1
  105. package/src/command-line/lint.d.ts +0 -1
  106. package/src/command-line/lint.js +0 -32
  107. package/src/command-line/lint.js.map +0 -1
  108. package/src/command-line/list.d.ts +0 -13
  109. package/src/command-line/list.js +0 -41
  110. package/src/command-line/list.js.map +0 -1
  111. package/src/command-line/nx-commands.d.ts +0 -9
  112. package/src/command-line/nx-commands.js +0 -426
  113. package/src/command-line/nx-commands.js.map +0 -1
  114. package/src/command-line/print-affected.d.ts +0 -6
  115. package/src/command-line/print-affected.js +0 -82
  116. package/src/command-line/print-affected.js.map +0 -1
  117. package/src/command-line/report.d.ts +0 -24
  118. package/src/command-line/report.js +0 -135
  119. package/src/command-line/report.js.map +0 -1
  120. package/src/command-line/reset.d.ts +0 -1
  121. package/src/command-line/reset.js +0 -20
  122. package/src/command-line/reset.js.map +0 -1
  123. package/src/command-line/run-many.d.ts +0 -3
  124. package/src/command-line/run-many.js +0 -61
  125. package/src/command-line/run-many.js.map +0 -1
  126. package/src/command-line/run-one.d.ts +0 -6
  127. package/src/command-line/run-one.js +0 -31
  128. package/src/command-line/run-one.js.map +0 -1
  129. package/src/command-line/shared.d.ts +0 -5
  130. package/src/command-line/shared.js +0 -75
  131. package/src/command-line/shared.js.map +0 -1
  132. package/src/command-line/supported-nx-commands.d.ts +0 -1
  133. package/src/command-line/supported-nx-commands.js +0 -35
  134. package/src/command-line/supported-nx-commands.js.map +0 -1
  135. package/src/command-line/utils.d.ts +0 -40
  136. package/src/command-line/utils.js +0 -157
  137. package/src/command-line/utils.js.map +0 -1
  138. package/src/command-line/workspace-generators.d.ts +0 -1
  139. package/src/command-line/workspace-generators.js +0 -145
  140. package/src/command-line/workspace-generators.js.map +0 -1
  141. package/src/command-line/workspace-integrity-checks.d.ts +0 -11
  142. package/src/command-line/workspace-integrity-checks.js +0 -60
  143. package/src/command-line/workspace-integrity-checks.js.map +0 -1
  144. package/src/core/affected-project-graph/affected-project-graph-models.d.ts +0 -10
  145. package/src/core/affected-project-graph/affected-project-graph-models.js +0 -3
  146. package/src/core/affected-project-graph/affected-project-graph-models.js.map +0 -1
  147. package/src/core/affected-project-graph/affected-project-graph.d.ts +0 -3
  148. package/src/core/affected-project-graph/affected-project-graph.js +0 -88
  149. package/src/core/affected-project-graph/affected-project-graph.js.map +0 -1
  150. package/src/core/affected-project-graph/index.d.ts +0 -2
  151. package/src/core/affected-project-graph/index.js +0 -6
  152. package/src/core/affected-project-graph/index.js.map +0 -1
  153. package/src/core/affected-project-graph/locators/implicit-json-changes.d.ts +0 -4
  154. package/src/core/affected-project-graph/locators/implicit-json-changes.js +0 -54
  155. package/src/core/affected-project-graph/locators/implicit-json-changes.js.map +0 -1
  156. package/src/core/affected-project-graph/locators/npm-packages.d.ts +0 -4
  157. package/src/core/affected-project-graph/locators/npm-packages.js +0 -35
  158. package/src/core/affected-project-graph/locators/npm-packages.js.map +0 -1
  159. package/src/core/affected-project-graph/locators/tsconfig-json-changes.d.ts +0 -4
  160. package/src/core/affected-project-graph/locators/tsconfig-json-changes.js +0 -64
  161. package/src/core/affected-project-graph/locators/tsconfig-json-changes.js.map +0 -1
  162. package/src/core/affected-project-graph/locators/workspace-json-changes.d.ts +0 -4
  163. package/src/core/affected-project-graph/locators/workspace-json-changes.js +0 -48
  164. package/src/core/affected-project-graph/locators/workspace-json-changes.js.map +0 -1
  165. package/src/core/affected-project-graph/locators/workspace-projects.d.ts +0 -3
  166. package/src/core/affected-project-graph/locators/workspace-projects.js +0 -40
  167. package/src/core/affected-project-graph/locators/workspace-projects.js.map +0 -1
  168. package/src/core/assert-workspace-validity.d.ts +0 -2
  169. package/src/core/assert-workspace-validity.js +0 -67
  170. package/src/core/assert-workspace-validity.js.map +0 -1
  171. package/src/core/dep-graph/3rdpartylicenses.txt +0 -732
  172. package/src/core/dep-graph/index.html +0 -16
  173. package/src/core/dep-graph/main.esm.js +0 -2
  174. package/src/core/dep-graph/main.esm.js.LICENSE.txt +0 -39
  175. package/src/core/dep-graph/polyfills.esm.js +0 -1
  176. package/src/core/dep-graph/runtime.esm.js +0 -1
  177. package/src/core/dep-graph/styles.css +0 -3
  178. package/src/core/file-map-utils.d.ts +0 -10
  179. package/src/core/file-map-utils.js +0 -80
  180. package/src/core/file-map-utils.js.map +0 -1
  181. package/src/core/file-utils.d.ts +0 -32
  182. package/src/core/file-utils.js +0 -160
  183. package/src/core/file-utils.js.map +0 -1
  184. package/src/core/hasher/file-hasher-base.d.ts +0 -12
  185. package/src/core/hasher/file-hasher-base.js +0 -68
  186. package/src/core/hasher/file-hasher-base.js.map +0 -1
  187. package/src/core/hasher/file-hasher.d.ts +0 -2
  188. package/src/core/hasher/file-hasher.js +0 -22
  189. package/src/core/hasher/file-hasher.js.map +0 -1
  190. package/src/core/hasher/git-based-file-hasher.d.ts +0 -10
  191. package/src/core/hasher/git-based-file-hasher.js +0 -50
  192. package/src/core/hasher/git-based-file-hasher.js.map +0 -1
  193. package/src/core/hasher/git-hasher.d.ts +0 -7
  194. package/src/core/hasher/git-hasher.js +0 -134
  195. package/src/core/hasher/git-hasher.js.map +0 -1
  196. package/src/core/hasher/hasher.d.ts +0 -63
  197. package/src/core/hasher/hasher.js +0 -367
  198. package/src/core/hasher/hasher.js.map +0 -1
  199. package/src/core/hasher/hashing-impl.d.ts +0 -5
  200. package/src/core/hasher/hashing-impl.js +0 -23
  201. package/src/core/hasher/hashing-impl.js.map +0 -1
  202. package/src/core/hasher/node-based-file-hasher.d.ts +0 -7
  203. package/src/core/hasher/node-based-file-hasher.js +0 -78
  204. package/src/core/hasher/node-based-file-hasher.js.map +0 -1
  205. package/src/core/normalize-nx-json.d.ts +0 -8
  206. package/src/core/normalize-nx-json.js +0 -38
  207. package/src/core/normalize-nx-json.js.map +0 -1
  208. package/src/core/nx-deps/nx-deps-cache.d.ts +0 -39
  209. package/src/core/nx-deps/nx-deps-cache.js +0 -164
  210. package/src/core/nx-deps/nx-deps-cache.js.map +0 -1
  211. package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.d.ts +0 -5
  212. package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.js +0 -19
  213. package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.js.map +0 -1
  214. package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +0 -3
  215. package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.js +0 -73
  216. package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.js.map +0 -1
  217. package/src/core/project-graph/build-dependencies/explicit-project-dependencies.d.ts +0 -3
  218. package/src/core/project-graph/build-dependencies/explicit-project-dependencies.js +0 -27
  219. package/src/core/project-graph/build-dependencies/explicit-project-dependencies.js.map +0 -1
  220. package/src/core/project-graph/build-dependencies/implicit-project-dependencies.d.ts +0 -2
  221. package/src/core/project-graph/build-dependencies/implicit-project-dependencies.js +0 -20
  222. package/src/core/project-graph/build-dependencies/implicit-project-dependencies.js.map +0 -1
  223. package/src/core/project-graph/build-dependencies/index.d.ts +0 -3
  224. package/src/core/project-graph/build-dependencies/index.js +0 -7
  225. package/src/core/project-graph/build-dependencies/index.js.map +0 -1
  226. package/src/core/project-graph/build-dependencies/typescript-import-locator.d.ts +0 -11
  227. package/src/core/project-graph/build-dependencies/typescript-import-locator.js +0 -114
  228. package/src/core/project-graph/build-dependencies/typescript-import-locator.js.map +0 -1
  229. package/src/core/project-graph/build-nodes/index.d.ts +0 -2
  230. package/src/core/project-graph/build-nodes/index.js +0 -6
  231. package/src/core/project-graph/build-nodes/index.js.map +0 -1
  232. package/src/core/project-graph/build-nodes/npm-packages.d.ts +0 -2
  233. package/src/core/project-graph/build-nodes/npm-packages.js +0 -22
  234. package/src/core/project-graph/build-nodes/npm-packages.js.map +0 -1
  235. package/src/core/project-graph/build-nodes/workspace-projects.d.ts +0 -2
  236. package/src/core/project-graph/build-nodes/workspace-projects.js +0 -49
  237. package/src/core/project-graph/build-nodes/workspace-projects.js.map +0 -1
  238. package/src/core/project-graph/build-project-graph.d.ts +0 -7
  239. package/src/core/project-graph/build-project-graph.js +0 -231
  240. package/src/core/project-graph/build-project-graph.js.map +0 -1
  241. package/src/core/project-graph/daemon/cache.d.ts +0 -6
  242. package/src/core/project-graph/daemon/cache.js +0 -56
  243. package/src/core/project-graph/daemon/cache.js.map +0 -1
  244. package/src/core/project-graph/daemon/client/client.d.ts +0 -26
  245. package/src/core/project-graph/daemon/client/client.js +0 -200
  246. package/src/core/project-graph/daemon/client/client.js.map +0 -1
  247. package/src/core/project-graph/daemon/client/exec-is-server-available.d.ts +0 -1
  248. package/src/core/project-graph/daemon/client/exec-is-server-available.js +0 -13
  249. package/src/core/project-graph/daemon/client/exec-is-server-available.js.map +0 -1
  250. package/src/core/project-graph/daemon/client/generate-help-output.d.ts +0 -1
  251. package/src/core/project-graph/daemon/client/generate-help-output.js +0 -31
  252. package/src/core/project-graph/daemon/client/generate-help-output.js.map +0 -1
  253. package/src/core/project-graph/daemon/server/logger.d.ts +0 -18
  254. package/src/core/project-graph/daemon/server/logger.js +0 -38
  255. package/src/core/project-graph/daemon/server/logger.js.map +0 -1
  256. package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.d.ts +0 -8
  257. package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.js +0 -191
  258. package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.js.map +0 -1
  259. package/src/core/project-graph/daemon/server/server.d.ts +0 -4
  260. package/src/core/project-graph/daemon/server/server.js +0 -236
  261. package/src/core/project-graph/daemon/server/server.js.map +0 -1
  262. package/src/core/project-graph/daemon/server/shutdown-utils.d.ts +0 -12
  263. package/src/core/project-graph/daemon/server/shutdown-utils.js +0 -32
  264. package/src/core/project-graph/daemon/server/shutdown-utils.js.map +0 -1
  265. package/src/core/project-graph/daemon/server/start.d.ts +0 -1
  266. package/src/core/project-graph/daemon/server/start.js +0 -19
  267. package/src/core/project-graph/daemon/server/start.js.map +0 -1
  268. package/src/core/project-graph/daemon/server/stop.d.ts +0 -1
  269. package/src/core/project-graph/daemon/server/stop.js +0 -19
  270. package/src/core/project-graph/daemon/server/stop.js.map +0 -1
  271. package/src/core/project-graph/daemon/server/watcher.d.ts +0 -12
  272. package/src/core/project-graph/daemon/server/watcher.js +0 -158
  273. package/src/core/project-graph/daemon/server/watcher.js.map +0 -1
  274. package/src/core/project-graph/daemon/socket-utils.d.ts +0 -15
  275. package/src/core/project-graph/daemon/socket-utils.js +0 -38
  276. package/src/core/project-graph/daemon/socket-utils.js.map +0 -1
  277. package/src/core/project-graph/daemon/tmp-dir.d.ts +0 -6
  278. package/src/core/project-graph/daemon/tmp-dir.js +0 -37
  279. package/src/core/project-graph/daemon/tmp-dir.js.map +0 -1
  280. package/src/core/project-graph/index.d.ts +0 -3
  281. package/src/core/project-graph/index.js +0 -10
  282. package/src/core/project-graph/index.js.map +0 -1
  283. package/src/core/project-graph/operators.d.ts +0 -14
  284. package/src/core/project-graph/operators.js +0 -119
  285. package/src/core/project-graph/operators.js.map +0 -1
  286. package/src/core/project-graph/project-graph-models.d.ts +0 -8
  287. package/src/core/project-graph/project-graph-models.js +0 -12
  288. package/src/core/project-graph/project-graph-models.js.map +0 -1
  289. package/src/core/project-graph/project-graph-worker.d.ts +0 -1
  290. package/src/core/project-graph/project-graph-worker.js +0 -19
  291. package/src/core/project-graph/project-graph-worker.js.map +0 -1
  292. package/src/core/project-graph/project-graph.d.ts +0 -16
  293. package/src/core/project-graph/project-graph.js +0 -167
  294. package/src/core/project-graph/project-graph.js.map +0 -1
  295. package/src/core/shared-interfaces.d.ts +0 -11
  296. package/src/core/shared-interfaces.js +0 -3
  297. package/src/core/shared-interfaces.js.map +0 -1
  298. package/src/core/target-project-locator.d.ts +0 -36
  299. package/src/core/target-project-locator.js +0 -164
  300. package/src/core/target-project-locator.js.map +0 -1
  301. package/src/init/init.d.ts +0 -1
  302. package/src/init/init.js +0 -13
  303. package/src/init/init.js.map +0 -1
  304. package/src/tasks-runner/batch/batch-messages.d.ts +0 -24
  305. package/src/tasks-runner/batch/batch-messages.js +0 -9
  306. package/src/tasks-runner/batch/batch-messages.js.map +0 -1
  307. package/src/tasks-runner/batch/run-batch.d.ts +0 -1
  308. package/src/tasks-runner/batch/run-batch.js +0 -57
  309. package/src/tasks-runner/batch/run-batch.js.map +0 -1
  310. package/src/tasks-runner/cache.d.ts +0 -40
  311. package/src/tasks-runner/cache.js +0 -284
  312. package/src/tasks-runner/cache.js.map +0 -1
  313. package/src/tasks-runner/default-reporter.d.ts +0 -11
  314. package/src/tasks-runner/default-reporter.js +0 -79
  315. package/src/tasks-runner/default-reporter.js.map +0 -1
  316. package/src/tasks-runner/default-tasks-runner.d.ts +0 -19
  317. package/src/tasks-runner/default-tasks-runner.js +0 -48
  318. package/src/tasks-runner/default-tasks-runner.js.map +0 -1
  319. package/src/tasks-runner/empty-reporter.d.ts +0 -10
  320. package/src/tasks-runner/empty-reporter.js +0 -13
  321. package/src/tasks-runner/empty-reporter.js.map +0 -1
  322. package/src/tasks-runner/forked-process-task-runner.d.ts +0 -36
  323. package/src/tasks-runner/forked-process-task-runner.js +0 -257
  324. package/src/tasks-runner/forked-process-task-runner.js.map +0 -1
  325. package/src/tasks-runner/life-cycle.d.ts +0 -43
  326. package/src/tasks-runner/life-cycle.js +0 -72
  327. package/src/tasks-runner/life-cycle.js.map +0 -1
  328. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +0 -25
  329. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -349
  330. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js.map +0 -1
  331. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts +0 -25
  332. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +0 -231
  333. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js.map +0 -1
  334. package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.d.ts +0 -6
  335. package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +0 -19
  336. package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js.map +0 -1
  337. package/src/tasks-runner/life-cycles/pretty-time.d.ts +0 -4
  338. package/src/tasks-runner/life-cycles/pretty-time.js +0 -75
  339. package/src/tasks-runner/life-cycles/pretty-time.js.map +0 -1
  340. package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts +0 -33
  341. package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +0 -110
  342. package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js.map +0 -1
  343. package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts +0 -31
  344. package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +0 -97
  345. package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js.map +0 -1
  346. package/src/tasks-runner/life-cycles/task-profiling-life-cycle.d.ts +0 -19
  347. package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +0 -67
  348. package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js.map +0 -1
  349. package/src/tasks-runner/life-cycles/task-timings-life-cycle.d.ts +0 -13
  350. package/src/tasks-runner/life-cycles/task-timings-life-cycle.js +0 -33
  351. package/src/tasks-runner/life-cycles/task-timings-life-cycle.js.map +0 -1
  352. package/src/tasks-runner/remove-old-cache-records.d.ts +0 -1
  353. package/src/tasks-runner/remove-old-cache-records.js +0 -62
  354. package/src/tasks-runner/remove-old-cache-records.js.map +0 -1
  355. package/src/tasks-runner/reporter.d.ts +0 -14
  356. package/src/tasks-runner/reporter.js +0 -11
  357. package/src/tasks-runner/reporter.js.map +0 -1
  358. package/src/tasks-runner/run-command.d.ts +0 -19
  359. package/src/tasks-runner/run-command.js +0 -353
  360. package/src/tasks-runner/run-command.js.map +0 -1
  361. package/src/tasks-runner/run-one-reporter.d.ts +0 -12
  362. package/src/tasks-runner/run-one-reporter.js +0 -68
  363. package/src/tasks-runner/run-one-reporter.js.map +0 -1
  364. package/src/tasks-runner/task-graph-creator.d.ts +0 -11
  365. package/src/tasks-runner/task-graph-creator.js +0 -71
  366. package/src/tasks-runner/task-graph-creator.js.map +0 -1
  367. package/src/tasks-runner/task-orchestrator.d.ts +0 -37
  368. package/src/tasks-runner/task-orchestrator.js +0 -299
  369. package/src/tasks-runner/task-orchestrator.js.map +0 -1
  370. package/src/tasks-runner/tasks-runner-v2.d.ts +0 -18
  371. package/src/tasks-runner/tasks-runner-v2.js +0 -42
  372. package/src/tasks-runner/tasks-runner-v2.js.map +0 -1
  373. package/src/tasks-runner/tasks-runner.d.ts +0 -44
  374. package/src/tasks-runner/tasks-runner.js +0 -15
  375. package/src/tasks-runner/tasks-runner.js.map +0 -1
  376. package/src/tasks-runner/tasks-schedule.d.ts +0 -32
  377. package/src/tasks-runner/tasks-schedule.js +0 -130
  378. package/src/tasks-runner/tasks-schedule.js.map +0 -1
  379. package/src/tasks-runner/utils.d.ts +0 -25
  380. package/src/tasks-runner/utils.js +0 -217
  381. package/src/tasks-runner/utils.js.map +0 -1
  382. package/src/utilities/array.d.ts +0 -17
  383. package/src/utilities/array.js +0 -26
  384. package/src/utilities/array.js.map +0 -1
  385. package/src/utilities/cache-directory.d.ts +0 -1
  386. package/src/utilities/cache-directory.js +0 -34
  387. package/src/utilities/cache-directory.js.map +0 -1
  388. package/src/utilities/is_ci.d.ts +0 -1
  389. package/src/utilities/is_ci.js +0 -21
  390. package/src/utilities/is_ci.js.map +0 -1
  391. package/src/utilities/json-diff.d.ts +0 -17
  392. package/src/utilities/json-diff.js +0 -112
  393. package/src/utilities/json-diff.js.map +0 -1
  394. package/src/utilities/perf-logging.d.ts +0 -1
  395. package/src/utilities/perf-logging.js +0 -12
  396. package/src/utilities/perf-logging.js.map +0 -1
  397. package/src/utilities/project-graph-utils.d.ts +0 -11
  398. package/src/utilities/project-graph-utils.js +0 -95
  399. package/src/utilities/project-graph-utils.js.map +0 -1
  400. package/src/utilities/strip-source-code.d.ts +0 -2
  401. package/src/utilities/strip-source-code.js +0 -85
  402. package/src/utilities/strip-source-code.js.map +0 -1
@@ -1,284 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Cache = void 0;
4
- const tslib_1 = require("tslib");
5
- const app_root_1 = require("nx/src/utils/app-root");
6
- const fs_extra_1 = require("fs-extra");
7
- const path_1 = require("path");
8
- const child_process_1 = require("child_process");
9
- const cache_directory_1 = require("../utilities/cache-directory");
10
- const os_1 = require("os");
11
- class Cache {
12
- constructor(options) {
13
- this.options = options;
14
- this.root = app_root_1.appRootPath;
15
- this.cachePath = this.createCacheDir();
16
- this.terminalOutputsDir = this.createTerminalOutputsDir();
17
- this.latestOutputsHashesDir = this.ensureLatestOutputsHashesDir();
18
- this.useFsExtraToCopyAndRemove = (0, os_1.platform)() === 'win32';
19
- }
20
- removeOldCacheRecords() {
21
- /**
22
- * Even though spawning a process is fast, we don't want to do it every time
23
- * the user runs a command. Instead, we want to do it once in a while.
24
- */
25
- const shouldSpawnProcess = Math.floor(Math.random() * 50) === 1;
26
- if (shouldSpawnProcess) {
27
- const scriptPath = require.resolve('@nrwl/workspace/src/tasks-runner/remove-old-cache-records.js', { paths: [this.root] });
28
- try {
29
- const p = (0, child_process_1.spawn)('node', [scriptPath, `"${this.cachePath}"`], {
30
- stdio: 'ignore',
31
- detached: true,
32
- });
33
- p.unref();
34
- }
35
- catch (e) {
36
- console.log(`Unable to start remove-old-cache-records script:`);
37
- console.log(e.message);
38
- }
39
- }
40
- }
41
- get(task) {
42
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
43
- const res = yield this.getFromLocalDir(task);
44
- if (res) {
45
- return Object.assign(Object.assign({}, res), { remote: false });
46
- }
47
- else if (this.options.remoteCache) {
48
- // didn't find it locally but we have a remote cache
49
- // attempt remote cache
50
- yield this.options.remoteCache.retrieve(task.hash, this.cachePath);
51
- // try again from local cache
52
- const res2 = yield this.getFromLocalDir(task);
53
- return res2 ? Object.assign(Object.assign({}, res2), { remote: true }) : null;
54
- }
55
- else {
56
- return null;
57
- }
58
- });
59
- }
60
- put(task, terminalOutput, outputs, code) {
61
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
62
- return this.tryAndRetry(() => tslib_1.__awaiter(this, void 0, void 0, function* () {
63
- const td = (0, path_1.join)(this.cachePath, task.hash);
64
- const tdCommit = (0, path_1.join)(this.cachePath, `${task.hash}.commit`);
65
- // might be left overs from partially-completed cache invocations
66
- yield (0, fs_extra_1.remove)(tdCommit);
67
- yield this.remove(td);
68
- yield (0, fs_extra_1.mkdir)(td);
69
- yield (0, fs_extra_1.writeFile)((0, path_1.join)(td, 'terminalOutput'), terminalOutput !== null && terminalOutput !== void 0 ? terminalOutput : 'no terminal output');
70
- yield (0, fs_extra_1.mkdir)((0, path_1.join)(td, 'outputs'));
71
- yield Promise.all(outputs.map((f) => tslib_1.__awaiter(this, void 0, void 0, function* () {
72
- const src = (0, path_1.join)(this.root, f);
73
- if (yield (0, fs_extra_1.pathExists)(src)) {
74
- const cached = (0, path_1.join)(td, 'outputs', f);
75
- const isFile = (yield (0, fs_extra_1.lstat)(src)).isFile();
76
- const directory = isFile ? (0, path_1.dirname)(cached) : cached;
77
- yield (0, fs_extra_1.mkdir)(directory, { recursive: true });
78
- yield this.copy(src, cached);
79
- }
80
- })));
81
- // we need this file to account for partial writes to the cache folder.
82
- // creating this file is atomic, whereas creating a folder is not.
83
- // so if the process gets terminated while we are copying stuff into cache,
84
- // the cache entry won't be used.
85
- yield (0, fs_extra_1.writeFile)((0, path_1.join)(td, 'code'), code.toString());
86
- yield (0, fs_extra_1.writeFile)(tdCommit, 'true');
87
- if (this.options.remoteCache) {
88
- yield this.options.remoteCache.store(task.hash, this.cachePath);
89
- }
90
- yield this.recordOutputsHash(outputs, task.hash);
91
- if (terminalOutput) {
92
- const outputPath = this.temporaryOutputPath(task);
93
- yield (0, fs_extra_1.writeFile)(outputPath, terminalOutput);
94
- }
95
- }));
96
- });
97
- }
98
- copyFilesFromCache(hash, cachedResult, outputs) {
99
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
100
- return this.tryAndRetry(() => tslib_1.__awaiter(this, void 0, void 0, function* () {
101
- yield this.removeRecordedOutputsHashes(outputs);
102
- yield Promise.all(outputs.map((f) => tslib_1.__awaiter(this, void 0, void 0, function* () {
103
- const cached = (0, path_1.join)(cachedResult.outputsPath, f);
104
- if (yield (0, fs_extra_1.pathExists)(cached)) {
105
- const isFile = (yield (0, fs_extra_1.lstat)(cached)).isFile();
106
- const src = (0, path_1.join)(this.root, f);
107
- yield this.remove(src);
108
- // Ensure parent directory is created if src is a file
109
- const directory = isFile ? (0, path_1.resolve)(src, '..') : src;
110
- yield (0, fs_extra_1.mkdir)(directory, { recursive: true });
111
- yield this.copy(cached, src);
112
- }
113
- })));
114
- yield this.recordOutputsHash(outputs, hash);
115
- }));
116
- });
117
- }
118
- temporaryOutputPath(task) {
119
- return (0, path_1.join)(this.terminalOutputsDir, task.hash);
120
- }
121
- removeRecordedOutputsHashes(outputs) {
122
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
123
- for (const output of outputs) {
124
- const hashFile = this.getFileNameWithLatestRecordedHashForOutput(output);
125
- try {
126
- yield (0, fs_extra_1.unlink)(hashFile);
127
- }
128
- catch (_a) { }
129
- }
130
- });
131
- }
132
- shouldCopyOutputsFromCache(taskWithCachedResult, outputs) {
133
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
134
- return ((yield this.areLatestOutputsHashesDifferentThanTaskHash(outputs, taskWithCachedResult.task.hash)) ||
135
- (yield this.isAnyOutputMissing(taskWithCachedResult.cachedResult, outputs)));
136
- });
137
- }
138
- copy(src, directory) {
139
- if (this.useFsExtraToCopyAndRemove) {
140
- return (0, fs_extra_1.copy)(src, directory);
141
- }
142
- return new Promise((res, rej) => {
143
- (0, child_process_1.execFile)('cp', ['-a', src, (0, path_1.dirname)(directory)], (error) => {
144
- if (!error) {
145
- res();
146
- }
147
- else {
148
- this.useFsExtraToCopyAndRemove = true;
149
- (0, fs_extra_1.copy)(src, directory).then(res, rej);
150
- }
151
- });
152
- });
153
- }
154
- remove(folder) {
155
- if (this.useFsExtraToCopyAndRemove) {
156
- return (0, fs_extra_1.remove)(folder);
157
- }
158
- return new Promise((res, rej) => {
159
- (0, child_process_1.execFile)('rm', ['-rf', folder], (error) => {
160
- if (!error) {
161
- res();
162
- }
163
- else {
164
- this.useFsExtraToCopyAndRemove = true;
165
- (0, fs_extra_1.remove)(folder).then(res, rej);
166
- }
167
- });
168
- });
169
- }
170
- recordOutputsHash(outputs, hash) {
171
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
172
- for (const output of outputs) {
173
- const hashFile = this.getFileNameWithLatestRecordedHashForOutput(output);
174
- try {
175
- yield (0, fs_extra_1.mkdir)((0, path_1.dirname)(hashFile), { recursive: true });
176
- yield (0, fs_extra_1.writeFile)(hashFile, hash);
177
- }
178
- catch (_a) { }
179
- }
180
- });
181
- }
182
- areLatestOutputsHashesDifferentThanTaskHash(outputs, hash) {
183
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
184
- for (let output of outputs) {
185
- if ((yield this.getLatestRecordedHashForTask(output)) !== hash)
186
- return true;
187
- }
188
- return false;
189
- });
190
- }
191
- getLatestRecordedHashForTask(output) {
192
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
193
- try {
194
- return yield (0, fs_extra_1.readFile)(this.getFileNameWithLatestRecordedHashForOutput(output), 'utf-8');
195
- }
196
- catch (_a) {
197
- return null;
198
- }
199
- });
200
- }
201
- isAnyOutputMissing(cachedResult, outputs) {
202
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
203
- for (let output of outputs) {
204
- const cacheOutputPath = (0, path_1.join)(cachedResult.outputsPath, output);
205
- const rootOutputPath = (0, path_1.join)(this.root, output);
206
- if ((yield (0, fs_extra_1.pathExists)(cacheOutputPath)) &&
207
- (yield (0, fs_extra_1.lstat)(cacheOutputPath)).isFile()) {
208
- return ((yield (0, fs_extra_1.pathExists)((0, path_1.join)(cachedResult.outputsPath, output))) &&
209
- !(yield (0, fs_extra_1.pathExists)((0, path_1.join)(this.root, output))));
210
- }
211
- const haveDifferentAmountOfFiles = (yield (0, fs_extra_1.pathExists)(cacheOutputPath)) &&
212
- (yield (0, fs_extra_1.pathExists)(rootOutputPath)) &&
213
- (yield (0, fs_extra_1.readdir)(cacheOutputPath)).length !==
214
- (yield (0, fs_extra_1.readdir)(rootOutputPath)).length;
215
- if (((yield (0, fs_extra_1.pathExists)(cacheOutputPath)) &&
216
- !(yield (0, fs_extra_1.pathExists)(rootOutputPath))) ||
217
- haveDifferentAmountOfFiles) {
218
- return true;
219
- }
220
- }
221
- return false;
222
- });
223
- }
224
- getFileNameWithLatestRecordedHashForOutput(output) {
225
- return (0, path_1.join)(this.latestOutputsHashesDir, `${output.split(path_1.sep).join('-')}.hash`);
226
- }
227
- getFromLocalDir(task) {
228
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
229
- const tdCommit = (0, path_1.join)(this.cachePath, `${task.hash}.commit`);
230
- const td = (0, path_1.join)(this.cachePath, task.hash);
231
- if (yield (0, fs_extra_1.pathExists)(tdCommit)) {
232
- const terminalOutput = yield (0, fs_extra_1.readFile)((0, path_1.join)(td, 'terminalOutput'), 'utf-8');
233
- let code = 0;
234
- try {
235
- code = Number(yield (0, fs_extra_1.readFile)((0, path_1.join)(td, 'code'), 'utf-8'));
236
- }
237
- catch (_a) { }
238
- return {
239
- terminalOutput,
240
- outputsPath: (0, path_1.join)(td, 'outputs'),
241
- code,
242
- };
243
- }
244
- else {
245
- return null;
246
- }
247
- });
248
- }
249
- createCacheDir() {
250
- (0, fs_extra_1.mkdirSync)(cache_directory_1.cacheDir, { recursive: true });
251
- return cache_directory_1.cacheDir;
252
- }
253
- createTerminalOutputsDir() {
254
- const path = (0, path_1.join)(this.cachePath, 'terminalOutputs');
255
- (0, fs_extra_1.mkdirSync)(path, { recursive: true });
256
- return path;
257
- }
258
- ensureLatestOutputsHashesDir() {
259
- const path = (0, path_1.join)(this.cachePath, 'latestOutputsHashes');
260
- (0, fs_extra_1.mkdirSync)(path, { recursive: true });
261
- return path;
262
- }
263
- tryAndRetry(fn) {
264
- let attempts = 0;
265
- const baseTimeout = 100;
266
- const _try = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
267
- try {
268
- attempts++;
269
- return yield fn();
270
- }
271
- catch (e) {
272
- if (attempts === 10) {
273
- // After enough attempts, throw the error
274
- throw e;
275
- }
276
- yield new Promise((res) => setTimeout(res, baseTimeout * attempts));
277
- return yield _try();
278
- }
279
- });
280
- return _try();
281
- }
282
- }
283
- exports.Cache = Cache;
284
- //# sourceMappingURL=cache.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/tasks-runner/cache.ts"],"names":[],"mappings":";;;;AAAA,oDAAoD;AAEpD,uCAWkB;AAClB,+BAAmD;AAEnD,iDAAgD;AAChD,kEAAwD;AACxD,2BAA8B;AAU9B,MAAa,KAAK;IAOhB,YAA6B,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;QAN/D,SAAI,GAAG,sBAAW,CAAC;QACnB,cAAS,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAClC,uBAAkB,GAAG,IAAI,CAAC,wBAAwB,EAAE,CAAC;QACrD,2BAAsB,GAAG,IAAI,CAAC,4BAA4B,EAAE,CAAC;QAC7D,8BAAyB,GAAG,IAAA,aAAQ,GAAE,KAAK,OAAO,CAAC;IAEe,CAAC;IAEnE,qBAAqB;QACnB;;;WAGG;QACH,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,kBAAkB,EAAE;YACtB,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAChC,8DAA8D,EAC9D,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACvB,CAAC;YAEF,IAAI;gBACF,MAAM,CAAC,GAAG,IAAA,qBAAK,EAAC,MAAM,EAAE,CAAC,UAAU,EAAE,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE;oBAC3D,KAAK,EAAE,QAAQ;oBACf,QAAQ,EAAE,IAAI;iBACf,CAAC,CAAC;gBACH,CAAC,CAAC,KAAK,EAAE,CAAC;aACX;YAAC,OAA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AAC,CAAA,CAAC;QACF,OAAO,IAAI,EAAE,CAAC;IAChB,CAAC;CACF;AAzUD,sBAyUC"}
@@ -1,11 +0,0 @@
1
- import type { 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 DefaultReporter implements Reporter {
8
- private projectNames;
9
- beforeRun(projectNames: string[], tasks: Task[], args: ReporterArgs, taskOverrides: any): void;
10
- printResults(args: ReporterArgs, startedWithFailedProjects: boolean, tasks: Task[], failedTasks: Task[], tasksWithFailedDependencies: Task[], cachedTasks: Task[]): void;
11
- }
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultReporter = void 0;
4
- const output_1 = require("../utilities/output");
5
- /**
6
- * @deprecated the reporter API is no longer supported
7
- * The class will be removed after Nx 14 is released.
8
- */
9
- class DefaultReporter {
10
- beforeRun(projectNames, tasks, args, taskOverrides) {
11
- this.projectNames = projectNames;
12
- if (projectNames.length <= 0) {
13
- let description = `with "${args.target}"`;
14
- if (args.configuration) {
15
- description += ` that are configured for "${args.configuration}"`;
16
- }
17
- output_1.output.logSingleLine(`No projects ${description} were run`);
18
- return;
19
- }
20
- const bodyLines = projectNames.map((affectedProject) => `${output_1.output.colors.gray('-')} ${affectedProject}`);
21
- if (Object.keys(taskOverrides).length > 0) {
22
- bodyLines.push('');
23
- bodyLines.push(`${output_1.output.colors.gray('With flags:')}`);
24
- Object.entries(taskOverrides)
25
- .map(([flag, value]) => ` --${flag}=${value}`)
26
- .forEach((arg) => bodyLines.push(arg));
27
- }
28
- let title = `${output_1.output.colors.gray('Running target')} ${args.target} ${output_1.output.colors.gray(`for`)} ${projectNames.length} project(s)`;
29
- const dependentTasksCount = tasks.length - projectNames.length;
30
- if (dependentTasksCount > 0) {
31
- title += ` ${output_1.output.colors.gray(`and`)} ${tasks.length - projectNames.length} task(s) ${output_1.output.colors.gray(`they depend on`)}`;
32
- }
33
- title += ':';
34
- output_1.output.log({
35
- title,
36
- bodyLines,
37
- });
38
- output_1.output.addVerticalSeparatorWithoutNewLines();
39
- }
40
- printResults(args, startedWithFailedProjects, tasks, failedTasks, tasksWithFailedDependencies, cachedTasks) {
41
- output_1.output.addNewline();
42
- output_1.output.addVerticalSeparatorWithoutNewLines();
43
- if (failedTasks.length === 0) {
44
- const bodyLines = cachedTasks.length > 0
45
- ? [
46
- output_1.output.colors.gray(`Nx read the output from cache instead of running the command for ${cachedTasks.length} out of ${tasks.length} tasks.`),
47
- ]
48
- : [];
49
- output_1.output.success({
50
- title: `Running target "${args.target}" succeeded`,
51
- bodyLines,
52
- });
53
- if (args.onlyFailed && startedWithFailedProjects) {
54
- output_1.output.warn({
55
- title: `Only projects ${output_1.output.underline('which had previously failed')} were run`,
56
- bodyLines: [
57
- `You should verify by running ${output_1.output.underline('without')} ${output_1.output.bold('--only-failed')}`,
58
- ],
59
- });
60
- }
61
- }
62
- else {
63
- const bodyLines = [];
64
- if (tasksWithFailedDependencies.length > 0) {
65
- bodyLines.push(output_1.output.colors.gray('Tasks not run because their dependencies failed:'), '', ...tasksWithFailedDependencies.map((task) => `${output_1.output.colors.gray('-')} ${task.id}`), '');
66
- }
67
- bodyLines.push(output_1.output.colors.gray('Failed tasks:'), '', ...failedTasks.map((task) => `${output_1.output.colors.gray('-')} ${task.id}`));
68
- if (!args.onlyFailed && !startedWithFailedProjects) {
69
- bodyLines.push('', `${output_1.output.colors.gray('You can isolate the above projects by passing:')} ${output_1.output.bold('--only-failed')}`);
70
- }
71
- output_1.output.error({
72
- title: `Running target "${args.target}" failed`,
73
- bodyLines,
74
- });
75
- }
76
- }
77
- }
78
- exports.DefaultReporter = DefaultReporter;
79
- //# sourceMappingURL=default-reporter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-reporter.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/tasks-runner/default-reporter.ts"],"names":[],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ACT,gCAAgC,eAAM,CAAC,SAAS,CAC9C,SAAS,CACV,IAAI,eAAM,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE;qBACpC;iBACF,CAAC,CAAC;aACJ;SACF;aAAM;YACL,MAAM,SAAS,GAAG,EAAE,CAAC;YACrB,IAAI,2BAA2B,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC1C,SAAS,CAAC,IAAI,CACZ,eAAM,CAAC,MAAM,CAAC,IAAI,CAChB,kDAAkD,CACnD,EACD,EAAE,EACF,GAAG,2BAA2B,CAAC,GAAG,CAChC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,eAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,EAAE,EAAE,CAClD,EACD,EAAE,CACH,CAAC;aACH;YACD,SAAS,CAAC,IAAI,CACZ,eAAM,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,EACnC,EAAE,EACF,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,eAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC,CACtE,CAAC;YACF,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,yBAAyB,EAAE;gBAClD,SAAS,CAAC,IAAI,CACZ,EAAE,EACF,GAAG,eAAM,CAAC,MAAM,CAAC,IAAI,CACnB,gDAAgD,CACjD,IAAI,eAAM,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CACpC,CAAC;aACH;YACD,eAAM,CAAC,KAAK,CAAC;gBACX,KAAK,EAAE,mBAAmB,IAAI,CAAC,MAAM,UAAU;gBAC/C,SAAS;aACV,CAAC,CAAC;SACJ;IACH,CAAC;CACF;AAzHD,0CAyHC"}
@@ -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,YAAY,EAAE,CAAC;IACjC,IAAI;QACF,OAAO,MAAM,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;KACnD;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACnC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;YAAS;QACR,OAAO,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;KAChC;AACH,CAAC,CAAA,CAAC;AAnCW,QAAA,kBAAkB,sBAmC7B;AAEF,SAAe,WAAW,CACxB,KAAa,EACb,OAAkC,EAClC,OAIC;;;QAED,MAAM,yBAAyB,GAAG,MAAA,OAAO,CAAC,MAAM,CAAC,kBAAkB,mCAAI,EAAE,CAAC;QAE1E,MAAM,gBAAgB,GAAG,IAAI,qCAAgB,CAC3C,OAAO,CAAC,YAAY,EACpB,yBAAyB,CAC1B,CAAC;QAEF,MAAM,SAAS,GAAG,gBAAgB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QAE1D,wBAAW,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAEvC,wBAAW,CAAC,OAAO,CAAC,cAAc,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC;QACxE,wBAAW,CAAC,OAAO,CACjB,gBAAgB,EAChB,0BAA0B,EAC1B,oBAAoB,CACrB,CAAC;QAEF,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAEzE,MAAM,YAAY,GAAG,IAAI,oCAAgB,CACvC,MAAM,EACN,OAAO,CAAC,iBAAiB,EACzB,OAAO,CAAC,YAAY,EACpB,SAAS,EACT,OAAO,CACR,CAAC;QAEF,OAAO,YAAY,CAAC,GAAG,EAAE,CAAC;;CAC3B;AAED,kBAAe,0BAAkB,CAAC"}
@@ -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
- }