@effect/tsgo 0.18.0 → 0.18.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/dist/effect-tsgo.js +10 -3
- package/package.json +8 -8
package/dist/effect-tsgo.js
CHANGED
|
@@ -204655,7 +204655,7 @@ var FileReadError = class extends TaggedError("FileReadError") {
|
|
|
204655
204655
|
//#endregion
|
|
204656
204656
|
//#region package.json
|
|
204657
204657
|
var name = "@effect/tsgo";
|
|
204658
|
-
var version = "0.18.
|
|
204658
|
+
var version = "0.18.1";
|
|
204659
204659
|
|
|
204660
204660
|
//#endregion
|
|
204661
204661
|
//#region src/setup/consts.ts
|
|
@@ -207638,6 +207638,11 @@ var ParsePackageJsonError = class extends TaggedError("ParsePackageJsonError") {
|
|
|
207638
207638
|
return `Unable to parse ${this.packageName} package.json at ${this.packageJsonPath}: ${this.reason}`;
|
|
207639
207639
|
}
|
|
207640
207640
|
};
|
|
207641
|
+
var MissingTypeScriptMetadataError = class extends TaggedError("MissingTypeScriptMetadataError") {
|
|
207642
|
+
get message() {
|
|
207643
|
+
return `Installed ${this.packageName} package.json does not contain a gitHead. Unable to select a compatible Effect binary.`;
|
|
207644
|
+
}
|
|
207645
|
+
};
|
|
207641
207646
|
var BinaryMetadataNotFoundError = class extends TaggedError("BinaryMetadataNotFoundError") {
|
|
207642
207647
|
get message() {
|
|
207643
207648
|
return `Binary metadata not found at ${this.metadataPath}.`;
|
|
@@ -207702,7 +207707,7 @@ var VerificationFailedError = class extends TaggedError("VerificationFailedError
|
|
|
207702
207707
|
const PackageJsonMetadataSchema = Struct({
|
|
207703
207708
|
name: String$1,
|
|
207704
207709
|
version: String$1,
|
|
207705
|
-
gitHead: String$1
|
|
207710
|
+
gitHead: optionalKey(String$1)
|
|
207706
207711
|
});
|
|
207707
207712
|
const PackageJsonMetadataFromStringSchema = fromJsonString(PackageJsonMetadataSchema);
|
|
207708
207713
|
const BinaryMetadataSchema = Struct({
|
|
@@ -207749,6 +207754,8 @@ const readBinaryMetadata = (binaryPath) => gen(function* () {
|
|
|
207749
207754
|
}))));
|
|
207750
207755
|
});
|
|
207751
207756
|
const resolveOfficialTypeScriptBinary = (typescriptPackage) => gen(function* () {
|
|
207757
|
+
const packageGitHead = typescriptPackage.gitHead;
|
|
207758
|
+
if (packageGitHead === void 0) return yield* fail(new MissingTypeScriptMetadataError({ packageName: typescriptPackage.requestedPackageName }));
|
|
207752
207759
|
const path = yield* Path;
|
|
207753
207760
|
const platformPackageName = "@typescript/typescript-" + process.platform + "-" + process.arch;
|
|
207754
207761
|
const packageRequire = node_module.createRequire(typescriptPackage.packageJsonPath);
|
|
@@ -207762,7 +207769,7 @@ const resolveOfficialTypeScriptBinary = (typescriptPackage) => gen(function* ()
|
|
|
207762
207769
|
packageName: typescriptPackage.requestedPackageName,
|
|
207763
207770
|
packageJsonPath: typescriptPackage.packageJsonPath,
|
|
207764
207771
|
packageVersion: typescriptPackage.version,
|
|
207765
|
-
packageGitHead
|
|
207772
|
+
packageGitHead,
|
|
207766
207773
|
platformPackageName,
|
|
207767
207774
|
platformPackageJsonPath,
|
|
207768
207775
|
platformGitHead: platformPackage.gitHead,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/tsgo",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@effect/tsgo-win32-x64": "0.18.
|
|
26
|
-
"@effect/tsgo-win32-arm64": "0.18.
|
|
27
|
-
"@effect/tsgo-linux-x64": "0.18.
|
|
28
|
-
"@effect/tsgo-linux-arm64": "0.18.
|
|
29
|
-
"@effect/tsgo-linux-arm": "0.18.
|
|
30
|
-
"@effect/tsgo-darwin-x64": "0.18.
|
|
31
|
-
"@effect/tsgo-darwin-arm64": "0.18.
|
|
25
|
+
"@effect/tsgo-win32-x64": "0.18.1",
|
|
26
|
+
"@effect/tsgo-win32-arm64": "0.18.1",
|
|
27
|
+
"@effect/tsgo-linux-x64": "0.18.1",
|
|
28
|
+
"@effect/tsgo-linux-arm64": "0.18.1",
|
|
29
|
+
"@effect/tsgo-linux-arm": "0.18.1",
|
|
30
|
+
"@effect/tsgo-darwin-x64": "0.18.1",
|
|
31
|
+
"@effect/tsgo-darwin-arm64": "0.18.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@effect/platform-node": "^4.0.0-beta.83",
|