electron-incremental-update 0.6.3 → 0.7.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.
@@ -124,6 +124,6 @@ type Options = {
124
124
  };
125
125
  };
126
126
 
127
- declare function export_default(options: Options): Plugin;
127
+ declare function ElectronUpdater(options: Options): Plugin;
128
128
 
129
- export { export_default as default };
129
+ export { ElectronUpdater, Options };
package/dist/vite.d.ts CHANGED
@@ -124,6 +124,6 @@ type Options = {
124
124
  };
125
125
  };
126
126
 
127
- declare function export_default(options: Options): Plugin;
127
+ declare function ElectronUpdater(options: Options): Plugin;
128
128
 
129
- export { export_default as default };
129
+ export { ElectronUpdater, Options };
@@ -30,7 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/vite.ts
31
31
  var vite_exports = {};
32
32
  __export(vite_exports, {
33
- default: () => vite_default
33
+ ElectronUpdater: () => ElectronUpdater
34
34
  });
35
35
  module.exports = __toCommonJS(vite_exports);
36
36
  var import_vite = require("vite");
@@ -38,7 +38,7 @@ var import_vite = require("vite");
38
38
  // src/build-plugins/build.ts
39
39
  var import_node_fs = require("fs");
40
40
  var import_promises = require("fs/promises");
41
- var import_node_zlib = __toESM(require("zlib"), 1);
41
+ var import_node_zlib = __toESM(require("zlib"));
42
42
  var import_esbuild = require("esbuild");
43
43
 
44
44
  // src/crypto.ts
@@ -279,7 +279,7 @@ function parseOptions(options) {
279
279
  }
280
280
 
281
281
  // src/vite.ts
282
- function vite_default(options) {
282
+ function ElectronUpdater(options) {
283
283
  const { isBuild, buildAsarOption, buildEntryOption, buildVersionOption } = parseOptions(options);
284
284
  const { entryPath, entryOutputPath } = buildEntryOption;
285
285
  const { asarOutputPath } = buildAsarOption;
@@ -302,3 +302,7 @@ function vite_default(options) {
302
302
  }
303
303
  };
304
304
  }
305
+ // Annotate the CommonJS export names for ESM import in node:
306
+ 0 && (module.exports = {
307
+ ElectronUpdater
308
+ });
package/dist/vite.mjs CHANGED
@@ -224,7 +224,7 @@ function parseOptions(options) {
224
224
  }
225
225
 
226
226
  // src/vite.ts
227
- function vite_default(options) {
227
+ function ElectronUpdater(options) {
228
228
  const { isBuild, buildAsarOption, buildEntryOption, buildVersionOption } = parseOptions(options);
229
229
  const { entryPath, entryOutputPath } = buildEntryOption;
230
230
  const { asarOutputPath } = buildAsarOption;
@@ -248,5 +248,5 @@ function vite_default(options) {
248
248
  };
249
249
  }
250
250
  export {
251
- vite_default as default
251
+ ElectronUpdater
252
252
  };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "electron-incremental-update",
3
3
  "author": "subframe7536",
4
- "version": "0.6.3",
4
+ "version": "0.7.0",
5
5
  "description": "electron incremental update tools, powered by vite",
6
6
  "scripts": {
7
- "build": "tsup",
7
+ "build": "tsup && node fix-module.js",
8
8
  "release": "pnpm test && pnpm run build && bumpp --all && npm publish",
9
9
  "test": "vitest --run"
10
10
  },
@@ -13,34 +13,22 @@
13
13
  "registry": "https://registry.npmjs.org/"
14
14
  },
15
15
  "repository": "https://github.com/subframe7536/electron-incremental-update",
16
- "type": "module",
17
16
  "license": "MIT",
18
17
  "files": [
19
- "dist"
18
+ "dist",
19
+ "vite.js",
20
+ "vite.d.ts"
20
21
  ],
21
- "main": "dist/index.cjs",
22
+ "main": "dist/index.js",
22
23
  "module": "dist/index.mjs",
23
- "types": "dist/index.d.ts",
24
24
  "exports": {
25
25
  ".": {
26
- "import": {
27
- "default": "./dist/index.mjs",
28
- "types": "./dist/index.d.mts"
29
- },
30
- "require": {
31
- "default": "./dist/index.cjs",
32
- "types": "./dist/index.d.ts"
33
- }
26
+ "import": "./dist/index.mjs",
27
+ "require": "./dist/index.js"
34
28
  },
35
29
  "./vite": {
36
- "import": {
37
- "default": "./dist/index.mjs",
38
- "types": "./dist/index.d.mts"
39
- },
40
- "require": {
41
- "default": "./dist/index.cjs",
42
- "types": "./dist/index.d.ts"
43
- }
30
+ "import": "./dist/vite.mjs",
31
+ "require": "./dist/vite.js"
44
32
  }
45
33
  },
46
34
  "keywords": [
package/vite.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/vite'
package/vite.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/vite.js')
File without changes
File without changes