@astrojs/ts-plugin 1.10.5 → 1.10.7

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 (2) hide show
  1. package/dist/astro2tsx.js +2 -2
  2. package/package.json +16 -18
package/dist/astro2tsx.js CHANGED
@@ -14,7 +14,7 @@ function safeConvertToTSX(content, options) {
14
14
  return tsx;
15
15
  }
16
16
  catch (e) {
17
- console.error(`There was an error transforming ${options.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/language-tools/issues\nError: ${e}.`);
17
+ console.error(`There was an error transforming ${options.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/astro/issues\nError: ${e}.`);
18
18
  return {
19
19
  code: '',
20
20
  map: {
@@ -30,7 +30,7 @@ function safeConvertToTSX(content, options) {
30
30
  code: 1000,
31
31
  location: { file: options.filename, line: 1, column: 1, length: content.length },
32
32
  severity: 1,
33
- text: `The Astro compiler encountered an unknown error while parsing this file. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues`,
33
+ text: `The Astro compiler encountered an unknown error while parsing this file. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/astro/issues`,
34
34
  },
35
35
  ],
36
36
  metaRanges: {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@astrojs/ts-plugin",
3
- "version": "1.10.5",
3
+ "version": "1.10.7",
4
4
  "description": "A TypeScript Plugin providing Astro intellisense",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/withastro/language-tools",
10
- "directory": "packages/ts-plugin"
9
+ "url": "git+https://github.com/withastro/astro.git",
10
+ "directory": "packages/language-tools/ts-plugin"
11
11
  },
12
12
  "keywords": [
13
13
  "astro",
@@ -22,29 +22,27 @@
22
22
  "author": "withastro",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@astrojs/compiler": "^2.10.3",
26
- "@astrojs/yaml2ts": "^0.2.2",
27
- "@jridgewell/sourcemap-codec": "^1.4.15",
28
- "@volar/language-core": "~2.4.23",
29
- "@volar/typescript": "~2.4.23",
30
- "semver": "^7.3.8",
31
- "vscode-languageserver-textdocument": "^1.0.11"
25
+ "@astrojs/compiler": "^2.13.1",
26
+ "@astrojs/yaml2ts": "^0.2.3",
27
+ "@jridgewell/sourcemap-codec": "^1.5.5",
28
+ "@volar/language-core": "~2.4.28",
29
+ "@volar/typescript": "~2.4.28",
30
+ "semver": "^7.7.4",
31
+ "vscode-languageserver-textdocument": "^1.0.12"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/chai": "^4.3.5",
35
- "@types/mocha": "^10.0.1",
34
+ "@types/mocha": "^10.0.10",
36
35
  "@types/node": "^20.9.0",
37
- "@types/semver": "^7.3.13",
36
+ "@types/semver": "^7.7.1",
38
37
  "@vscode/test-electron": "^2.5.2",
39
- "chai": "^4.3.7",
40
- "glob": "^8.0.3",
41
- "mocha": "^10.2.0",
38
+ "@vscode/test-cli": "^0.0.12",
39
+ "mocha": "^11.7.5",
42
40
  "typescript": "^5.9.3",
43
- "vscode-uri": "^3.0.8"
41
+ "vscode-uri": "^3.1.0"
44
42
  },
45
43
  "scripts": {
46
44
  "build": "tsc",
47
45
  "dev": "tsc --watch",
48
- "test": "node ./test/runTest.js"
46
+ "test": "vscode-test"
49
47
  }
50
48
  }