@ohos-ports/nx 23.3.0-beta.0 → 23.3.0-beta.2

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.
package/dist/bin/nx.js CHANGED
@@ -198,13 +198,13 @@ function resolveNx(workspace) {
198
198
  const installPath = (0, installation_directory_1.getNxInstallationPath)(root);
199
199
  if ((0, fs_1.existsSync)(installPath)) {
200
200
  const installRequire = (0, module_1.createRequire)((0, path_1.join)(installPath, 'package.json'));
201
- return installRequire.resolve('nx/bin/nx.js');
201
+ return installRequire.resolve('@ohos-ports/nx/bin/nx.js');
202
202
  }
203
203
  }
204
204
  catch { }
205
205
  // check for root install
206
206
  const rootRequire = (0, module_1.createRequire)((0, path_1.join)(root, 'package.json'));
207
- return rootRequire.resolve('nx/bin/nx.js');
207
+ return rootRequire.resolve('@ohos-ports/nx/bin/nx.js');
208
208
  }
209
209
  function isNxCloudCommand(command) {
210
210
  const nxCloudCommands = [
@@ -12,7 +12,7 @@ function assertSupportedPlatform() {
12
12
  if (process.platform == 'win32' ||
13
13
  process.platform == 'darwin' ||
14
14
  process.platform == 'linux' ||
15
- process.platform == 'freebsd') {
15
+ process.platform == 'freebsd' || process.platform == 'openharmony') {
16
16
  title = 'Missing Platform Dependency';
17
17
  bodyLines = [
18
18
  `The Nx CLI could not find or load the native binary for your supported platform (${process.platform}-${process.arch}).`,
@@ -474,8 +474,8 @@ function requireNative() {
474
474
  loadErrors.push(e)
475
475
  }
476
476
  try {
477
- const binding = require('@nx/nx-openharmony-arm64')
478
- const bindingPackageVersion = require('@nx/nx-openharmony-arm64/package.json').version
477
+ const binding = require('@ohos-ports/nx-openharmony-arm64')
478
+ const bindingPackageVersion = require('@ohos-ports/nx-openharmony-arm64/package.json').version
479
479
  if (bindingPackageVersion !== '0.0.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
480
  throw new Error(`Native binding package version mismatch, expected 0.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
@@ -490,8 +490,8 @@ function requireNative() {
490
490
  loadErrors.push(e)
491
491
  }
492
492
  try {
493
- const binding = require('@nx/nx-openharmony-x64')
494
- const bindingPackageVersion = require('@nx/nx-openharmony-x64/package.json').version
493
+ const binding = require('@ohos-ports/nx-openharmony-x64')
494
+ const bindingPackageVersion = require('@ohos-ports/nx-openharmony-x64/package.json').version
495
495
  if (bindingPackageVersion !== '0.0.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
496
  throw new Error(`Native binding package version mismatch, expected 0.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
@@ -506,8 +506,8 @@ function requireNative() {
506
506
  loadErrors.push(e)
507
507
  }
508
508
  try {
509
- const binding = require('@nx/nx-openharmony-arm')
510
- const bindingPackageVersion = require('@nx/nx-openharmony-arm/package.json').version
509
+ const binding = require('@ohos-ports/nx-openharmony-arm')
510
+ const bindingPackageVersion = require('@ohos-ports/nx-openharmony-arm/package.json').version
511
511
  if (bindingPackageVersion !== '0.0.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
512
  throw new Error(`Native binding package version mismatch, expected 0.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohos-ports/nx",
3
- "version": "23.3.0-beta.0",
3
+ "version": "23.3.0-beta.2",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
@@ -168,7 +168,8 @@
168
168
  "@nx/nx-linux-x64-gnu": "23.3.0",
169
169
  "@nx/nx-linux-x64-musl": "23.3.0",
170
170
  "@nx/nx-win32-arm64-msvc": "23.3.0",
171
- "@nx/nx-win32-x64-msvc": "23.3.0"
171
+ "@nx/nx-win32-x64-msvc": "23.3.0",
172
+ "@ohos-ports/nx-openharmony-arm64": "23.3.0-beta.0"
172
173
  },
173
174
  "nx-migrations": {
174
175
  "migrations": "./migrations.json",
@@ -526,4 +527,4 @@
526
527
  "scripts": {
527
528
  "postinstall": "node -e \"try{require('./dist/bin/post-install')}catch(e){}\""
528
529
  }
529
- }
530
+ }
@@ -1,16 +0,0 @@
1
- <p style="text-align: center;">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
- </picture>
6
- </p>
7
-
8
- {{links}}
9
-
10
- <hr>
11
-
12
- # Nx: Smart Repos · Fast Builds
13
-
14
- Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
15
-
16
- {{content}}