@effect/language-service 0.63.1 → 0.63.2

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.
Files changed (3) hide show
  1. package/cli.js +6 -8
  2. package/cli.js.map +1 -1
  3. package/package.json +1 -1
package/cli.js CHANGED
@@ -38404,7 +38404,7 @@ var text9 = text5;
38404
38404
  // package.json
38405
38405
  var package_default = {
38406
38406
  name: "@effect/language-service",
38407
- version: "0.63.1",
38407
+ version: "0.63.2",
38408
38408
  packageManager: "pnpm@8.11.0",
38409
38409
  publishConfig: {
38410
38410
  access: "public",
@@ -39652,6 +39652,7 @@ var findTsConfigFiles = (currentDir) => gen2(function* () {
39652
39652
  });
39653
39653
  var selectTsConfigFile = (currentDir) => gen2(function* () {
39654
39654
  const fs = yield* FileSystem;
39655
+ const path2 = yield* Path2;
39655
39656
  const tsconfigFiles = yield* findTsConfigFiles(currentDir);
39656
39657
  let selectedTsconfigPath;
39657
39658
  if (tsconfigFiles.length === 0) {
@@ -39681,11 +39682,10 @@ var selectTsConfigFile = (currentDir) => gen2(function* () {
39681
39682
  selectedTsconfigPath = selected;
39682
39683
  }
39683
39684
  }
39685
+ selectedTsconfigPath = path2.resolve(selectedTsconfigPath);
39684
39686
  const tsconfigExists = yield* fs.exists(selectedTsconfigPath);
39685
39687
  if (!tsconfigExists) {
39686
- return yield* fail7(
39687
- new TsConfigNotFoundError({ path: selectedTsconfigPath })
39688
- );
39688
+ return yield* new TsConfigNotFoundError({ path: selectedTsconfigPath });
39689
39689
  }
39690
39690
  const tsconfigText = yield* fs.readFileString(selectedTsconfigPath).pipe(
39691
39691
  mapError2((cause2) => new FileReadError({ path: selectedTsconfigPath, cause: cause2 }))
@@ -39703,9 +39703,7 @@ var createAssessmentInput = (currentDir, tsconfigInput) => gen2(function* () {
39703
39703
  const packageJsonPath = path2.join(currentDir, "package.json");
39704
39704
  const packageJsonExists = yield* fs.exists(packageJsonPath);
39705
39705
  if (!packageJsonExists) {
39706
- return yield* fail7(
39707
- new PackageJsonNotFoundError({ path: packageJsonPath })
39708
- );
39706
+ return yield* new PackageJsonNotFoundError({ path: packageJsonPath });
39709
39707
  }
39710
39708
  const packageJsonText = yield* fs.readFileString(packageJsonPath).pipe(
39711
39709
  mapError2((cause2) => new FileReadError({ path: packageJsonPath, cause: cause2 }))
@@ -39737,7 +39735,7 @@ var setup = make58(
39737
39735
  {},
39738
39736
  () => gen2(function* () {
39739
39737
  const path2 = yield* Path2;
39740
- const currentDir = path2.resolve(".");
39738
+ const currentDir = path2.resolve(process.cwd());
39741
39739
  const tsconfigInput = yield* selectTsConfigFile(currentDir);
39742
39740
  const assessmentInput = yield* createAssessmentInput(currentDir, tsconfigInput);
39743
39741
  const assessmentState = yield* assess(assessmentInput);