@tomjs/vite-plugin-electron 1.9.0 → 1.9.2

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @tomjs/vite-plugin-electron
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@tomjs/vite-plugin-electron)](https://www.npmjs.com/package/@tomjs/vite-plugin-electron) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/vite-plugin-electron) ![NPM](https://img.shields.io/npm/l/@tomjs/vite-plugin-electron) [![Docs](https://www.paka.dev/badges/v0/cute.svg)](https://www.paka.dev/npm/@tomjs/vite-plugin-electron)
3
+ [![npm](https://img.shields.io/npm/v/@tomjs/vite-plugin-electron)](https://www.npmjs.com/package/@tomjs/vite-plugin-electron) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/vite-plugin-electron) ![NPM](https://img.shields.io/npm/l/@tomjs/vite-plugin-electron) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@tomjs/vite-plugin-electron)
4
4
 
5
5
  **English** | [中文](./README.zh_CN.md)
6
6
 
@@ -188,7 +188,6 @@ export default defineConfig({
188
188
 
189
189
  ## Documentation
190
190
 
191
- - [API Documentation](https://paka.dev/npm/@tomjs/vite-plugin-electron) provided by [paka.dev](https://paka.dev).
192
191
  - [index.d.ts](https://www.unpkg.com/browse/@tomjs/vite-plugin-electron/dist/index.d.ts) provided by [unpkg.com](https://www.unpkg.com).
193
192
 
194
193
  ## Parameters
@@ -215,7 +214,7 @@ The `recommended` option is used to set the default configuration and behavior,
215
214
 
216
215
  ### MainOptions
217
216
 
218
- Based on [Options](https://paka.dev/npm/tsup) of [tsup](https://tsup.egoist.dev/), some default values are added for ease of use.
217
+ Based on [Options](https://www.jsdocs.io/package/tsup) of [tsup](https://tsup.egoist.dev/), some default values are added for ease of use.
219
218
 
220
219
  | Property | Type | Default | Description |
221
220
  | --- | --- | --- | --- |
@@ -226,7 +225,7 @@ Based on [Options](https://paka.dev/npm/tsup) of [tsup](https://tsup.egoist.dev/
226
225
 
227
226
  ### PreloadOptions
228
227
 
229
- Based on [Options](https://paka.dev/npm/tsup) of [tsup](https://tsup.egoist.dev/), some default values are added for ease of use.
228
+ Based on [Options](https://www.jsdocs.io/package/tsup) of [tsup](https://tsup.egoist.dev/), some default values are added for ease of use.
230
229
 
231
230
  | Property | Type | Default | Description |
232
231
  | --- | --- | --- | --- |
package/README.zh_CN.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @tomjs/vite-plugin-electron
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@tomjs/vite-plugin-electron)](https://www.npmjs.com/package/@tomjs/vite-plugin-electron) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/vite-plugin-electron) ![NPM](https://img.shields.io/npm/l/@tomjs/vite-plugin-electron) [![Docs](https://www.paka.dev/badges/v0/cute.svg)](https://www.paka.dev/npm/@tomjs/vite-plugin-electron)
3
+ [![npm](https://img.shields.io/npm/v/@tomjs/vite-plugin-electron)](https://www.npmjs.com/package/@tomjs/vite-plugin-electron) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/vite-plugin-electron) ![NPM](https://img.shields.io/npm/l/@tomjs/vite-plugin-electron) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@tomjs/vite-plugin-electron)
4
4
 
5
5
  [English](./README.md) | **中文**
6
6
 
@@ -189,7 +189,6 @@ export default defineConfig({
189
189
 
190
190
  ## 文档
191
191
 
192
- - [paka.dev](https://paka.dev) 提供的 [API文档](https://paka.dev/npm/@tomjs/vite-plugin-electron).
193
192
  - [unpkg.com](https://www.unpkg.com/) 提供的 [index.d.ts](https://www.unpkg.com/browse/@tomjs/vite-plugin-electron/dist/index.d.ts).
194
193
 
195
194
  ## 参数
@@ -214,7 +213,7 @@ export default defineConfig({
214
213
 
215
214
  ### MainOptions
216
215
 
217
- 继承自 [tsup](https://tsup.egoist.dev/) 的 [Options](https://paka.dev/npm/tsup),添加了一些默认值,方便使用。
216
+ 继承自 [tsup](https://tsup.egoist.dev/) 的 [Options](https://www.jsdocs.io/package/tsup),添加了一些默认值,方便使用。
218
217
 
219
218
  | 参数名 | 类型 | 默认值 | 说明 |
220
219
  | --- | --- | --- | --- |
@@ -225,7 +224,7 @@ export default defineConfig({
225
224
 
226
225
  ### PreloadOptions
227
226
 
228
- 继承自 [tsup](https://tsup.egoist.dev/) 的 [Options](https://paka.dev/npm/tsup),添加了一些默认值,方便使用。
227
+ 继承自 [tsup](https://tsup.egoist.dev/) 的 [Options](https://www.jsdocs.io/package/tsup),添加了一些默认值,方便使用。
229
228
 
230
229
  | 参数名 | 类型 | 默认值 | 说明 |
231
230
  | --- | --- | --- | --- |
package/dist/index.d.mts CHANGED
@@ -3,8 +3,8 @@ import { Configuration } from 'electron-builder';
3
3
  import { Options } from 'tsup';
4
4
 
5
5
  /**
6
- * Electron main process options. See [tsup](https://tsup.egoist.dev/) and [API Doc](https://paka.dev/npm/tsup) for more information.
7
- * @see https://paka.dev/npm/tsup
6
+ * Electron main process options. See [tsup](https://tsup.egoist.dev/) and [API Doc](https://www.jsdocs.io/package/tsup) for more information.
7
+ * @see https://www.jsdocs.io/package/tsup
8
8
  * @see https://unpkg.com/browse/tsup/dist/index.d.ts
9
9
  */
10
10
  interface MainOptions extends Omit<Options, 'entry' | 'format' | 'outDir' | 'watch' | 'onSuccess'> {
@@ -27,8 +27,8 @@ interface MainOptions extends Omit<Options, 'entry' | 'format' | 'outDir' | 'wat
27
27
  onSuccess?: () => Promise<void | undefined | (() => void | Promise<void>)>;
28
28
  }
29
29
  /**
30
- * Electron preload process options. See [tsup](https://tsup.egoist.dev/) and [API Doc](https://paka.dev/npm/tsup) for more information.
31
- * @see https://paka.dev/npm/tsup
30
+ * Electron preload process options. See [tsup](https://tsup.egoist.dev/) and [API Doc](https://www.jsdocs.io/package/tsup) for more information.
31
+ * @see https://www.jsdocs.io/package/tsup
32
32
  * @see https://unpkg.com/browse/tsup/dist/index.d.ts
33
33
  */
34
34
  interface PreloadOptions extends Omit<Options, 'entry' | 'format' | 'outDir' | 'watch' | 'onSuccess'> {
@@ -59,7 +59,7 @@ interface PreloadOptions extends Omit<Options, 'entry' | 'format' | 'outDir' | '
59
59
  interface BuilderOptions {
60
60
  /**
61
61
  * Whether to enable the [electron-builder](https://www.electron.build), the default is false.
62
- * @default true
62
+ * @default false
63
63
  * @deprecated
64
64
  */
65
65
  enable?: boolean;
package/dist/index.d.ts CHANGED
@@ -3,8 +3,8 @@ import { Configuration } from 'electron-builder';
3
3
  import { Options } from 'tsup';
4
4
 
5
5
  /**
6
- * Electron main process options. See [tsup](https://tsup.egoist.dev/) and [API Doc](https://paka.dev/npm/tsup) for more information.
7
- * @see https://paka.dev/npm/tsup
6
+ * Electron main process options. See [tsup](https://tsup.egoist.dev/) and [API Doc](https://www.jsdocs.io/package/tsup) for more information.
7
+ * @see https://www.jsdocs.io/package/tsup
8
8
  * @see https://unpkg.com/browse/tsup/dist/index.d.ts
9
9
  */
10
10
  interface MainOptions extends Omit<Options, 'entry' | 'format' | 'outDir' | 'watch' | 'onSuccess'> {
@@ -27,8 +27,8 @@ interface MainOptions extends Omit<Options, 'entry' | 'format' | 'outDir' | 'wat
27
27
  onSuccess?: () => Promise<void | undefined | (() => void | Promise<void>)>;
28
28
  }
29
29
  /**
30
- * Electron preload process options. See [tsup](https://tsup.egoist.dev/) and [API Doc](https://paka.dev/npm/tsup) for more information.
31
- * @see https://paka.dev/npm/tsup
30
+ * Electron preload process options. See [tsup](https://tsup.egoist.dev/) and [API Doc](https://www.jsdocs.io/package/tsup) for more information.
31
+ * @see https://www.jsdocs.io/package/tsup
32
32
  * @see https://unpkg.com/browse/tsup/dist/index.d.ts
33
33
  */
34
34
  interface PreloadOptions extends Omit<Options, 'entry' | 'format' | 'outDir' | 'watch' | 'onSuccess'> {
@@ -59,7 +59,7 @@ interface PreloadOptions extends Omit<Options, 'entry' | 'format' | 'outDir' | '
59
59
  interface BuilderOptions {
60
60
  /**
61
61
  * Whether to enable the [electron-builder](https://www.electron.build), the default is false.
62
- * @default true
62
+ * @default false
63
63
  * @deprecated
64
64
  */
65
65
  enable?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/vite-plugin-electron",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "A simple vite plugin for electron, supports esm/cjs, support esm in electron v28+",
5
5
  "keywords": [
6
6
  "vite",
@@ -20,9 +20,14 @@
20
20
  "types": "./dist/index.d.ts",
21
21
  "exports": {
22
22
  ".": {
23
- "require": "./dist/index.js",
24
- "import": "./dist/index.mjs",
25
- "types": "./dist/index.d.ts"
23
+ "require": {
24
+ "default": "./dist/index.js",
25
+ "types": "./dist/index.d.ts"
26
+ },
27
+ "import": {
28
+ "default": "./dist/index.mjs",
29
+ "types": "./dist/index.d.mts"
30
+ }
26
31
  }
27
32
  },
28
33
  "files": [
@@ -41,7 +46,7 @@
41
46
  "url": "git+https://github.com/tomjs/vite-plugin-electron.git"
42
47
  },
43
48
  "dependencies": {
44
- "dayjs": "^1.11.10",
49
+ "dayjs": "^1.11.12",
45
50
  "kolorist": "^1.8.0",
46
51
  "lodash.clonedeep": "^4.5.0",
47
52
  "lodash.merge": "^4.6.2",
@@ -50,26 +55,25 @@
50
55
  "tsup": "7.2.0"
51
56
  },
52
57
  "devDependencies": {
53
- "@commitlint/cli": "^18.4.3",
54
- "@tomjs/commitlint": "^2.1.1",
55
- "@tomjs/eslint": "^1.2.1",
56
- "@tomjs/prettier": "^1.1.1",
57
- "@tomjs/stylelint": "^2.1.1",
58
- "@tomjs/tsconfig": "^1.2.1",
58
+ "@commitlint/cli": "^19.3.0",
59
+ "@tomjs/commitlint": "^3.3.0",
60
+ "@tomjs/eslint": "^3.3.0",
61
+ "@tomjs/prettier": "^1.4.1",
62
+ "@tomjs/stylelint": "^2.6.1",
63
+ "@tomjs/tsconfig": "^1.7.1",
59
64
  "@types/lodash.clonedeep": "^4.5.9",
60
65
  "@types/lodash.merge": "^4.6.9",
61
- "@types/node": "^18.19.3",
66
+ "@types/node": "^18.19.42",
62
67
  "@types/shelljs": "^0.8.15",
63
- "eslint": "^8.56.0",
64
- "husky": "^8.0.3",
65
- "lint-staged": "^15.2.0",
66
- "np": "^9.2.0",
68
+ "eslint": "^8.57.0",
69
+ "husky": "^9.1.4",
70
+ "lint-staged": "^15.2.7",
67
71
  "npm-run-all": "^4.1.5",
68
- "prettier": "^3.1.1",
69
- "rimraf": "^5.0.5",
70
- "stylelint": "^16.0.2",
71
- "tsx": "^4.7.0",
72
- "typescript": "~5.3.3"
72
+ "prettier": "^3.3.3",
73
+ "rimraf": "^6.0.1",
74
+ "stylelint": "^16.8.1",
75
+ "tsx": "^4.16.5",
76
+ "typescript": "~5.5.4"
73
77
  },
74
78
  "peerDependencies": {
75
79
  "electron": ">=12.0.0",
@@ -81,6 +85,7 @@
81
85
  "optional": true
82
86
  }
83
87
  },
88
+ "packageManager": "pnpm@8.15.8",
84
89
  "scripts": {
85
90
  "dev": "tsup --watch",
86
91
  "build": "tsup",