@afterpack/electron 0.2.6 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -68,8 +68,9 @@ AFTERPACK_SEED=git npm run build
68
68
 
69
69
  ## Keep local files out of app.asar
70
70
 
71
- AfterPack writes its Protection Map to `.afterpack/`. It contains your original source, so exclude
72
- it from the packaged app. The plugin prints this reminder when it finds a packager config:
71
+ When Vite emits source maps, AfterPack writes its Protection Map to `.afterpack/`. It contains your
72
+ original source, so exclude it from the packaged app. The plugin prints this reminder when it finds
73
+ a packager config:
73
74
 
74
75
  ```jsonc
75
76
  // electron-builder
@@ -89,7 +90,7 @@ withAfterpack(config, { preset: "hard", seed: "git" });
89
90
  | [`preset`][preset] | `"minify"`, `"light"`, `"medium"`, `"hard"` or `"extreme"` | `"light"` |
90
91
  | [`seed`][seed] | a number or string; `"git"` uses the current commit | a new random seed per build, shared by every part |
91
92
  | [`identifiers.reserved`][identifiers.reserved] | names never to rename | none |
92
- | [`protectionMap.enabled`][protectionMap.enabled] | write the Protection Map, one per part in `.afterpack/<leg>/` | on when Vite emits source maps |
93
+ | [`protectionMap.enabled`][protectionMap.enabled] | write the Protection Map, one per part in `.afterpack/<leg>/` | on when Vite emits source maps, outside CI |
93
94
  | [`build.autorun`][build.autorun] | `false` turns AfterPack off | `true` |
94
95
  | `leg` | plugin option: `"main"`, `"preload"` or `"renderer"`; required for `afterpackElectron` | set by `withAfterpack` |
95
96
  | `projectRoot` | plugin option: the app root that ties the parts into one build | `process.cwd()` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afterpack/electron",
3
- "version": "0.2.6",
3
+ "version": "1.0.0",
4
4
  "description": "Electron integration for AfterPack: obfuscate the main, preload and renderer bundles of an app with one seed",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -25,19 +25,19 @@
25
25
  "dist"
26
26
  ],
27
27
  "peerDependencies": {
28
- "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
28
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@afterpack/integration-utils": "0.2.6",
32
- "@afterpack/vite": "0.2.6"
31
+ "@afterpack/integration-utils": "1.0.0",
32
+ "@afterpack/vite": "1.0.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@biomejs/biome": "2.4.4",
36
36
  "@types/node": "^22.0.0",
37
37
  "tsdown": "^0.11.0",
38
38
  "typescript": "^5.0.0",
39
- "vite": "^8.0.12",
40
- "vitest": "^2.0.0"
39
+ "vite": "^8.3.4",
40
+ "vitest": "^4.1.12"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=18"