@ohos-ports/typescript 7.0.2-beta.0 → 7.0.2-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/lib/getExePath.js +6 -3
- package/package.json +9 -10
package/lib/getExePath.js
CHANGED
|
@@ -34,9 +34,12 @@ export default function getExePath() {
|
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
// We're actually running from an installed package.
|
|
37
|
-
//
|
|
38
|
-
// the @ohos-ports
|
|
39
|
-
|
|
37
|
+
// OpenHarmony: the upstream @typescript/* platform packages are os-gated
|
|
38
|
+
// away from openharmony; resolve the @ohos-ports companion package that
|
|
39
|
+
// ships the tsgo binary patched and re-signed for HarmonyOS instead.
|
|
40
|
+
const platformPackageName = process.platform === "openharmony"
|
|
41
|
+
? "@ohos-ports/" + baseName + "-typescript-" + process.platform + "-" + process.arch
|
|
42
|
+
: "@typescript/" + expectedPackage;
|
|
40
43
|
try {
|
|
41
44
|
if (typeof import.meta.resolve === "undefined") {
|
|
42
45
|
// v16.20.1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/typescript",
|
|
3
|
-
"version": "7.0.2-beta.
|
|
3
|
+
"version": "7.0.2-beta.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Microsoft Corp.",
|
|
6
6
|
"homepage": "https://www.typescriptlang.org/",
|
|
@@ -58,32 +58,31 @@
|
|
|
58
58
|
},
|
|
59
59
|
"#vscode-jsonrpc/node": "./vendor/vscode-jsonrpc/lib/node/main.js"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "2bd066d87f5bafd315be9f40889d0a60b9e58e0b",
|
|
62
61
|
"publishConfig": {
|
|
63
62
|
"access": "public",
|
|
64
63
|
"tag": "latest"
|
|
65
64
|
},
|
|
66
65
|
"optionalDependencies": {
|
|
67
|
-
"@
|
|
68
|
-
"@typescript/typescript-
|
|
69
|
-
"@typescript/typescript-
|
|
66
|
+
"@typescript/typescript-win32-x64": "7.0.2",
|
|
67
|
+
"@typescript/typescript-win32-arm64": "7.0.2",
|
|
68
|
+
"@typescript/typescript-linux-x64": "7.0.2",
|
|
69
|
+
"@typescript/typescript-linux-arm": "7.0.2",
|
|
70
|
+
"@typescript/typescript-linux-arm64": "7.0.2",
|
|
70
71
|
"@typescript/typescript-darwin-x64": "7.0.2",
|
|
72
|
+
"@typescript/typescript-darwin-arm64": "7.0.2",
|
|
73
|
+
"@typescript/typescript-aix-ppc64": "7.0.2",
|
|
71
74
|
"@typescript/typescript-freebsd-arm64": "7.0.2",
|
|
72
75
|
"@typescript/typescript-freebsd-x64": "7.0.2",
|
|
73
|
-
"@typescript/typescript-linux-arm": "7.0.2",
|
|
74
|
-
"@typescript/typescript-linux-arm64": "7.0.2",
|
|
75
76
|
"@typescript/typescript-linux-loong64": "7.0.2",
|
|
76
77
|
"@typescript/typescript-linux-mips64el": "7.0.2",
|
|
77
78
|
"@typescript/typescript-linux-ppc64": "7.0.2",
|
|
78
79
|
"@typescript/typescript-linux-riscv64": "7.0.2",
|
|
79
80
|
"@typescript/typescript-linux-s390x": "7.0.2",
|
|
80
|
-
"@typescript/typescript-linux-x64": "7.0.2",
|
|
81
81
|
"@typescript/typescript-netbsd-arm64": "7.0.2",
|
|
82
82
|
"@typescript/typescript-netbsd-x64": "7.0.2",
|
|
83
83
|
"@typescript/typescript-openbsd-arm64": "7.0.2",
|
|
84
84
|
"@typescript/typescript-openbsd-x64": "7.0.2",
|
|
85
85
|
"@typescript/typescript-sunos-x64": "7.0.2",
|
|
86
|
-
"@
|
|
87
|
-
"@typescript/typescript-win32-x64": "7.0.2"
|
|
86
|
+
"@ohos-ports/typescript-typescript-openharmony-arm64": "7.0.2-beta.0"
|
|
88
87
|
}
|
|
89
88
|
}
|