@enactprotocol/enact-win32-x64 2.0.7 → 2.0.10

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/bin/enact.exe ADDED
Binary file
package/bin/enact.js CHANGED
@@ -1,7 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // Development shim.
4
- // In release builds, replace this file with the real compiled binary.
3
+ // Development shim - only works in the monorepo during development.
4
+ // In release builds, this should be replaced with the compiled binary (enact.exe).
5
+
6
+ const fs = require("node:fs");
5
7
  const path = require("node:path");
6
8
 
7
- require(path.join(__dirname, "..", "..", "cli", "dist", "index.js"));
9
+ // Check if we're in the monorepo (dev mode)
10
+ const cliPath = path.join(__dirname, "..", "..", "cli", "dist", "index.js");
11
+ if (fs.existsSync(cliPath)) {
12
+ require(cliPath);
13
+ } else {
14
+ console.error("Error: Enact binary not found for Windows x64.");
15
+ console.error("");
16
+ console.error("The Windows binary was not included in this release.");
17
+ console.error("This can happen if the release was built without Windows CI.");
18
+ console.error("");
19
+ console.error("Workarounds:");
20
+ console.error(" 1. Use Node.js directly: npx @enactprotocol/cli <command>");
21
+ console.error(" 2. Wait for a release with Windows binaries");
22
+ console.error(" 3. Build from source: https://github.com/EnactProtocol/enact");
23
+ process.exit(1);
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enactprotocol/enact-win32-x64",
3
- "version": "2.0.7",
3
+ "version": "2.0.10",
4
4
  "description": "Enact prebuilt binary for win32-x64",
5
5
  "license": "Apache-2.0",
6
6
  "os": ["win32"],