@tomjs/vite-plugin-vscode 5.1.0 → 5.2.0

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.
@@ -10,7 +10,7 @@ import { parse } from "node-html-parser";
10
10
  import { build } from "tsdown";
11
11
  import Logger from "@tomjs/logger";
12
12
 
13
- //#region node_modules/.pnpm/tsdown@0.15.12_publint@0.3.15_typescript@5.8.3_unrun@0.2.14_synckit@0.11.11__vue-tsc@3.1.5_typescript@5.8.3_/node_modules/tsdown/esm-shims.js
13
+ //#region node_modules/.pnpm/tsdown@0.18.1_publint@0.3.16_synckit@0.11.11_typescript@5.9.3_vue-tsc@3.2.0_typescript@5.9.3_/node_modules/tsdown/esm-shims.js
14
14
  const getFilename = () => fileURLToPath(import.meta.url);
15
15
  const getDirname = () => path.dirname(getFilename());
16
16
  const __dirname = /* @__PURE__ */ getDirname();
@@ -232,7 +232,7 @@ function useVSCodePlugin(options) {
232
232
  logger.info("extension build start");
233
233
  let buildCount = 0;
234
234
  const webview = opts?.webview;
235
- const { onSuccess: _onSuccess, ignoreWatch, silent, watchFiles,...tsdownOptions } = opts.extension || {};
235
+ const { onSuccess: _onSuccess, ignoreWatch, silent, watchFiles, ...tsdownOptions } = opts.extension || {};
236
236
  await build(merge(tsdownOptions, {
237
237
  watch: watchFiles ?? (opts.recommended ? ["extension"] : true),
238
238
  ignoreWatch: [
@@ -303,7 +303,7 @@ function useVSCodePlugin(options) {
303
303
  VITE_WEBVIEW_DIST: outDir
304
304
  };
305
305
  logger.info("extension build start");
306
- const { onSuccess: _onSuccess, silent,...tsupOptions } = opts.extension || {};
306
+ const { onSuccess: _onSuccess, silent, ...tsupOptions } = opts.extension || {};
307
307
  build(merge(tsupOptions, {
308
308
  env,
309
309
  silent: silent ?? true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tomjs/vite-plugin-vscode",
3
3
  "type": "module",
4
- "version": "5.1.0",
4
+ "version": "5.2.0",
5
5
  "description": "Use vue/react to develop 'vscode extension webview', supporting esm/cjs",
6
6
  "author": {
7
7
  "name": "Tom Gao",
@@ -21,16 +21,17 @@
21
21
  "extension",
22
22
  "webview",
23
23
  "esm",
24
- "cjs"
24
+ "cjs",
25
+ "mjs"
25
26
  ],
26
27
  "exports": {
27
- ".": "./dist/index.js",
28
- "./webview": "./dist/webview.js",
28
+ ".": "./dist/index.mjs",
29
+ "./webview": "./dist/webview.mjs",
29
30
  "./client": "./dist/client.iife.js",
30
31
  "./env": "./env.d.ts"
31
32
  },
32
- "module": "./dist/index.js",
33
- "types": "./dist/index.d.ts",
33
+ "module": "./dist/index.mjs",
34
+ "types": "./dist/index.d.mts",
34
35
  "files": [
35
36
  "dist",
36
37
  "env.d.ts"
@@ -48,38 +49,38 @@
48
49
  "dependencies": {
49
50
  "@tomjs/logger": "^1.4.0",
50
51
  "@tomjs/node": "^2.2.3",
51
- "dayjs": "^1.11.13",
52
- "execa": "^8.0.1",
52
+ "dayjs": "^1.11.19",
53
+ "execa": "^9.6.1",
53
54
  "kolorist": "^1.8.0",
54
55
  "lodash.clonedeep": "^4.5.0",
55
56
  "lodash.merge": "^4.6.2",
56
57
  "node-html-parser": "^7.0.1",
57
- "tsdown": "~0.15.12"
58
+ "tsdown": "~0.18.1"
58
59
  },
59
60
  "devDependencies": {
60
- "@antfu/eslint-config": "^6.2.0",
61
- "@commitlint/cli": "^20.1.0",
61
+ "@antfu/eslint-config": "^6.7.1",
62
+ "@commitlint/cli": "^20.2.0",
62
63
  "@tomjs/commitlint": "^5.0.0",
63
64
  "@tomjs/eslint": "^6.0.0",
64
65
  "@tomjs/stylelint": "^7.0.0",
65
- "@tomjs/tsconfig": "^2.1.0",
66
+ "@tomjs/tsconfig": "^2.2.0",
66
67
  "@types/lodash.clonedeep": "^4.5.9",
67
68
  "@types/lodash.merge": "^4.6.9",
68
- "@types/node": "20.19.25",
69
- "@vitejs/plugin-vue": "^6.0.2",
69
+ "@types/node": "^20.19.27",
70
+ "@vitejs/plugin-vue": "^6.0.3",
70
71
  "cross-env": "^10.1.0",
71
- "eslint": "^9.39.1",
72
+ "eslint": "^9.39.2",
72
73
  "globals": "^16.5.0",
73
74
  "lint-staged": "^16.2.7",
74
75
  "npm-run-all": "^4.1.5",
75
- "publint": "^0.3.15",
76
+ "publint": "^0.3.16",
76
77
  "rimraf": "^6.1.2",
77
78
  "simple-git-hooks": "^2.13.1",
78
79
  "stylelint": "^16.26.1",
79
- "tsx": "^4.20.6",
80
- "typescript": "~5.8.3",
81
- "vite": "^7.2.4",
82
- "vue-tsc": "^3.1.5"
80
+ "tsx": "^4.21.0",
81
+ "typescript": "~5.9.3",
82
+ "vite": "^7.3.0",
83
+ "vue-tsc": "^3.2.0"
83
84
  },
84
85
  "scripts": {
85
86
  "dev": "pnpm clean && tsdown --watch",
File without changes
File without changes
File without changes