@ohos-ports/nx 19.8.4-beta.2 → 20.8.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/.eslintrc.json +146 -0
  2. package/LICENSE +1 -1
  3. package/bin/init-local.js +0 -39
  4. package/bin/nx.js +28 -15
  5. package/bin/post-install.js +7 -5
  6. package/migrations.json +11 -37
  7. package/ohos-build/build-Cargo.toml.patch +12 -0
  8. package/ohos-build/build-cargo-config.patch +20 -0
  9. package/ohos-build/index.js.patch +18 -0
  10. package/ohos-build/native-bindings.js.patch +25 -0
  11. package/ohos-build/nix-0.25.1-ohos.patch +539 -0
  12. package/ohos-build/nix-0.27.1-ohos.patch +436 -0
  13. package/package.json +25 -62
  14. package/plugins/package-json.d.ts +5 -1
  15. package/plugins/package-json.js +27 -2
  16. package/release/changelog-renderer/index.d.ts +102 -0
  17. package/release/changelog-renderer/index.js +339 -0
  18. package/release/index.d.ts +4 -0
  19. package/release/index.js +13 -0
  20. package/schemas/nx-schema.json +964 -0
  21. package/schemas/project-schema.json +331 -0
  22. package/schemas/workspace-schema.json +185 -0
  23. package/src/adapter/angular-json.js +2 -8
  24. package/src/adapter/compat.d.ts +1 -1
  25. package/src/adapter/compat.js +3 -1
  26. package/src/adapter/ngcli-adapter.js +7 -7
  27. package/src/command-line/add/add.js +21 -48
  28. package/src/command-line/affected/affected.js +3 -3
  29. package/src/command-line/connect/view-logs.js +1 -1
  30. package/src/command-line/examples.js +0 -4
  31. package/src/command-line/exec/exec.js +3 -3
  32. package/src/command-line/format/command-object.js +9 -0
  33. package/src/command-line/format/format.js +10 -6
  34. package/src/command-line/generate/command-object.js +1 -2
  35. package/src/command-line/generate/generate.d.ts +1 -1
  36. package/src/command-line/generate/generate.js +3 -1
  37. package/src/command-line/generate/generator-utils.js +10 -5
  38. package/src/command-line/graph/graph.js +6 -9
  39. package/src/command-line/import/import.js +110 -71
  40. package/src/command-line/init/command-object.js +25 -9
  41. package/src/command-line/init/configure-plugins.d.ts +34 -0
  42. package/src/command-line/init/configure-plugins.js +203 -0
  43. package/src/command-line/init/implementation/add-nx-to-turborepo.d.ts +4 -0
  44. package/src/command-line/init/implementation/add-nx-to-turborepo.js +49 -0
  45. package/src/command-line/init/implementation/angular/integrated-workspace.js +1 -1
  46. package/src/command-line/init/implementation/angular/legacy-angular-versions.js +4 -3
  47. package/src/command-line/init/implementation/angular/standalone-workspace.js +8 -5
  48. package/src/command-line/init/implementation/check-compatible-with-plugins.d.ts +15 -0
  49. package/src/command-line/init/implementation/check-compatible-with-plugins.js +134 -0
  50. package/src/command-line/init/implementation/deduce-default-base.d.ts +1 -0
  51. package/src/command-line/init/implementation/deduce-default-base.js +53 -0
  52. package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +1 -1
  53. package/src/command-line/init/implementation/dot-nx/nxw.js +1 -1
  54. package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.js +6 -4
  55. package/src/command-line/init/implementation/react/check-for-uncommitted-changes.js +1 -1
  56. package/src/command-line/init/implementation/react/index.d.ts +1 -1
  57. package/src/command-line/init/implementation/react/index.js +33 -186
  58. package/src/command-line/init/implementation/react/write-vite-config.js +19 -3
  59. package/src/command-line/init/implementation/utils.d.ts +6 -2
  60. package/src/command-line/init/implementation/utils.js +116 -37
  61. package/src/command-line/init/init-v1.js +2 -2
  62. package/src/command-line/init/init-v2.d.ts +2 -2
  63. package/src/command-line/init/init-v2.js +73 -55
  64. package/src/command-line/login/login.js +3 -0
  65. package/src/command-line/logout/logout.js +3 -0
  66. package/src/command-line/migrate/command-object.js +2 -96
  67. package/src/command-line/migrate/migrate.d.ts +1 -0
  68. package/src/command-line/migrate/migrate.js +111 -19
  69. package/src/command-line/nx-commands.js +20 -6
  70. package/src/command-line/register/command-object.d.ts +6 -0
  71. package/src/command-line/{activate-powerpack → register}/command-object.js +9 -9
  72. package/src/command-line/register/register.d.ts +2 -0
  73. package/src/command-line/register/register.js +9 -0
  74. package/src/command-line/release/changelog.d.ts +5 -4
  75. package/src/command-line/release/changelog.js +64 -79
  76. package/src/command-line/release/command-object.d.ts +7 -4
  77. package/src/command-line/release/command-object.js +24 -13
  78. package/src/command-line/release/config/config.d.ts +8 -7
  79. package/src/command-line/release/config/config.js +173 -43
  80. package/src/command-line/release/config/conventional-commits.js +7 -0
  81. package/src/command-line/release/config/filter-release-groups.d.ts +4 -0
  82. package/src/command-line/release/config/filter-release-groups.js +10 -3
  83. package/src/command-line/release/config/use-legacy-versioning.d.ts +2 -0
  84. package/src/command-line/release/config/use-legacy-versioning.js +9 -0
  85. package/src/command-line/release/config/version-plans.js +1 -1
  86. package/src/command-line/release/index.d.ts +9 -2
  87. package/src/command-line/release/index.js +6 -1
  88. package/src/command-line/release/plan-check.js +6 -3
  89. package/src/command-line/release/plan.js +8 -4
  90. package/src/command-line/release/publish.d.ts +6 -1
  91. package/src/command-line/release/publish.js +50 -27
  92. package/src/command-line/release/release.js +33 -20
  93. package/src/command-line/release/utils/batch-projects-by-generator-config.js +6 -3
  94. package/src/command-line/release/utils/exec-command.js +1 -1
  95. package/src/command-line/release/utils/git.d.ts +3 -2
  96. package/src/command-line/release/utils/git.js +104 -19
  97. package/src/command-line/release/utils/github.d.ts +1 -0
  98. package/src/command-line/release/utils/github.js +6 -2
  99. package/src/command-line/release/utils/launch-editor.js +2 -2
  100. package/src/command-line/release/utils/resolve-changelog-renderer.d.ts +2 -2
  101. package/src/command-line/release/utils/resolve-changelog-renderer.js +3 -3
  102. package/src/command-line/release/utils/resolve-semver-specifier.d.ts +2 -1
  103. package/src/command-line/release/utils/resolve-semver-specifier.js +2 -1
  104. package/src/command-line/release/utils/semver.d.ts +8 -0
  105. package/src/command-line/release/utils/semver.js +8 -0
  106. package/src/command-line/release/utils/shared-legacy.d.ts +25 -0
  107. package/src/command-line/release/utils/shared-legacy.js +2 -0
  108. package/src/command-line/release/utils/shared.d.ts +11 -17
  109. package/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts +7 -0
  110. package/src/command-line/release/version/derive-specifier-from-conventional-commits.js +47 -0
  111. package/src/command-line/release/version/deriver-specifier-from-version-plans.d.ts +8 -0
  112. package/src/command-line/release/version/deriver-specifier-from-version-plans.js +59 -0
  113. package/src/command-line/release/version/project-logger.d.ts +8 -0
  114. package/src/command-line/release/version/project-logger.js +45 -0
  115. package/src/command-line/release/version/release-group-processor.d.ts +251 -0
  116. package/src/command-line/release/version/release-group-processor.js +1048 -0
  117. package/src/command-line/release/version/resolve-current-version.d.ts +32 -0
  118. package/src/command-line/release/version/resolve-current-version.js +241 -0
  119. package/src/command-line/release/version/test-utils.d.ts +95 -0
  120. package/src/command-line/release/version/test-utils.js +416 -0
  121. package/src/command-line/release/version/topological-sort.d.ts +9 -0
  122. package/src/command-line/release/version/topological-sort.js +41 -0
  123. package/src/command-line/release/version/version-actions.d.ts +170 -0
  124. package/src/command-line/release/version/version-actions.js +183 -0
  125. package/src/command-line/release/version-legacy.d.ts +46 -0
  126. package/src/command-line/release/version-legacy.js +453 -0
  127. package/src/command-line/release/version.d.ts +0 -40
  128. package/src/command-line/release/version.js +93 -255
  129. package/src/command-line/report/report.d.ts +7 -3
  130. package/src/command-line/report/report.js +52 -16
  131. package/src/command-line/run/executor-utils.js +4 -4
  132. package/src/command-line/run/run-one.js +37 -15
  133. package/src/command-line/run/run.js +1 -2
  134. package/src/command-line/run-many/run-many.js +1 -4
  135. package/src/command-line/show/project.js +25 -3
  136. package/src/command-line/show/projects.js +4 -0
  137. package/src/command-line/sync/sync.js +3 -3
  138. package/src/command-line/watch/watch.js +1 -1
  139. package/src/command-line/yargs-utils/shared-options.d.ts +4 -0
  140. package/src/command-line/yargs-utils/shared-options.js +26 -0
  141. package/src/config/misc-interfaces.d.ts +3 -15
  142. package/src/config/nx-json.d.ts +145 -19
  143. package/src/config/project-graph.d.ts +4 -4
  144. package/src/config/project-graph.js +8 -0
  145. package/src/config/schema-utils.d.ts +4 -3
  146. package/src/config/schema-utils.js +71 -4
  147. package/src/config/workspace-json-project-json.d.ts +23 -2
  148. package/src/core/graph/main.js +1 -1
  149. package/src/core/graph/runtime.js +1 -1
  150. package/src/core/graph/styles.css +2 -2
  151. package/src/core/graph/styles.js +1 -1
  152. package/src/daemon/client/client.d.ts +5 -0
  153. package/src/daemon/client/client.js +42 -4
  154. package/src/daemon/client/generate-help-output.js +1 -1
  155. package/src/daemon/message-types/glob.d.ts +7 -0
  156. package/src/daemon/message-types/glob.js +9 -1
  157. package/src/daemon/message-types/hash-glob.d.ts +6 -0
  158. package/src/daemon/message-types/hash-glob.js +9 -1
  159. package/src/daemon/message-types/run-tasks-execution-hooks.d.ts +13 -0
  160. package/src/daemon/message-types/run-tasks-execution-hooks.js +19 -0
  161. package/src/daemon/server/handle-glob.d.ts +1 -0
  162. package/src/daemon/server/handle-glob.js +8 -0
  163. package/src/daemon/server/handle-hash-glob.d.ts +1 -0
  164. package/src/daemon/server/handle-hash-glob.js +8 -0
  165. package/src/daemon/server/handle-hash-tasks.js +1 -1
  166. package/src/daemon/server/handle-tasks-execution-hooks.d.ts +19 -0
  167. package/src/daemon/server/handle-tasks-execution-hooks.js +35 -0
  168. package/src/daemon/server/logger.js +2 -1
  169. package/src/daemon/server/project-graph-incremental-recomputation.js +5 -5
  170. package/src/daemon/server/server.js +26 -2
  171. package/src/daemon/server/shutdown-utils.js +4 -2
  172. package/src/devkit-exports.d.ts +10 -7
  173. package/src/devkit-exports.js +4 -6
  174. package/src/devkit-internals.d.ts +4 -2
  175. package/src/devkit-internals.js +8 -3
  176. package/src/executors/run-commands/run-commands.impl.d.ts +1 -0
  177. package/src/executors/run-commands/run-commands.impl.js +11 -4
  178. package/src/executors/run-commands/schema.json +14 -0
  179. package/src/executors/run-script/run-script.impl.js +1 -1
  180. package/src/executors/utils/convert-nx-executor.js +2 -4
  181. package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +8 -0
  182. package/src/generators/testing-utils/create-tree.js +5 -1
  183. package/src/generators/utils/nx-json.d.ts +1 -1
  184. package/src/generators/utils/project-configuration.js +15 -4
  185. package/src/hasher/create-task-hasher.js +1 -1
  186. package/src/hasher/file-hasher.d.ts +1 -0
  187. package/src/hasher/file-hasher.js +5 -0
  188. package/src/hasher/hash-task.js +1 -1
  189. package/src/hasher/task-hasher.d.ts +2 -6
  190. package/src/hasher/task-hasher.js +6 -32
  191. package/src/migrations/update-20-0-0/move-use-daemon-process.d.ts +2 -0
  192. package/src/migrations/update-20-0-0/move-use-daemon-process.js +25 -0
  193. package/src/migrations/update-20-0-1/use-legacy-cache.d.ts +2 -0
  194. package/src/migrations/update-20-0-1/use-legacy-cache.js +20 -0
  195. package/src/native/index.d.ts +49 -20
  196. package/src/native/index.js +18 -3
  197. package/src/native/native-bindings.js +12 -2
  198. package/src/native/nx.openharmony-arm64.node +0 -0
  199. package/src/native/nx.wasi-browser.js +11 -8
  200. package/src/native/nx.wasi.cjs +11 -8
  201. package/src/native/nx.wasm32-wasi.wasm +0 -0
  202. package/src/native/tests/__fixtures__/file-lock.fixture.js +20 -0
  203. package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +3 -2
  204. package/src/nx-cloud/update-manager.js +13 -1
  205. package/src/plugins/js/index.js +2 -2
  206. package/src/plugins/js/lock-file/lock-file.js +28 -13
  207. package/src/plugins/js/lock-file/utils/package-json.d.ts +1 -1
  208. package/src/plugins/js/lock-file/utils/package-json.js +3 -1
  209. package/src/plugins/js/lock-file/yarn-parser.js +102 -44
  210. package/src/plugins/js/project-graph/affected/lock-file-changes.js +1 -0
  211. package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +2 -2
  212. package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +6 -20
  213. package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +1 -1
  214. package/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts +14 -2
  215. package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +81 -19
  216. package/src/plugins/js/utils/config.js +2 -9
  217. package/src/plugins/js/utils/packages.d.ts +8 -0
  218. package/src/plugins/js/utils/packages.js +91 -0
  219. package/src/plugins/js/utils/register.d.ts +5 -1
  220. package/src/plugins/js/utils/register.js +2 -1
  221. package/src/plugins/js/utils/typescript.d.ts +1 -0
  222. package/src/plugins/js/utils/typescript.js +4 -3
  223. package/src/plugins/js/versions.d.ts +1 -1
  224. package/src/plugins/js/versions.js +1 -1
  225. package/src/plugins/package-json/create-nodes.d.ts +7 -8
  226. package/src/plugins/package-json/create-nodes.js +34 -12
  227. package/src/project-graph/affected/affected-project-graph.js +3 -0
  228. package/src/project-graph/affected/locators/project-glob-changes.js +16 -4
  229. package/src/project-graph/build-project-graph.d.ts +2 -1
  230. package/src/project-graph/build-project-graph.js +66 -43
  231. package/src/project-graph/error-types.d.ts +15 -12
  232. package/src/project-graph/error-types.js +109 -23
  233. package/src/project-graph/file-utils.d.ts +3 -3
  234. package/src/project-graph/file-utils.js +8 -7
  235. package/src/project-graph/nx-deps-cache.d.ts +6 -3
  236. package/src/project-graph/nx-deps-cache.js +66 -11
  237. package/src/project-graph/plugins/get-plugins.d.ts +4 -0
  238. package/src/project-graph/plugins/get-plugins.js +144 -0
  239. package/src/project-graph/plugins/in-process-loader.d.ts +10 -0
  240. package/src/project-graph/plugins/in-process-loader.js +60 -0
  241. package/src/project-graph/plugins/index.d.ts +2 -1
  242. package/src/project-graph/plugins/index.js +5 -3
  243. package/src/project-graph/plugins/isolation/enabled.d.ts +1 -0
  244. package/src/project-graph/plugins/isolation/enabled.js +19 -0
  245. package/src/project-graph/plugins/isolation/index.d.ts +2 -2
  246. package/src/project-graph/plugins/isolation/index.js +1 -7
  247. package/src/project-graph/plugins/isolation/messaging.d.ts +39 -21
  248. package/src/project-graph/plugins/isolation/messaging.js +5 -1
  249. package/src/project-graph/plugins/isolation/plugin-pool.d.ts +1 -1
  250. package/src/project-graph/plugins/isolation/plugin-pool.js +58 -49
  251. package/src/project-graph/plugins/isolation/plugin-worker.js +79 -29
  252. package/src/project-graph/plugins/load-resolved-plugin.d.ts +3 -0
  253. package/src/project-graph/plugins/load-resolved-plugin.js +22 -0
  254. package/src/project-graph/plugins/loaded-nx-plugin.d.ts +20 -0
  255. package/src/project-graph/plugins/loaded-nx-plugin.js +80 -0
  256. package/src/project-graph/plugins/public-api.d.ts +32 -13
  257. package/src/project-graph/plugins/resolve-plugin.d.ts +15 -0
  258. package/src/project-graph/plugins/resolve-plugin.js +134 -0
  259. package/src/project-graph/plugins/tasks-execution-hooks.d.ts +3 -0
  260. package/src/project-graph/plugins/tasks-execution-hooks.js +65 -0
  261. package/src/project-graph/plugins/transpiler.d.ts +8 -0
  262. package/src/project-graph/plugins/transpiler.js +47 -0
  263. package/src/project-graph/plugins/utils.d.ts +2 -8
  264. package/src/project-graph/plugins/utils.js +2 -39
  265. package/src/project-graph/project-graph.d.ts +3 -1
  266. package/src/project-graph/project-graph.js +86 -20
  267. package/src/project-graph/utils/project-configuration-utils.d.ts +2 -2
  268. package/src/project-graph/utils/project-configuration-utils.js +55 -25
  269. package/src/project-graph/utils/retrieve-workspace-files.d.ts +3 -7
  270. package/src/project-graph/utils/retrieve-workspace-files.js +17 -23
  271. package/src/tasks-runner/batch/batch-messages.d.ts +2 -0
  272. package/src/tasks-runner/batch/run-batch.js +2 -4
  273. package/src/tasks-runner/cache.d.ts +22 -4
  274. package/src/tasks-runner/cache.js +160 -18
  275. package/src/tasks-runner/create-task-graph.d.ts +13 -1
  276. package/src/tasks-runner/create-task-graph.js +50 -22
  277. package/src/tasks-runner/default-tasks-runner.d.ts +1 -0
  278. package/src/tasks-runner/default-tasks-runner.js +20 -2
  279. package/src/tasks-runner/forked-process-task-runner.d.ts +4 -1
  280. package/src/tasks-runner/forked-process-task-runner.js +62 -40
  281. package/src/tasks-runner/init-tasks-runner.js +0 -2
  282. package/src/tasks-runner/life-cycle.d.ts +7 -0
  283. package/src/tasks-runner/run-command.d.ts +2 -4
  284. package/src/tasks-runner/run-command.js +51 -18
  285. package/src/tasks-runner/task-graph-utils.d.ts +11 -0
  286. package/src/tasks-runner/task-graph-utils.js +23 -0
  287. package/src/tasks-runner/task-orchestrator.js +14 -4
  288. package/src/tasks-runner/utils.js +2 -0
  289. package/src/utils/ab-testing.js +1 -1
  290. package/src/utils/assert-workspace-validity.js +4 -0
  291. package/src/utils/child-process.d.ts +4 -0
  292. package/src/utils/child-process.js +23 -30
  293. package/src/utils/command-line-utils.d.ts +5 -3
  294. package/src/utils/command-line-utils.js +37 -57
  295. package/src/utils/db-connection.d.ts +2 -1
  296. package/src/utils/db-connection.js +7 -0
  297. package/src/utils/default-base.js +1 -1
  298. package/src/utils/delayed-spinner.d.ts +42 -0
  299. package/src/utils/delayed-spinner.js +80 -0
  300. package/src/utils/find-matching-projects.js +13 -1
  301. package/src/utils/git-utils.index-filter.js +2 -2
  302. package/src/utils/git-utils.js +4 -4
  303. package/src/utils/git-utils.tree-filter.js +1 -1
  304. package/src/utils/handle-errors.js +24 -13
  305. package/src/utils/is-ci.js +4 -1
  306. package/src/utils/is-using-prettier.d.ts +3 -0
  307. package/src/utils/is-using-prettier.js +62 -0
  308. package/src/utils/nx-cloud-utils.js +3 -0
  309. package/src/utils/nx-key.d.ts +7 -0
  310. package/src/utils/nx-key.js +52 -0
  311. package/src/utils/package-json.d.ts +5 -1
  312. package/src/utils/package-json.js +9 -3
  313. package/src/utils/package-manager.d.ts +14 -0
  314. package/src/utils/package-manager.js +89 -3
  315. package/src/utils/path.js +1 -1
  316. package/src/utils/plugins/core-plugins.js +4 -0
  317. package/src/utils/plugins/plugin-capabilities.js +4 -5
  318. package/src/utils/print-help.js +3 -9
  319. package/src/utils/require-nx-key.d.ts +1 -0
  320. package/src/utils/require-nx-key.js +22 -0
  321. package/src/utils/sync-generators.js +9 -14
  322. package/src/utils/task-history.d.ts +1 -1
  323. package/src/utils/task-history.js +2 -2
  324. package/src/utils/workspace-context.d.ts +2 -0
  325. package/src/utils/workspace-context.js +16 -0
  326. package/tasks-runners/default.d.ts +1 -0
  327. package/tasks-runners/default.js +5 -0
  328. package/src/command-line/activate-powerpack/activate-powerpack.d.ts +0 -2
  329. package/src/command-line/activate-powerpack/activate-powerpack.js +0 -34
  330. package/src/command-line/activate-powerpack/command-object.d.ts +0 -6
  331. package/src/command-line/import/utils/needs-install.d.ts +0 -3
  332. package/src/command-line/import/utils/needs-install.js +0 -31
  333. package/src/command-line/init/implementation/react/write-craco-config.d.ts +0 -1
  334. package/src/command-line/init/implementation/react/write-craco-config.js +0 -61
  335. package/src/daemon/server/plugins.d.ts +0 -3
  336. package/src/daemon/server/plugins.js +0 -32
  337. package/src/hasher/node-task-hasher-impl.d.ts +0 -48
  338. package/src/hasher/node-task-hasher-impl.js +0 -449
  339. package/src/migrations/update-15-0-0/migrate-to-inputs.d.ts +0 -2
  340. package/src/migrations/update-15-0-0/migrate-to-inputs.js +0 -102
  341. package/src/migrations/update-15-0-0/prefix-outputs.d.ts +0 -2
  342. package/src/migrations/update-15-0-0/prefix-outputs.js +0 -49
  343. package/src/migrations/update-16-0-0/remove-nrwl-cli.d.ts +0 -2
  344. package/src/migrations/update-16-0-0/remove-nrwl-cli.js +0 -16
  345. package/src/migrations/update-16-0-0/update-depends-on-to-tokens.d.ts +0 -2
  346. package/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +0 -97
  347. package/src/migrations/update-16-0-0/update-nx-cloud-runner.d.ts +0 -2
  348. package/src/migrations/update-16-0-0/update-nx-cloud-runner.js +0 -29
  349. package/src/migrations/update-16-2-0/remove-run-commands-output-path.d.ts +0 -2
  350. package/src/migrations/update-16-2-0/remove-run-commands-output-path.js +0 -45
  351. package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.d.ts +0 -12
  352. package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.js +0 -67
  353. package/src/migrations/update-16-9-0/remove-project-name-and-root-format.d.ts +0 -2
  354. package/src/migrations/update-16-9-0/remove-project-name-and-root-format.js +0 -21
  355. package/src/native/nx.ohos-arm64.node +0 -0
  356. package/src/project-graph/plugins/internal-api.d.ts +0 -29
  357. package/src/project-graph/plugins/internal-api.js +0 -134
  358. package/src/project-graph/plugins/loader.d.ts +0 -24
  359. package/src/project-graph/plugins/loader.js +0 -220
  360. package/src/utils/app-root.d.ts +0 -8
  361. package/src/utils/app-root.js +0 -12
  362. package/src/utils/nx-plugin.deprecated.d.ts +0 -31
  363. package/src/utils/nx-plugin.deprecated.js +0 -20
  364. package/src/utils/powerpack.d.ts +0 -5
  365. package/src/utils/powerpack.js +0 -33
  366. package/src/utils/workspace-configuration-check.d.ts +0 -1
  367. package/src/utils/workspace-configuration-check.js +0 -36
