@afterpack/vite 0.1.0 → 0.2.0-rc.20260930T1421

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
@@ -60,8 +60,8 @@ other option is in the [configuration reference](https://www.afterpack.dev/docs/
60
60
  [build.autorun]: https://www.afterpack.dev/docs/config#build-autorun
61
61
 
62
62
  The [Protection Map](https://www.afterpack.dev/docs/protection-map) is written to `.afterpack/`,
63
- and the plugin adds `.afterpack/` and its other local artifacts to your `.gitignore`. It contains
64
- your original source, so never deploy or commit it.
63
+ which carries its own `.gitignore` and self-ignores. It contains your original source, so never
64
+ deploy or commit it.
65
65
 
66
66
  Options can also live in `afterpack.json` or in `AFTERPACK_*` environment variables. The options
67
67
  object wins over the environment, which wins over the file. An unknown or misspelled key fails the
@@ -78,11 +78,13 @@ you.
78
78
 
79
79
  ## Pro
80
80
 
81
- Without a key, AfterPack runs on your machine and applies basic protection. Set
81
+ Without a key, AfterPack runs on your machine with the full pipeline at any preset. Set
82
82
  [`AFTERPACK_KEY`](https://www.afterpack.dev/docs/config#key) in your environment and the same plugin
83
- sends the build to AfterPack's cloud, which applies much stronger protection. Keep the key out of
84
- `vite.config.ts`: the plugin rejects it there, because the config is committed source. See
85
- [AfterPack Pro](https://www.afterpack.dev/docs/pro).
83
+ builds in AfterPack's cloud instead, which adds per-region
84
+ [directives](https://www.afterpack.dev/docs/directives) and two hardening transforms you can turn
85
+ on: self-integrity (anti-tamper) and comparison hardening. Keep the key out of `vite.config.ts`: the
86
+ plugin rejects it there, because the config is committed source. See [AfterPack
87
+ Pro](https://www.afterpack.dev/docs/pro).
86
88
 
87
89
  ## Not supported here
88
90
 
package/dist/index.cjs CHANGED
@@ -109,7 +109,7 @@ function afterpackVite(options = {}) {
109
109
  client: (0, __afterpack_integration_utils.resolveClientIdentity)(require("url").pathToFileURL(__filename).href),
110
110
  telemetry: (0, __afterpack_integration_utils.createTelemetryReporter)(),
111
111
  label,
112
- gitignoreDir: projectRoot,
112
+ cwd: projectRoot,
113
113
  buildLeg: leg,
114
114
  startedAt,
115
115
  capturedByFile: capturedByFile.size > 0 ? capturedByFile : void 0,
package/dist/index.js CHANGED
@@ -86,7 +86,7 @@ function afterpackVite(options = {}) {
86
86
  client: resolveClientIdentity(import.meta.url),
87
87
  telemetry: createTelemetryReporter(),
88
88
  label,
89
- gitignoreDir: projectRoot,
89
+ cwd: projectRoot,
90
90
  buildLeg: leg,
91
91
  startedAt,
92
92
  capturedByFile: capturedByFile.size > 0 ? capturedByFile : void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afterpack/vite",
3
- "version": "0.1.0",
3
+ "version": "0.2.0-rc.20260930T1421",
4
4
  "description": "Vite plugin for AfterPack: obfuscate your production JavaScript during vite build",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -28,8 +28,8 @@
28
28
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@afterpack/core": "~0.1.0",
32
- "@afterpack/integration-utils": "0.1.0"
31
+ "@afterpack/core": "~0.2.0",
32
+ "@afterpack/integration-utils": "0.2.0-rc.20260930T1421"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@biomejs/biome": "2.4.4",