@tomjs/vite-plugin-electron 1.9.1 → 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://img.shields.io/badge/API-unpkg-orange)](https://www.unpkg.com/browse/@tomjs/vite-plugin-electron/dist/index.d.ts)
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
 
@@ -214,7 +214,7 @@ The `recommended` option is used to set the default configuration and behavior,
214
214
 
215
215
  ### MainOptions
216
216
 
217
- 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.
218
218
 
219
219
  | Property | Type | Default | Description |
220
220
  | --- | --- | --- | --- |
@@ -225,7 +225,7 @@ Based on [Options](https://paka.dev/npm/tsup) of [tsup](https://tsup.egoist.dev/
225
225
 
226
226
  ### PreloadOptions
227
227
 
228
- 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.
229
229
 
230
230
  | Property | Type | Default | Description |
231
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://img.shields.io/badge/API-unpkg-orange)](https://www.unpkg.com/browse/@tomjs/vite-plugin-electron/dist/index.d.ts)
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
 
@@ -213,7 +213,7 @@ export default defineConfig({
213
213
 
214
214
  ### MainOptions
215
215
 
216
- 继承自 [tsup](https://tsup.egoist.dev/) 的 [Options](https://paka.dev/npm/tsup),添加了一些默认值,方便使用。
216
+ 继承自 [tsup](https://tsup.egoist.dev/) 的 [Options](https://www.jsdocs.io/package/tsup),添加了一些默认值,方便使用。
217
217
 
218
218
  | 参数名 | 类型 | 默认值 | 说明 |
219
219
  | --- | --- | --- | --- |
@@ -224,7 +224,7 @@ export default defineConfig({
224
224
 
225
225
  ### PreloadOptions
226
226
 
227
- 继承自 [tsup](https://tsup.egoist.dev/) 的 [Options](https://paka.dev/npm/tsup),添加了一些默认值,方便使用。
227
+ 继承自 [tsup](https://tsup.egoist.dev/) 的 [Options](https://www.jsdocs.io/package/tsup),添加了一些默认值,方便使用。
228
228
 
229
229
  | 参数名 | 类型 | 默认值 | 说明 |
230
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.1",
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",
@@ -46,7 +46,7 @@
46
46
  "url": "git+https://github.com/tomjs/vite-plugin-electron.git"
47
47
  },
48
48
  "dependencies": {
49
- "dayjs": "^1.11.10",
49
+ "dayjs": "^1.11.12",
50
50
  "kolorist": "^1.8.0",
51
51
  "lodash.clonedeep": "^4.5.0",
52
52
  "lodash.merge": "^4.6.2",
@@ -55,25 +55,25 @@
55
55
  "tsup": "7.2.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@commitlint/cli": "^18.4.3",
59
- "@tomjs/commitlint": "^2.1.1",
60
- "@tomjs/eslint": "^1.2.1",
61
- "@tomjs/prettier": "^1.1.1",
62
- "@tomjs/stylelint": "^2.1.1",
63
- "@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",
64
64
  "@types/lodash.clonedeep": "^4.5.9",
65
65
  "@types/lodash.merge": "^4.6.9",
66
- "@types/node": "^18.19.3",
66
+ "@types/node": "^18.19.42",
67
67
  "@types/shelljs": "^0.8.15",
68
- "eslint": "^8.56.0",
69
- "husky": "^8.0.3",
70
- "lint-staged": "^15.2.0",
68
+ "eslint": "^8.57.0",
69
+ "husky": "^9.1.4",
70
+ "lint-staged": "^15.2.7",
71
71
  "npm-run-all": "^4.1.5",
72
- "prettier": "^3.1.1",
73
- "rimraf": "^5.0.5",
74
- "stylelint": "^16.0.2",
75
- "tsx": "^4.7.0",
76
- "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"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "electron": ">=12.0.0",