@ohos-ports/opencode-openharmony-arm64 1.18.5-beta.0 → 1.18.5-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.
- package/index.js +18 -0
- package/package.json +6 -4
package/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// @ohos-ports/opencode-openharmony-arm64 — OpenHarmony arm64 migration
|
|
4
|
+
// Ships a real compiled binary at ./bin/opencode. This entry exposes
|
|
5
|
+
// the binary path for programmatic use (require + spawn), matching
|
|
6
|
+
// the entry pattern of successfully migrated @ohos-ports packages.
|
|
7
|
+
|
|
8
|
+
var path = require('path');
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
name: '@ohos-ports/opencode-openharmony-arm64',
|
|
12
|
+
version: '1.18.5-beta.0',
|
|
13
|
+
platform: process.platform,
|
|
14
|
+
arch: process.arch,
|
|
15
|
+
isSupported: process.platform === 'openharmony' && process.arch === 'arm64',
|
|
16
|
+
binPath: path.join(__dirname, './bin/opencode'),
|
|
17
|
+
bin: path.join(__dirname, './bin/opencode'),
|
|
18
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/opencode-openharmony-arm64",
|
|
3
|
-
"version": "1.18.5-beta.
|
|
3
|
+
"version": "1.18.5-beta.1",
|
|
4
4
|
"preferUnplugged": true,
|
|
5
5
|
"os": [
|
|
6
6
|
"openharmony"
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"arm64"
|
|
10
10
|
],
|
|
11
11
|
"files": [
|
|
12
|
-
"bin/"
|
|
12
|
+
"bin/",
|
|
13
|
+
"index.js"
|
|
13
14
|
],
|
|
14
15
|
"repository": {
|
|
15
16
|
"type": "git",
|
|
@@ -18,5 +19,6 @@
|
|
|
18
19
|
},
|
|
19
20
|
"bugs": {
|
|
20
21
|
"url": "https://github.com/ohos-ports/ohos-ports/issues"
|
|
21
|
-
}
|
|
22
|
-
|
|
22
|
+
},
|
|
23
|
+
"main": "index.js"
|
|
24
|
+
}
|