@@ -0,0 +1,436 @@
1
+ diff -ruN a/patched-crates/nix-0.27.1/src/fcntl.rs b/patched-crates/nix-0.27.1/src/fcntl.rs
2
+ --- a/patched-crates/nix-0.27.1/src/fcntl.rs 2006-07-24 09:21:28.000000000 +0800
3
+ +++ b/patched-crates/nix-0.27.1/src/fcntl.rs 2026-11-13 17:20:22.696118125 +0800
4
+ @@ -115,7 +115,7 @@
5
+ #[cfg(any(target_os = "dragonfly",
6
+ target_os = "freebsd",
7
+ target_os = "ios",
8
+ - all(target_os = "linux", not(target_env = "musl")),
9
+ + all(target_os = "linux", not(any(target_env = "musl", target_env = "ohos"))),
10
+ target_os = "macos",
11
+ target_os = "netbsd",
12
+ target_os = "openbsd",
13
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/ioctl/linux.rs b/patched-crates/nix-0.27.1/src/sys/ioctl/linux.rs
14
+ --- a/patched-crates/nix-0.27.1/src/sys/ioctl/linux.rs 2006-07-24 09:21:28.000000000 +0800
15
+ +++ b/patched-crates/nix-0.27.1/src/sys/ioctl/linux.rs 2026-11-13 17:20:22.760103906 +0800
16
+ @@ -1,10 +1,10 @@
17
+ use cfg_if::cfg_if;
18
+
19
+ /// The datatype used for the ioctl number
20
+ -#[cfg(any(target_os = "android", target_env = "musl"))]
21
+ +#[cfg(any(target_os = "android", any(target_env = "musl", target_env = "ohos")))]
22
+ #[doc(hidden)]
23
+ pub type ioctl_num_type = ::libc::c_int;
24
+ -#[cfg(not(any(target_os = "android", target_env = "musl")))]
25
+ +#[cfg(not(any(target_os = "android", any(target_env = "musl", target_env = "ohos"))))]
26
+ #[doc(hidden)]
27
+ pub type ioctl_num_type = ::libc::c_ulong;
28
+ /// The datatype used for the 3rd argument
29
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/memfd.rs b/patched-crates/nix-0.27.1/src/sys/memfd.rs
30
+ --- a/patched-crates/nix-0.27.1/src/sys/memfd.rs 2006-07-24 09:21:28.000000000 +0800
31
+ +++ b/patched-crates/nix-0.27.1/src/sys/memfd.rs 2026-11-13 17:20:22.768100625 +0800
32
+ @@ -51,7 +51,7 @@
33
+ target_os = "freebsd",
34
+ // If the OS is Linux, gnu and musl expose a memfd_create symbol but not uclibc
35
+ target_env = "gnu",
36
+ - target_env = "musl",
37
+ + any(target_env = "musl", target_env = "ohos"),
38
+ )))]
39
+ {
40
+ libc::memfd_create(name.as_ptr(), flags.bits())
41
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/mman.rs b/patched-crates/nix-0.27.1/src/sys/mman.rs
42
+ --- a/patched-crates/nix-0.27.1/src/sys/mman.rs 2006-07-24 09:21:28.000000000 +0800
43
+ +++ b/patched-crates/nix-0.27.1/src/sys/mman.rs 2026-11-13 17:20:22.776098750 +0800
44
+ @@ -59,7 +59,7 @@
45
+ /// Put the mapping into the first 2GB of the process address space.
46
+ #[cfg(any(all(any(target_os = "android", target_os = "linux"),
47
+ any(target_arch = "x86", target_arch = "x86_64")),
48
+ - all(target_os = "linux", target_env = "musl", any(target_arch = "x86", target_arch = "x86_64")),
49
+ + all(target_os = "linux", any(target_env = "musl", target_env = "ohos"), any(target_arch = "x86", target_arch = "x86_64")),
50
+ all(target_os = "freebsd", target_pointer_width = "64")))]
51
+ #[cfg_attr(docsrs, doc(cfg(all())))]
52
+ MAP_32BIT;
53
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/personality.rs b/patched-crates/nix-0.27.1/src/sys/personality.rs
54
+ --- a/patched-crates/nix-0.27.1/src/sys/personality.rs 2006-07-24 09:21:28.000000000 +0800
55
+ +++ b/patched-crates/nix-0.27.1/src/sys/personality.rs 2026-11-13 17:20:22.780098437 +0800
56
+ @@ -20,7 +20,7 @@
57
+ /// [`mmap(2)`]: https://man7.org/linux/man-pages/man2/mmap.2.html
58
+ ADDR_LIMIT_3GB;
59
+ /// User-space function pointers to signal handlers point to descriptors.
60
+ - #[cfg(not(any(target_env = "musl", target_env = "uclibc")))]
61
+ + #[cfg(not(any(any(target_env = "musl", target_env = "ohos"), target_env = "uclibc")))]
62
+ #[cfg_attr(docsrs, doc(cfg(all())))]
63
+ FDPIC_FUNCPTRS;
64
+ /// Map page 0 as read-only.
65
+ @@ -42,7 +42,7 @@
66
+ /// version number.
67
+ ///
68
+ /// [`uname(2)`]: https://man7.org/linux/man-pages/man2/uname.2.html
69
+ - #[cfg(not(any(target_env = "musl", target_env = "uclibc")))]
70
+ + #[cfg(not(any(any(target_env = "musl", target_env = "ohos"), target_env = "uclibc")))]
71
+ #[cfg_attr(docsrs, doc(cfg(all())))]
72
+ UNAME26;
73
+ /// No effects.
74
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/ptrace/linux.rs b/patched-crates/nix-0.27.1/src/sys/ptrace/linux.rs
75
+ --- a/patched-crates/nix-0.27.1/src/sys/ptrace/linux.rs 2006-07-24 09:21:28.000000000 +0800
76
+ +++ b/patched-crates/nix-0.27.1/src/sys/ptrace/linux.rs 2026-11-13 17:20:22.792107031 +0800
77
+ @@ -15,7 +15,7 @@
78
+ any(
79
+ all(
80
+ target_arch = "x86_64",
81
+ - any(target_env = "gnu", target_env = "musl")
82
+ + any(target_env = "gnu", any(target_env = "musl", target_env = "ohos"))
83
+ ),
84
+ all(target_arch = "x86", target_env = "gnu")
85
+ )
86
+ @@ -35,8 +35,8 @@
87
+ }
88
+
89
+ libc_enum! {
90
+ - #[cfg_attr(not(any(target_env = "musl", target_env = "uclibc", target_os = "android")), repr(u32))]
91
+ - #[cfg_attr(any(target_env = "musl", target_env = "uclibc", target_os = "android"), repr(i32))]
92
+ + #[cfg_attr(not(any(any(target_env = "musl", target_env = "ohos"), target_env = "uclibc", target_os = "android")), repr(u32))]
93
+ + #[cfg_attr(any(any(target_env = "musl", target_env = "ohos"), target_env = "uclibc", target_os = "android"), repr(i32))]
94
+ /// Ptrace Request enum defining the action to be taken.
95
+ #[non_exhaustive]
96
+ pub enum Request {
97
+ @@ -51,28 +51,28 @@
98
+ PTRACE_KILL,
99
+ PTRACE_SINGLESTEP,
100
+ #[cfg(any(all(target_os = "android", target_pointer_width = "32"),
101
+ - all(target_os = "linux", any(target_env = "musl",
102
+ + all(target_os = "linux", any(any(target_env = "musl", target_env = "ohos"),
103
+ target_arch = "mips",
104
+ target_arch = "mips64",
105
+ target_arch = "x86_64",
106
+ target_pointer_width = "32"))))]
107
+ PTRACE_GETREGS,
108
+ #[cfg(any(all(target_os = "android", target_pointer_width = "32"),
109
+ - all(target_os = "linux", any(target_env = "musl",
110
+ + all(target_os = "linux", any(any(target_env = "musl", target_env = "ohos"),
111
+ target_arch = "mips",
112
+ target_arch = "mips64",
113
+ target_arch = "x86_64",
114
+ target_pointer_width = "32"))))]
115
+ PTRACE_SETREGS,
116
+ #[cfg(any(all(target_os = "android", target_pointer_width = "32"),
117
+ - all(target_os = "linux", any(target_env = "musl",
118
+ + all(target_os = "linux", any(any(target_env = "musl", target_env = "ohos"),
119
+ target_arch = "mips",
120
+ target_arch = "mips64",
121
+ target_arch = "x86_64",
122
+ target_pointer_width = "32"))))]
123
+ PTRACE_GETFPREGS,
124
+ #[cfg(any(all(target_os = "android", target_pointer_width = "32"),
125
+ - all(target_os = "linux", any(target_env = "musl",
126
+ + all(target_os = "linux", any(any(target_env = "musl", target_env = "ohos"),
127
+ target_arch = "mips",
128
+ target_arch = "mips64",
129
+ target_arch = "x86_64",
130
+ @@ -80,13 +80,13 @@
131
+ PTRACE_SETFPREGS,
132
+ PTRACE_ATTACH,
133
+ PTRACE_DETACH,
134
+ - #[cfg(all(target_os = "linux", any(target_env = "musl",
135
+ + #[cfg(all(target_os = "linux", any(any(target_env = "musl", target_env = "ohos"),
136
+ target_arch = "mips",
137
+ target_arch = "mips64",
138
+ target_arch = "x86",
139
+ target_arch = "x86_64")))]
140
+ PTRACE_GETFPXREGS,
141
+ - #[cfg(all(target_os = "linux", any(target_env = "musl",
142
+ + #[cfg(all(target_os = "linux", any(any(target_env = "musl", target_env = "ohos"),
143
+ target_arch = "mips",
144
+ target_arch = "mips64",
145
+ target_arch = "x86",
146
+ @@ -204,7 +204,7 @@
147
+ any(
148
+ all(
149
+ target_arch = "x86_64",
150
+ - any(target_env = "gnu", target_env = "musl")
151
+ + any(target_env = "gnu", any(target_env = "musl", target_env = "ohos"))
152
+ ),
153
+ all(target_arch = "x86", target_env = "gnu")
154
+ )
155
+ @@ -219,7 +219,7 @@
156
+ any(
157
+ all(
158
+ target_arch = "x86_64",
159
+ - any(target_env = "gnu", target_env = "musl")
160
+ + any(target_env = "gnu", any(target_env = "musl", target_env = "ohos"))
161
+ ),
162
+ all(target_arch = "x86", target_env = "gnu")
163
+ )
164
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/socket/mod.rs b/patched-crates/nix-0.27.1/src/sys/socket/mod.rs
165
+ --- a/patched-crates/nix-0.27.1/src/sys/socket/mod.rs 2006-07-24 09:21:28.000000000 +0800
166
+ +++ b/patched-crates/nix-0.27.1/src/sys/socket/mod.rs 2026-11-13 17:20:22.848099375 +0800
167
+ @@ -1210,13 +1210,13 @@
168
+ /// The value of CMSG_LEN on this message.
169
+ /// Safe because CMSG_LEN is always safe
170
+ #[cfg(any(target_os = "android",
171
+ - all(target_os = "linux", not(target_env = "musl"))))]
172
+ + all(target_os = "linux", not(any(target_env = "musl", target_env = "ohos")))))]
173
+ fn cmsg_len(&self) -> usize {
174
+ unsafe{CMSG_LEN(self.len() as libc::c_uint) as usize}
175
+ }
176
+
177
+ #[cfg(not(any(target_os = "android",
178
+ - all(target_os = "linux", not(target_env = "musl")))))]
179
+ + all(target_os = "linux", not(any(target_env = "musl", target_env = "ohos"))))))]
180
+ fn cmsg_len(&self) -> libc::c_uint {
181
+ unsafe{CMSG_LEN(self.len() as libc::c_uint)}
182
+ }
183
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/statfs.rs b/patched-crates/nix-0.27.1/src/sys/statfs.rs
184
+ --- a/patched-crates/nix-0.27.1/src/sys/statfs.rs 2006-07-24 09:21:28.000000000 +0800
185
+ +++ b/patched-crates/nix-0.27.1/src/sys/statfs.rs 2026-11-13 17:20:22.872098593 +0800
186
+ @@ -64,7 +64,7 @@
187
+ type fs_type_t = libc::c_ulong;
188
+ #[cfg(all(target_os = "linux", target_arch = "s390x"))]
189
+ type fs_type_t = libc::c_uint;
190
+ -#[cfg(all(target_os = "linux", target_env = "musl"))]
191
+ +#[cfg(all(target_os = "linux", any(target_env = "musl", target_env = "ohos")))]
192
+ type fs_type_t = libc::c_ulong;
193
+ #[cfg(all(target_os = "linux", target_env = "uclibc"))]
194
+ type fs_type_t = libc::c_int;
195
+ @@ -72,7 +72,7 @@
196
+ target_os = "linux",
197
+ not(any(
198
+ target_arch = "s390x",
199
+ - target_env = "musl",
200
+ + any(target_env = "musl", target_env = "ohos"),
201
+ target_env = "uclibc"
202
+ ))
203
+ ))]
204
+ @@ -83,10 +83,10 @@
205
+ target_os = "freebsd",
206
+ target_os = "android",
207
+ all(target_os = "linux", target_arch = "s390x"),
208
+ - all(target_os = "linux", target_env = "musl"),
209
+ + all(target_os = "linux", any(target_env = "musl", target_env = "ohos")),
210
+ all(
211
+ target_os = "linux",
212
+ - not(any(target_arch = "s390x", target_env = "musl"))
213
+ + not(any(target_arch = "s390x", any(target_env = "musl", target_env = "ohos")))
214
+ ),
215
+ ))]
216
+ #[derive(Eq, Copy, Clone, PartialEq, Debug)]
217
+ @@ -292,7 +292,7 @@
218
+ pub const NSFS_MAGIC: FsType = FsType(libc::NSFS_MAGIC as fs_type_t);
219
+ #[cfg(all(
220
+ any(target_os = "linux", target_os = "android"),
221
+ - not(target_env = "musl")
222
+ + not(any(target_env = "musl", target_env = "ohos"))
223
+ ))]
224
+ #[allow(missing_docs)]
225
+ pub const XFS_SUPER_MAGIC: FsType = FsType(libc::XFS_SUPER_MAGIC as fs_type_t);
226
+ @@ -342,7 +342,7 @@
227
+ /// Optimal transfer block size
228
+ #[cfg(any(
229
+ target_os = "android",
230
+ - all(target_os = "linux", target_env = "musl")
231
+ + all(target_os = "linux", any(target_env = "musl", target_env = "ohos"))
232
+ ))]
233
+ #[cfg_attr(docsrs, doc(cfg(all())))]
234
+ pub fn optimal_transfer_size(&self) -> libc::c_ulong {
235
+ @@ -354,7 +354,7 @@
236
+ target_os = "linux",
237
+ not(any(
238
+ target_arch = "s390x",
239
+ - target_env = "musl",
240
+ + any(target_env = "musl", target_env = "ohos"),
241
+ target_env = "uclibc"
242
+ ))
243
+ ))]
244
+ @@ -401,7 +401,7 @@
245
+
246
+ /// Size of a block
247
+ // f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
248
+ - #[cfg(all(target_os = "linux", target_env = "musl"))]
249
+ + #[cfg(all(target_os = "linux", any(target_env = "musl", target_env = "ohos")))]
250
+ #[cfg_attr(docsrs, doc(cfg(all())))]
251
+ pub fn block_size(&self) -> libc::c_ulong {
252
+ self.0.f_bsize
253
+ @@ -421,7 +421,7 @@
254
+ target_os = "linux",
255
+ not(any(
256
+ target_arch = "s390x",
257
+ - target_env = "musl",
258
+ + any(target_env = "musl", target_env = "ohos"),
259
+ target_env = "uclibc"
260
+ ))
261
+ ))]
262
+ @@ -492,7 +492,7 @@
263
+ }
264
+
265
+ /// Maximum length of filenames
266
+ - #[cfg(all(target_os = "linux", target_env = "musl"))]
267
+ + #[cfg(all(target_os = "linux", any(target_env = "musl", target_env = "ohos")))]
268
+ #[cfg_attr(docsrs, doc(cfg(all())))]
269
+ pub fn maximum_name_length(&self) -> libc::c_ulong {
270
+ self.0.f_namelen
271
+ @@ -510,7 +510,7 @@
272
+ target_os = "linux",
273
+ not(any(
274
+ target_arch = "s390x",
275
+ - target_env = "musl",
276
+ + any(target_env = "musl", target_env = "ohos"),
277
+ target_env = "uclibc"
278
+ ))
279
+ ))]
280
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/statvfs.rs b/patched-crates/nix-0.27.1/src/sys/statvfs.rs
281
+ --- a/patched-crates/nix-0.27.1/src/sys/statvfs.rs 2006-07-24 09:21:28.000000000 +0800
282
+ +++ b/patched-crates/nix-0.27.1/src/sys/statvfs.rs 2026-11-13 17:20:22.872098593 +0800
283
+ @@ -57,7 +57,7 @@
284
+ #[cfg_attr(docsrs, doc(cfg(all())))]
285
+ ST_NODIRATIME;
286
+ /// Update access time relative to modify/change time
287
+ - #[cfg(any(target_os = "android", all(target_os = "linux", not(target_env = "musl"))))]
288
+ + #[cfg(any(target_os = "android", all(target_os = "linux", not(any(target_env = "musl", target_env = "ohos")))))]
289
+ #[cfg_attr(docsrs, doc(cfg(all())))]
290
+ ST_RELATIME;
291
+ }
292
+ diff -ruN a/patched-crates/nix-0.27.1/src/sys/time.rs b/patched-crates/nix-0.27.1/src/sys/time.rs
293
+ --- a/patched-crates/nix-0.27.1/src/sys/time.rs 2006-07-24 09:21:28.000000000 +0800
294
+ +++ b/patched-crates/nix-0.27.1/src/sys/time.rs 2026-11-13 17:20:22.888102187 +0800
295
+ @@ -1,4 +1,4 @@
296
+ -#[cfg_attr(target_env = "musl", allow(deprecated))]
297
+ +#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
298
+ // https://github.com/rust-lang/libc/issues/1848
299
+ pub use libc::{suseconds_t, time_t};
300
+ use libc::{timespec, timeval};
301
+ @@ -259,7 +259,7 @@
302
+
303
+ impl TimeValLike for TimeSpec {
304
+ #[inline]
305
+ - #[cfg_attr(target_env = "musl", allow(deprecated))]
306
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
307
+ // https://github.com/rust-lang/libc/issues/1848
308
+ fn seconds(seconds: i64) -> TimeSpec {
309
+ assert!(
310
+ @@ -292,7 +292,7 @@
311
+
312
+ /// Makes a new `TimeSpec` with given number of nanoseconds.
313
+ #[inline]
314
+ - #[cfg_attr(target_env = "musl", allow(deprecated))]
315
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
316
+ // https://github.com/rust-lang/libc/issues/1848
317
+ fn nanoseconds(nanoseconds: i64) -> TimeSpec {
318
+ let (secs, nanos) = div_mod_floor_64(nanoseconds, NANOS_PER_SEC);
319
+ @@ -335,7 +335,7 @@
320
+
321
+ impl TimeSpec {
322
+ /// Construct a new `TimeSpec` from its components
323
+ - #[cfg_attr(target_env = "musl", allow(deprecated))] // https://github.com/rust-lang/libc/issues/1848
324
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] // https://github.com/rust-lang/libc/issues/1848
325
+ pub const fn new(seconds: time_t, nanoseconds: timespec_tv_nsec_t) -> Self {
326
+ let mut ts = zero_init_timespec();
327
+ ts.tv_sec = seconds;
328
+ @@ -351,7 +351,7 @@
329
+ }
330
+ }
331
+
332
+ - #[cfg_attr(target_env = "musl", allow(deprecated))] // https://github.com/rust-lang/libc/issues/1848
333
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] // https://github.com/rust-lang/libc/issues/1848
334
+ pub const fn tv_sec(&self) -> time_t {
335
+ self.0.tv_sec
336
+ }
337
+ @@ -360,7 +360,7 @@
338
+ self.0.tv_nsec
339
+ }
340
+
341
+ - #[cfg_attr(target_env = "musl", allow(deprecated))]
342
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
343
+ // https://github.com/rust-lang/libc/issues/1848
344
+ pub const fn from_duration(duration: Duration) -> Self {
345
+ let mut ts = zero_init_timespec();
346
+ @@ -501,7 +501,7 @@
347
+ (TV_MIN_SECONDS..=TV_MAX_SECONDS).contains(&seconds),
348
+ "TimeVal out of bounds; seconds={seconds}"
349
+ );
350
+ - #[cfg_attr(target_env = "musl", allow(deprecated))]
351
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
352
+ // https://github.com/rust-lang/libc/issues/1848
353
+ TimeVal(timeval {
354
+ tv_sec: seconds as time_t,
355
+ @@ -526,7 +526,7 @@
356
+ (TV_MIN_SECONDS..=TV_MAX_SECONDS).contains(&secs),
357
+ "TimeVal out of bounds"
358
+ );
359
+ - #[cfg_attr(target_env = "musl", allow(deprecated))]
360
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
361
+ // https://github.com/rust-lang/libc/issues/1848
362
+ TimeVal(timeval {
363
+ tv_sec: secs as time_t,
364
+ @@ -544,7 +544,7 @@
365
+ (TV_MIN_SECONDS..=TV_MAX_SECONDS).contains(&secs),
366
+ "TimeVal out of bounds"
367
+ );
368
+ - #[cfg_attr(target_env = "musl", allow(deprecated))]
369
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
370
+ // https://github.com/rust-lang/libc/issues/1848
371
+ TimeVal(timeval {
372
+ tv_sec: secs as time_t,
373
+ @@ -581,7 +581,7 @@
374
+
375
+ impl TimeVal {
376
+ /// Construct a new `TimeVal` from its components
377
+ - #[cfg_attr(target_env = "musl", allow(deprecated))] // https://github.com/rust-lang/libc/issues/1848
378
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] // https://github.com/rust-lang/libc/issues/1848
379
+ pub const fn new(seconds: time_t, microseconds: suseconds_t) -> Self {
380
+ Self(timeval {
381
+ tv_sec: seconds,
382
+ @@ -597,7 +597,7 @@
383
+ }
384
+ }
385
+
386
+ - #[cfg_attr(target_env = "musl", allow(deprecated))] // https://github.com/rust-lang/libc/issues/1848
387
+ + #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] // https://github.com/rust-lang/libc/issues/1848
388
+ pub const fn tv_sec(&self) -> time_t {
389
+ self.0.tv_sec
390
+ }
391
+ diff -ruN a/patched-crates/nix-0.27.1/src/time.rs b/patched-crates/nix-0.27.1/src/time.rs
392
+ --- a/patched-crates/nix-0.27.1/src/time.rs 2006-07-24 09:21:28.000000000 +0800
393
+ +++ b/patched-crates/nix-0.27.1/src/time.rs 2026-11-13 17:20:22.900102812 +0800
394
+ @@ -162,7 +162,7 @@
395
+ #[cfg(any(
396
+ target_os = "emscripten",
397
+ target_os = "fuchsia",
398
+ - all(target_os = "linux", target_env = "musl")
399
+ + all(target_os = "linux", any(target_env = "musl", target_env = "ohos"))
400
+ ))]
401
+ #[cfg_attr(docsrs, doc(cfg(all())))]
402
+ pub const CLOCK_SGI_CYCLE: ClockId = ClockId(libc::CLOCK_SGI_CYCLE);
403
+ diff -ruN a/patched-crates/nix-0.27.1/src/ucontext.rs b/patched-crates/nix-0.27.1/src/ucontext.rs
404
+ --- a/patched-crates/nix-0.27.1/src/ucontext.rs 2006-07-24 09:21:28.000000000 +0800
405
+ +++ b/patched-crates/nix-0.27.1/src/ucontext.rs 2026-11-13 17:20:22.904101875 +0800
406
+ @@ -1,9 +1,9 @@
407
+ -#[cfg(not(target_env = "musl"))]
408
+ +#[cfg(not(any(target_env = "musl", target_env = "ohos")))]
409
+ use crate::errno::Errno;
410
+ use crate::sys::signal::SigSet;
411
+ -#[cfg(not(target_env = "musl"))]
412
+ +#[cfg(not(any(target_env = "musl", target_env = "ohos")))]
413
+ use crate::Result;
414
+ -#[cfg(not(target_env = "musl"))]
415
+ +#[cfg(not(any(target_env = "musl", target_env = "ohos")))]
416
+ use std::mem;
417
+
418
+ #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
419
+ @@ -12,7 +12,7 @@
420
+ }
421
+
422
+ impl UContext {
423
+ - #[cfg(not(target_env = "musl"))]
424
+ + #[cfg(not(any(target_env = "musl", target_env = "ohos")))]
425
+ pub fn get() -> Result<UContext> {
426
+ let mut context = mem::MaybeUninit::<libc::ucontext_t>::uninit();
427
+ let res = unsafe { libc::getcontext(context.as_mut_ptr()) };
428
+ @@ -23,7 +23,7 @@
429
+ })
430
+ }
431
+
432
+ - #[cfg(not(target_env = "musl"))]
433
+ + #[cfg(not(any(target_env = "musl", target_env = "ohos")))]
434
+ pub fn set(&self) -> Result<()> {
435
+ let res = unsafe {
436
+ libc::setcontext(&self.context as *const libc::ucontext_t)
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ohos-ports/nx",
3
- "version": "19.8.4-beta.2",
3
+ "version": "20.8.4-beta.1",
4
4
  "private": false,
5
- "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
5
+ "description": "[openharmony-arm64 port] The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/ohos-ports/ohos-ports.git",
9
- "directory": "ports/nx/19.8.4"
9
+ "directory": "ports/nx/20.8.4"
10
10
  },
11
11
  "keywords": [
12
12
  "Monorepo",
@@ -36,9 +36,9 @@
36
36
  "dependencies": {
37
37
  "@napi-rs/wasm-runtime": "0.2.4",
38
38
  "@yarnpkg/lockfile": "^1.1.0",
39
- "@yarnpkg/parsers": "3.0.0-rc.46",
39
+ "@yarnpkg/parsers": "3.0.2",
40
40
  "@zkochan/js-yaml": "0.0.7",
41
- "axios": "^1.7.4",
41
+ "axios": "^1.8.3",
42
42
  "chalk": "^4.1.0",
43
43
  "cli-cursor": "3.1.0",
44
44
  "cli-spinners": "2.6.1",
@@ -54,20 +54,20 @@
54
54
  "jsonc-parser": "3.2.0",
55
55
  "lines-and-columns": "2.0.3",
56
56
  "minimatch": "9.0.3",
57
+ "node-machine-id": "1.1.12",
57
58
  "npm-run-path": "^4.0.1",
58
59
  "open": "^8.4.0",
60
+ "ora": "5.3.0",
61
+ "resolve.exports": "2.0.3",
59
62
  "semver": "^7.5.3",
60
63
  "string-width": "^4.2.3",
61
- "strong-log-transformer": "^2.1.0",
62
64
  "tar-stream": "~2.2.0",
63
65
  "tmp": "~0.2.1",
64
66
  "tsconfig-paths": "^4.1.2",
65
67
  "tslib": "^2.3.0",
68
+ "yaml": "^2.6.0",
66
69
  "yargs": "^17.6.2",
67
- "yargs-parser": "21.1.1",
68
- "node-machine-id": "1.1.12",
69
- "ora": "5.3.0",
70
- "@nrwl/tao": "npm:@ohos-ports/nrwl-tao@19.8.4-beta.1"
70
+ "yargs-parser": "21.1.1"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@swc-node/register": "^1.8.0",
@@ -82,74 +82,52 @@
82
82
  }
83
83
  },
84
84
  "optionalDependencies": {
85
- "@nx/nx-darwin-x64": "19.8.4",
86
- "@nx/nx-darwin-arm64": "19.8.4",
87
- "@nx/nx-linux-x64-gnu": "19.8.4",
88
- "@nx/nx-linux-x64-musl": "19.8.4",
89
- "@nx/nx-win32-x64-msvc": "19.8.4",
90
- "@nx/nx-linux-arm64-gnu": "19.8.4",
91
- "@nx/nx-linux-arm64-musl": "19.8.4",
92
- "@nx/nx-linux-arm-gnueabihf": "19.8.4",
93
- "@nx/nx-win32-arm64-msvc": "19.8.4",
94
- "@nx/nx-freebsd-x64": "19.8.4"
85
+ "@nx/nx-darwin-arm64": "20.8.4",
86
+ "@nx/nx-darwin-x64": "20.8.4",
87
+ "@nx/nx-freebsd-x64": "20.8.4",
88
+ "@nx/nx-linux-arm-gnueabihf": "20.8.4",
89
+ "@nx/nx-linux-arm64-gnu": "20.8.4",
90
+ "@nx/nx-linux-arm64-musl": "20.8.4",
91
+ "@nx/nx-linux-x64-gnu": "20.8.4",
92
+ "@nx/nx-linux-x64-musl": "20.8.4",
93
+ "@nx/nx-win32-arm64-msvc": "20.8.4",
94
+ "@nx/nx-win32-x64-msvc": "20.8.4"
95
95
  },
96
96
  "nx-migrations": {
97
97
  "migrations": "./migrations.json",
98
98
  "packageGroup": [
99
99
  "@nx/js",
100
- "@nrwl/js",
101
100
  "@nx/jest",
102
- "@nrwl/jest",
103
101
  "@nx/linter",
104
102
  "@nx/eslint",
105
- "@nrwl/linter",
106
103
  "@nx/workspace",
107
- "@nrwl/workspace",
108
104
  "@nx/angular",
109
- "@nrwl/angular",
110
105
  "@nx/cypress",
111
- "@nrwl/cypress",
112
106
  "@nx/detox",
113
- "@nrwl/detox",
114
107
  "@nx/devkit",
115
- "@nrwl/devkit",
116
108
  "@nx/esbuild",
117
- "@nrwl/esbuild",
118
109
  "@nx/eslint-plugin",
119
- "@nrwl/eslint-plugin-nx",
120
110
  "@nx/expo",
121
- "@nrwl/expo",
122
111
  "@nx/express",
123
- "@nrwl/express",
124
112
  "@nx/gradle",
113
+ "@nx/module-federation",
125
114
  "@nx/nest",
126
- "@nrwl/nest",
127
115
  "@nx/next",
128
- "@nrwl/next",
129
116
  "@nx/node",
130
- "@nrwl/node",
131
117
  "@nx/nuxt",
132
118
  "@nx/playwright",
133
119
  "@nx/plugin",
134
- "@nrwl/nx-plugin",
135
120
  "@nx/react",
136
- "@nrwl/react",
137
121
  "@nx/react-native",
138
- "@nrwl/react-native",
139
122
  "@nx/rollup",
140
- "@nrwl/rollup",
141
123
  "@nx/remix",
142
- "@nrwl/remix",
124
+ "@nx/rspack",
125
+ "@nx/rsbuild",
143
126
  "@nx/storybook",
144
- "@nrwl/storybook",
145
- "@nrwl/tao",
146
127
  "@nx/vite",
147
- "@nrwl/vite",
148
128
  "@nx/vue",
149
129
  "@nx/web",
150
- "@nrwl/web",
151
130
  "@nx/webpack",
152
- "@nrwl/webpack",
153
131
  {
154
132
  "package": "nx-cloud",
155
133
  "version": "latest"
@@ -186,25 +164,10 @@
186
164
  "x86_64-unknown-freebsd"
187
165
  ]
188
166
  },
167
+ "types": "./bin/nx.d.ts",
189
168
  "main": "./bin/nx.js",
190
169
  "type": "commonjs",
191
- "types": "./bin/nx.d.ts",
192
170
  "scripts": {
193
171
  "postinstall": "node ./bin/post-install"
194
- },
195
- "files": [
196
- "bin/",
197
- "init/",
198
- "presets/",
199
- "src/",
200
- "plugins/",
201
- "executors.json",
202
- "generators.json",
203
- "migrations.json",
204
- "index.js",
205
- "index.d.ts",
206
- "package.json",
207
- "README.md",
208
- "LICENSE"
209
- ]
172
+ }
210
173
  }
@@ -1 +1,5 @@
1
- export {};
1
+ import { ProjectConfiguration } from '../src/config/workspace-json-project-json';
2
+ export type PackageJsonConfigurationCache = {
3
+ [hash: string]: ProjectConfiguration;
4
+ };
5
+ export declare function readPackageJsonConfigurationCache(): PackageJsonConfigurationCache;
@@ -1,12 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readPackageJsonConfigurationCache = readPackageJsonConfigurationCache;
4
+ const plugins_1 = require("../src/project-graph/plugins");
3
5
  const workspace_root_1 = require("../src/utils/workspace-root");
4
6
  const package_json_1 = require("../src/plugins/package-json");
7
+ const cache_directory_1 = require("../src/utils/cache-directory");
8
+ const path_1 = require("path");
9
+ const fileutils_1 = require("../src/utils/fileutils");
10
+ const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, 'package-json.hash');
11
+ function readPackageJsonConfigurationCache() {
12
+ try {
13
+ return (0, fileutils_1.readJsonFile)(cachePath);
14
+ }
15
+ catch (e) {
16
+ return {};
17
+ }
18
+ }
19
+ function writeCache(cache) {
20
+ (0, fileutils_1.writeJsonFile)(cachePath, cache);
21
+ }
5
22
  const plugin = {
6
23
  name: 'nx-all-package-jsons-plugin',
7
- createNodes: [
24
+ createNodesV2: [
8
25
  '*/**/package.json',
9
- (f) => (0, package_json_1.createNodeFromPackageJson)(f, workspace_root_1.workspaceRoot),
26
+ (configFiles, options, context) => {
27
+ const cache = readPackageJsonConfigurationCache();
28
+ const isInPackageJsonWorkspaces = (0, package_json_1.buildPackageJsonWorkspacesMatcher)(context.workspaceRoot, (f) => (0, fileutils_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, f)));
29
+ const result = (0, plugins_1.createNodesFromFiles)((packageJsonPath) => (0, package_json_1.createNodeFromPackageJson)(packageJsonPath, workspace_root_1.workspaceRoot, cache, isInPackageJsonWorkspaces(packageJsonPath)), configFiles, options, context);
30
+ writeCache(cache);
31
+ return result;
32
+ },
10
33
  ],
11
34
  };
12
35
  module.exports = plugin;
36
+ module.exports.readPackageJsonConfigurationCache =
37
+ readPackageJsonConfigurationCache;