@deveco-test/deveco-code 1.10.33 → 1.18.34
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/package.json +6 -6
- package/postinstall.mjs +7 -4
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.18.34",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"files": [
|
|
12
12
|
"bin/**/*",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"CHANGELOG.md"
|
|
17
17
|
],
|
|
18
18
|
"optionalDependencies": {
|
|
19
|
-
"@deveco-test/deveco-code-
|
|
20
|
-
"@deveco-test/deveco-code-
|
|
21
|
-
"@deveco-test/deveco-code-
|
|
22
|
-
"@deveco-test/deveco-code-
|
|
23
|
-
"@deveco-test/deveco-code-hmos-arm64": "1.
|
|
19
|
+
"@deveco-test/deveco-code-darwin-arm64": "1.18.34",
|
|
20
|
+
"@deveco-test/deveco-code-darwin-x64": "1.18.34",
|
|
21
|
+
"@deveco-test/deveco-code-windows-x64-baseline": "1.18.34",
|
|
22
|
+
"@deveco-test/deveco-code-windows-x64": "1.18.34",
|
|
23
|
+
"@deveco-test/deveco-code-hmos-arm64": "1.18.34"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@deveco/deveco-cli": "1.3.2"
|
package/postinstall.mjs
CHANGED
|
@@ -321,13 +321,16 @@ function main() {
|
|
|
321
321
|
copyBinary(resolveBinary(name), targetBinary)
|
|
322
322
|
copyVendor(packageDir)
|
|
323
323
|
if (isOhos()) {
|
|
324
|
+
// The runtime derives installRoot from the hmos binary's own package
|
|
325
|
+
// dir (the shim spawns node_modules/.../bin/hmos), so the marker must
|
|
326
|
+
// exist there too — same as darwin/windows writing into packageDir.
|
|
324
327
|
try {
|
|
325
328
|
writeDevecoCliEntryMarker(__dirname)
|
|
329
|
+
writeDevecoCliEntryMarker(packageDir)
|
|
326
330
|
} catch {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
])
|
|
331
|
+
const roots = [path.join(packageDir, "node_modules"), path.join(__dirname, "node_modules")]
|
|
332
|
+
writeVendorEntryMarker(__dirname, roots)
|
|
333
|
+
writeVendorEntryMarker(packageDir, roots)
|
|
331
334
|
}
|
|
332
335
|
} else writeDevecoCliEntryMarker(packageDir)
|
|
333
336
|
if (verifyBinary()) return
|