@astrojs/language-server 2.6.0 → 2.6.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.
@@ -67,9 +67,11 @@ function getLanguageModule(astroInstall, ts) {
67
67
  addedFileNames.push(...['./env.d.ts', './astro-jsx.d.ts'].map((filePath) => ts.sys.resolvePath(path.resolve(astroInstall.path, filePath))));
68
68
  // If Astro version is < 4.0.8, add jsx-runtime-augment.d.ts to the files to fake `JSX` being available from "astro/jsx-runtime".
69
69
  // TODO: Remove this once a majority of users are on Astro 4.0.8+, erika - 2023-12-28
70
- if (astroInstall.version.major >= 4 &&
71
- (astroInstall.version.minor > 0 || astroInstall.version.patch >= 8)) {
72
- addedFileNames.push(...['../jsx-runtime-augment.d.ts'].map((filePath) => ts.sys.resolvePath(path.resolve(languageServerDirectory, filePath))));
70
+ if (astroInstall.version.major < 4 ||
71
+ (astroInstall.version.major === 4 &&
72
+ astroInstall.version.minor === 0 &&
73
+ astroInstall.version.patch < 8)) {
74
+ addedFileNames.push(...['../types/jsx-runtime-augment.d.ts'].map((filePath) => ts.sys.resolvePath(path.resolve(languageServerDirectory, filePath))));
73
75
  }
74
76
  }
75
77
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/language-server",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "author": "withastro",
5
5
  "license": "MIT",
6
6
  "repository": {