@tomjs/vite-plugin-vscode 4.1.0 → 4.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.
package/dist/index.d.mts CHANGED
@@ -90,4 +90,4 @@ interface PluginOptions {
90
90
 
91
91
  declare function useVSCodePlugin(options?: PluginOptions): PluginOption;
92
92
 
93
- export { ExtensionOptions, PluginOptions, WebviewOption, useVSCodePlugin as default, useVSCodePlugin };
93
+ export { type ExtensionOptions, type PluginOptions, type WebviewOption, useVSCodePlugin as default, useVSCodePlugin };
package/dist/index.d.ts CHANGED
@@ -90,4 +90,4 @@ interface PluginOptions {
90
90
 
91
91
  declare function useVSCodePlugin(options?: PluginOptions): PluginOption;
92
92
 
93
- export { ExtensionOptions, PluginOptions, WebviewOption, useVSCodePlugin as default, useVSCodePlugin };
93
+ export { type ExtensionOptions, type PluginOptions, type WebviewOption, useVSCodePlugin as default, useVSCodePlugin };
package/dist/index.js CHANGED
@@ -106,7 +106,7 @@ function preMergeOptions(options) {
106
106
  extension: {
107
107
  entry: "extension/index.ts",
108
108
  outDir: "dist-extension",
109
- target: format === "esm" ? ["node18"] : ["es2019", "node14"],
109
+ target: format === "esm" ? ["node20"] : ["es2019", "node14"],
110
110
  format,
111
111
  shims: true,
112
112
  clean: true,
@@ -418,8 +418,8 @@ function useVSCodePlugin(options) {
418
418
  }
419
419
  ];
420
420
  }
421
- var src_default = useVSCodePlugin;
421
+ var index_default = useVSCodePlugin;
422
422
 
423
423
 
424
424
 
425
- exports.default = src_default; exports.useVSCodePlugin = useVSCodePlugin;
425
+ exports.default = index_default; exports.useVSCodePlugin = useVSCodePlugin;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // node_modules/.pnpm/tsup@7.2.0_@swc+core@1.11.24_postcss@8.4.49_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
1
+ // node_modules/.pnpm/tsup@8.4.0_@swc+core@1.11.24_jiti@1.21.0_postcss@8.4.49_tsx@4.19.2_typescript@5.3.3_yaml@2.5.1/node_modules/tsup/assets/esm_shims.js
2
2
  import { fileURLToPath } from "url";
3
3
  import path from "path";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -6,10 +6,10 @@ var getDirname = () => path.dirname(getFilename());
6
6
  var __dirname = /* @__PURE__ */ getDirname();
7
7
 
8
8
  // src/index.ts
9
- import fs from "fs";
10
- import os from "os";
11
- import path2 from "path";
12
- import { cwd } from "process";
9
+ import fs from "node:fs";
10
+ import os from "node:os";
11
+ import path2 from "node:path";
12
+ import { cwd } from "node:process";
13
13
  import { emptyDirSync, readFileSync, readJsonSync } from "@tomjs/node";
14
14
  import merge from "lodash.merge";
15
15
  import { parse as htmlParser } from "node-html-parser";
@@ -113,7 +113,7 @@ function preMergeOptions(options) {
113
113
  extension: {
114
114
  entry: "extension/index.ts",
115
115
  outDir: "dist-extension",
116
- target: format === "esm" ? ["node18"] : ["es2019", "node14"],
116
+ target: format === "esm" ? ["node20"] : ["es2019", "node14"],
117
117
  format,
118
118
  shims: true,
119
119
  clean: true,
@@ -425,8 +425,8 @@ function useVSCodePlugin(options) {
425
425
  }
426
426
  ];
427
427
  }
428
- var src_default = useVSCodePlugin;
428
+ var index_default = useVSCodePlugin;
429
429
  export {
430
- src_default as default,
430
+ index_default as default,
431
431
  useVSCodePlugin
432
432
  };
@@ -10,4 +10,4 @@ interface WebviewHtmlOptions {
10
10
  */
11
11
  declare function getWebviewHtml(options: WebviewHtmlOptions): string;
12
12
 
13
- export { WebviewHtmlOptions, getWebviewHtml as default, getWebviewHtml };
13
+ export { type WebviewHtmlOptions, getWebviewHtml as default, getWebviewHtml };
package/dist/webview.d.ts CHANGED
@@ -10,4 +10,4 @@ interface WebviewHtmlOptions {
10
10
  */
11
11
  declare function getWebviewHtml(options: WebviewHtmlOptions): string;
12
12
 
13
- export { WebviewHtmlOptions, getWebviewHtml as default, getWebviewHtml };
13
+ export { type WebviewHtmlOptions, getWebviewHtml as default, getWebviewHtml };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/vite-plugin-vscode",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Use vue/react to develop 'vscode extension webview', supporting esm/cjs",
5
5
  "keywords": [
6
6
  "vite",
@@ -38,7 +38,7 @@
38
38
  "env.d.ts"
39
39
  ],
40
40
  "engines": {
41
- "node": ">=16"
41
+ "node": ">=18"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public",
@@ -56,7 +56,7 @@
56
56
  "lodash.clonedeep": "^4.5.0",
57
57
  "lodash.merge": "^4.6.2",
58
58
  "node-html-parser": "^6.1.13",
59
- "tsup": "7.2.0"
59
+ "tsup": "^8.4.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@commitlint/cli": "^19.6.0",