astro-vscode 2.16.13 → 2.16.15

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/package.json CHANGED
@@ -24,12 +24,12 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.16.13",
27
+ "version": "2.16.15",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
31
31
  "engines": {
32
- "vscode": "^1.90.0"
32
+ "vscode": "^1.101.0"
33
33
  },
34
34
  "activationEvents": [
35
35
  "workspaceContains:astro.config.*"
@@ -236,32 +236,33 @@
236
236
  },
237
237
  "devDependencies": {
238
238
  "@astrojs/language-server": "^2.16.6",
239
- "@astrojs/ts-plugin": "^1.10.7",
239
+ "@astrojs/ts-plugin": "^1.10.8",
240
+ "@types/js-yaml": "^4.0.9",
240
241
  "@types/mocha": "^10.0.10",
241
242
  "@types/node": "^20.9.0",
242
- "@types/vscode": "^1.90.0",
243
+ "@types/vscode": "^1.101.0",
243
244
  "@volar/language-server": "~2.4.28",
244
245
  "@volar/vscode": "~2.4.28",
245
- "@vscode/test-electron": "^2.5.2",
246
246
  "@vscode/test-cli": "^0.0.12",
247
+ "@vscode/test-electron": "^2.5.2",
247
248
  "@vscode/vsce": "2.32.0",
248
249
  "esbuild": "^0.17.19",
249
250
  "esbuild-plugin-copy": "^2.1.1",
250
251
  "js-yaml": "^4.1.1",
251
252
  "kleur": "^4.1.5",
252
253
  "mocha": "^11.7.5",
253
- "ovsx": "^0.10.9",
254
+ "ovsx": "^0.10.10",
255
+ "tsx": "^4.21.0",
254
256
  "vscode-languageclient": "^9.0.1",
255
257
  "vscode-tmgrammar-test": "^0.1.3"
256
258
  },
257
259
  "dependencies": {
258
260
  "@astrojs/compiler": "^2.13.1",
259
- "prettier": "^3.8.1",
261
+ "prettier": "^3.8.2",
260
262
  "prettier-plugin-astro": "^0.14.1"
261
263
  },
262
264
  "scripts": {
263
- "prebuild": "cd ../ts-plugin && pnpm build",
264
- "build": "tsc && pnpm prebuild && node scripts/build.mjs -- --minify",
265
+ "build": "tsc -b && node scripts/build.mjs -- --minify",
265
266
  "dev": "node scripts/build.mjs -- --watch",
266
267
  "build:grammar": "node scripts/build-grammar.mjs",
267
268
  "dev:grammar": "node scripts/build-grammar.mjs -- --watch",
package/scripts/build.mjs CHANGED
@@ -72,8 +72,8 @@ export default async function build() {
72
72
  await builder.watch();
73
73
 
74
74
  process.on('beforeExit', () => {
75
- builder.dispose && builder.dispose();
75
+ void builder.dispose?.();
76
76
  });
77
77
  }
78
78
 
79
- build();
79
+ void build();
@@ -1,5 +1,6 @@
1
- const assert = require('node:assert');
2
- const vscode = require('vscode');
1
+ import 'mocha';
2
+ import assert from 'node:assert';
3
+ import vscode from 'vscode';
3
4
 
4
5
  suite('Extension Test Suite', () => {
5
6
  vscode.window.showInformationMessage('Start all tests.');
@@ -56,4 +56,4 @@ async function snapShotTest() {
56
56
  }
57
57
  }
58
58
 
59
- snapShotTest();
59
+ void snapShotTest();
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../../configs/tsconfig.language-tools.json",
3
+ "references": [
4
+ { "path": "../language-server/tsconfig.json" },
5
+ { "path": "../ts-plugin/tsconfig.json" }
6
+ ]
7
+ }
package/tsconfig.json CHANGED
@@ -1,10 +1,5 @@
1
1
  {
2
- "extends": "../tsconfig.json",
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./dist",
6
- "emitDeclarationOnly": true,
7
- "checkJs": true
8
- },
9
- "include": ["src"]
2
+ "extends": "../../../configs/tsconfig.base.json",
3
+ "include": ["./scripts/*.mjs"],
4
+ "references": [{ "path": "./tsconfig.build.json" }, { "path": "./tsconfig.test.json" }]
10
5
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "../../../configs/tsconfig.test.json",
3
+ "include": ["test/**/*.mts", "test/**/*.mjs", "test/**/*.ts", ".vscode-test.*"],
4
+ "references": [{ "path": "./tsconfig.build.json" }]
5
+ }
package/.vscode-test.js DELETED
@@ -1,13 +0,0 @@
1
- const { defineConfig } = require('@vscode/test-cli');
2
-
3
- module.exports = defineConfig([
4
- {
5
- label: 'unitTests',
6
- files: 'test/**/*.test.js',
7
- version: 'stable',
8
- mocha: {
9
- ui: 'tdd',
10
- timeout: 20000,
11
- },
12
- },
13
- ]);