@effect/tsgo 0.32.0 → 0.32.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.
@@ -61562,7 +61562,7 @@ const preparePatch = (targets, options) => gen(function* () {
61562
61562
  skipped.push({
61563
61563
  target,
61564
61564
  reason: "already-patched",
61565
- message: `Backup already exists at ${backupPath}; ${target.component} is already patched.`
61565
+ message: `${target.component} skipped because backup already exists at ${backupPath}.`
61566
61566
  });
61567
61567
  continue;
61568
61568
  }
@@ -208892,7 +208892,7 @@ var FileReadError = class extends TaggedError("FileReadError") {
208892
208892
  //#endregion
208893
208893
  //#region package.json
208894
208894
  var name = "@effect/tsgo";
208895
- var version = "0.32.0";
208895
+ var version = "0.32.1";
208896
208896
 
208897
208897
  //#endregion
208898
208898
  //#region src/cli/setup/consts.ts
@@ -208901,6 +208901,7 @@ const LSP_PLUGIN_NAME = "@effect/language-service";
208901
208901
  const defaultTypescriptPackageNames = ["typescript", "@typescript/native"];
208902
208902
  const OXLINT_PACKAGE_NAME = "oxlint";
208903
208903
  const OXLINT_TSGOLINT_PACKAGE_NAME = "oxlint-tsgolint";
208904
+ const VITE_PLUS_PACKAGE_NAME = "vite-plus";
208904
208905
  /**
208905
208906
  * `typescript` package versions >= 7 ship the native Go-ported binary that this
208906
208907
  * tool patches. Older `typescript` releases (<= 6) are the JS compiler and must
@@ -209171,6 +209172,7 @@ const assessPackageJson = (input) => {
209171
209172
  const lspVersion = assessDependency(LSP_PACKAGE_NAME);
209172
209173
  const oxlintVersion = assessDependency(OXLINT_PACKAGE_NAME);
209173
209174
  const oxlintTsgolintVersion = assessDependency(OXLINT_TSGOLINT_PACKAGE_NAME);
209175
+ const vitePlusVersion = assessDependency(VITE_PLUS_PACKAGE_NAME);
209174
209176
  let typescriptVersion = none$3();
209175
209177
  for (const packageName of defaultTypescriptPackageNames) {
209176
209178
  const typescriptDep = assessDependency(packageName);
@@ -209196,6 +209198,7 @@ const assessPackageJson = (input) => {
209196
209198
  typescriptVersion,
209197
209199
  oxlintVersion,
209198
209200
  oxlintTsgolintVersion,
209201
+ vitePlusVersion,
209199
209202
  prepareScript
209200
209203
  };
209201
209204
  };
@@ -209565,7 +209568,7 @@ const computePackageJsonChanges = (current, target) => {
209565
209568
  OXLINT_TSGOLINT_PACKAGE_NAME,
209566
209569
  current.oxlintTsgolintVersion,
209567
209570
  target.oxlintTsgolintVersion
209568
- ]]) if (target.integrations.includes("oxlint") && isNone(currentDependency) && isSome(targetDependency) && targetDependency.value.dependencyType === dependencyType) {
209571
+ ]]) if (target.integrations.includes("oxlint") && isNone(current.vitePlusVersion) && isNone(currentDependency) && isSome(targetDependency) && targetDependency.value.dependencyType === dependencyType) {
209569
209572
  descriptions.push(`Add ${packageName}@${targetDependency.value.version} in ${dependencyType}`);
209570
209573
  dependencyProperties.push(import_typescript.factory.createPropertyAssignment(import_typescript.factory.createStringLiteral(packageName), import_typescript.factory.createStringLiteral(targetDependency.value.version)));
209571
209574
  }
@@ -209580,6 +209583,7 @@ const computePackageJsonChanges = (current, target) => {
209580
209583
  };
209581
209584
  const ensurePinnedDependency = (packageName, currentDependency, targetDependency) => {
209582
209585
  if (isNone(targetDependency)) return;
209586
+ if (isNone(currentDependency) && isSome(current.vitePlusVersion)) return;
209583
209587
  if (isSome(currentDependency) && currentDependency.value.version === targetDependency.value.version && currentDependency.value.dependencyType === targetDependency.value.dependencyType) return;
209584
209588
  if (isNone(currentDependency) && !findDependencyCollectionProperty(rootObj, targetDependency.value.dependencyType) && isSome(target.lspVersion) && target.lspVersion.value.dependencyType === targetDependency.value.dependencyType) return;
209585
209589
  descriptions.push(`${isSome(currentDependency) ? "Update" : "Add"} ${packageName}@${targetDependency.value.version} in ${targetDependency.value.dependencyType}`);
@@ -210627,7 +210631,7 @@ const gatherTargetState = (assessment, context) => gen(function* () {
210627
210631
  }, {
210628
210632
  title: "Oxlint type-aware rules",
210629
210633
  value: "oxlint",
210630
- selected: isSome(assessment.packageJson.oxlintVersion) || isSome(assessment.packageJson.oxlintTsgolintVersion)
210634
+ selected: isSome(assessment.packageJson.oxlintVersion) || isSome(assessment.packageJson.oxlintTsgolintVersion) || isSome(assessment.packageJson.vitePlusVersion)
210631
210635
  }]
210632
210636
  });
210633
210637
  const useTypescript = integrations.includes("typescript");
@@ -210732,14 +210736,14 @@ const gatherTargetState = (assessment, context) => gen(function* () {
210732
210736
  version: context.defaultTypescriptVersion,
210733
210737
  packageName: defaultTypescriptPackageName
210734
210738
  })) : assessment.packageJson.typescriptVersion,
210735
- oxlintVersion: useOxlint ? some({
210739
+ oxlintVersion: useOxlint && (isSome(assessment.packageJson.oxlintVersion) || isNone(assessment.packageJson.vitePlusVersion)) ? some({
210736
210740
  dependencyType: match$8(assessment.packageJson.oxlintVersion, {
210737
210741
  onNone: () => lspDependencyType,
210738
210742
  onSome: (dependency) => dependency.dependencyType
210739
210743
  }),
210740
210744
  version: context.defaultOxlintVersion
210741
210745
  }) : assessment.packageJson.oxlintVersion,
210742
- oxlintTsgolintVersion: useOxlint ? some({
210746
+ oxlintTsgolintVersion: useOxlint && (isSome(assessment.packageJson.oxlintTsgolintVersion) || isNone(assessment.packageJson.vitePlusVersion)) ? some({
210743
210747
  dependencyType: match$8(assessment.packageJson.oxlintTsgolintVersion, {
210744
210748
  onNone: () => lspDependencyType,
210745
210749
  onSome: (dependency) => dependency.dependencyType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/tsgo",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "type": "module",
5
5
  "description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
6
6
  "license": "MIT",
@@ -33,13 +33,13 @@
33
33
  "schema.json"
34
34
  ],
35
35
  "optionalDependencies": {
36
- "@effect/tsgo-win32-x64": "0.32.0",
37
- "@effect/tsgo-win32-arm64": "0.32.0",
38
- "@effect/tsgo-linux-x64": "0.32.0",
39
- "@effect/tsgo-linux-arm64": "0.32.0",
40
- "@effect/tsgo-linux-arm": "0.32.0",
41
- "@effect/tsgo-darwin-x64": "0.32.0",
42
- "@effect/tsgo-darwin-arm64": "0.32.0"
36
+ "@effect/tsgo-win32-x64": "0.32.1",
37
+ "@effect/tsgo-win32-arm64": "0.32.1",
38
+ "@effect/tsgo-linux-x64": "0.32.1",
39
+ "@effect/tsgo-linux-arm64": "0.32.1",
40
+ "@effect/tsgo-linux-arm": "0.32.1",
41
+ "@effect/tsgo-darwin-x64": "0.32.1",
42
+ "@effect/tsgo-darwin-arm64": "0.32.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@effect/platform-node": "^4.0.0-beta.101",