@enactprotocol/enact-darwin-arm64 2.0.6 → 2.0.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/bin/enact +0 -0
- package/bin/enact.js +19 -3
- package/package.json +1 -1
package/bin/enact
CHANGED
|
Binary file
|
package/bin/enact.js
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// Development shim.
|
|
4
|
-
// In release builds,
|
|
3
|
+
// Development shim - only works in the monorepo during development.
|
|
4
|
+
// In release builds, this should be replaced with the compiled binary.
|
|
5
|
+
|
|
6
|
+
const fs = require("node:fs");
|
|
5
7
|
const path = require("node:path");
|
|
6
8
|
|
|
7
|
-
|
|
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 macOS ARM64 (Apple Silicon).");
|
|
15
|
+
console.error("");
|
|
16
|
+
console.error("The macOS ARM64 binary was not included in this release.");
|
|
17
|
+
console.error("");
|
|
18
|
+
console.error("Workarounds:");
|
|
19
|
+
console.error(" 1. Use Node.js directly: npx @enactprotocol/cli <command>");
|
|
20
|
+
console.error(" 2. Wait for a release with macOS ARM64 binaries");
|
|
21
|
+
console.error(" 3. Build from source: https://github.com/EnactProtocol/enact");
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|