@instawp/cli 0.0.1-beta.5 → 0.0.1-beta.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.1-beta.9 (2026-05-23)
4
+
5
+ ### Internals
6
+ - CI smoke test now verifies the bundle by extracting the packed tarball directly (via `tar -xzf`) and running `rsync.exe` from the extract dir. Replaces the `npm install -g` step, which was failing on the GHA Windows runner due to Defender quarantine interactions (tamper protection prevented our exclusion settings from taking effect). Real-user installs are not affected — Defender on individual developer machines is configurable and the first reported Windows install showed the bundle landing at the correct path.
7
+
8
+ ## 0.0.1-beta.8 (2026-05-23)
9
+
10
+ ### Bug Fixes (Windows)
11
+ - Moved bundled Windows binaries from `bin/win32/` to `vendor/win32/`. With `bin/` and the `bin` field in package.json both set, npm's global install on Windows dropped the `bin/win32/` subdirectory — leaving the CLI unable to find rsync.exe at runtime. macOS/Linux installs were unaffected. Renaming sidesteps the collision entirely.
12
+
13
+ ## 0.0.1-beta.7 (2026-05-23)
14
+
15
+ ### Internals
16
+ - Smoke-windows CI job now runs the bundled `rsync.exe` and `busybox.exe` directly from the workspace bundle **before** the npm-install step, so a passing smoke test proves the DLL chain is correct independent of whether antivirus interferes with the global install path.
17
+ - Adds Windows Defender exclusions before `npm i -g` to prevent msys DLLs from being quarantined during install.
18
+ - Publish job now skips on `workflow_dispatch` (manual triggers), so maintainers can re-test the smoke job without bumping the version.
19
+
20
+ ## 0.0.1-beta.6 (2026-05-23)
21
+
22
+ ### Bug Fixes (Windows)
23
+ - Bundled `rsync.exe` now actually loads. beta.4/beta.5 shipped with `msys-2.0.dll` from the legacy `msys2-runtime-3.3` fork, which is missing the `fallocate` symbol that rsync 3.4 needs — produced `Entry Point Not Found: fallocate` on launch and exit code `3221225785` (`STATUS_DLL_INIT_FAILED`) when invoked indirectly via `sync push/pull` or `local clone`.
24
+ - Rebuilt the Windows bundle against current MSYS2 packages: `msys2-runtime-3.6.9-1`, `libopenssl-3.6.2-1`, `libiconv-1.19-1`, `libxxhash-0.8.3-1`, `libzstd-1.5.7-1`, `popt-1.19-1`, `libintl-0.22.5-1`. Includes `msys-popt-0.dll` and `msys-intl-8.dll` which the newer rsync now requires.
25
+ - Upgraded bundled rsync from 3.4.0 → 3.4.2-2.
26
+
27
+ ### Internals
28
+ - `scripts/fetch-windows-binaries.sh` now verifies DLL closure (every referenced `msys-*.dll` is present) and asserts `fallocate` is exported from `msys-2.0.dll` before declaring the bundle valid. Catches "wrong runtime fork" regressions at build time.
29
+ - Added `smoke-windows` job to the publish workflow — runs on `windows-latest` and actually executes the bundled `rsync.exe` and `busybox.exe` before npm publish. Publish is now gated on this passing.
30
+
3
31
  ## 0.0.1-beta.5 (2026-05-23)
4
32
 
5
33
  ### New Commands
@@ -4,10 +4,15 @@ import { resolveFromModule } from './paths.js';
4
4
  /**
5
5
  * Path to the bundled Windows binaries directory, resolved relative to this
6
6
  * module's location at runtime. After build, this module lives in
7
- * `dist/lib/windows-binaries.js`, so `../../bin/win32` lands at
8
- * `<package-root>/bin/win32`.
7
+ * `dist/lib/windows-binaries.js`, so `../../vendor/win32` lands at
8
+ * `<package-root>/vendor/win32`.
9
+ *
10
+ * NOTE: directory is named `vendor/win32` (not `bin/win32`) deliberately —
11
+ * npm's handling of the `bin` field interacts badly with a same-named `bin/`
12
+ * directory on Windows during global install (the subdir gets dropped),
13
+ * so we keep our bundled tools out of the conventional `bin/` slot.
9
14
  */
10
- const WIN_BIN_DIR = resolveFromModule(import.meta.url, '..', '..', 'bin', 'win32');
15
+ const WIN_BIN_DIR = resolveFromModule(import.meta.url, '..', '..', 'vendor', 'win32');
11
16
  function bundled(name) {
12
17
  if (process.platform !== 'win32')
13
18
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"windows-binaries.js","sourceRoot":"","sources":["../../src/lib/windows-binaries.ts"],"names":[],"mappings":"AAAA,OAA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AC,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IAClC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAClC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,OAAO,CAAC,WAAW,CAAC,CAAC;AAC9B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC;AAChC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instawp/cli",
3
- "version": "0.0.1-beta.5",
3
+ "version": "0.0.1-beta.9",
4
4
  "description": "InstaWP CLI - Create and manage WordPress sites from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "dist",
11
11
  "!dist/__tests__",
12
12
  "scripts/mysql2sqlite",
13
- "bin/win32/**",
13
+ "vendor/win32/**",
14
14
  "CHANGELOG.md"
15
15
  ],
16
16
  "scripts": {
Binary file
Binary file
index 42f6106..411c062 100755
Binary file
Binary file
Binary file
Binary file
index 1058b16..d007b5c 100755
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
File without changes
File without changes
File without changes