@boxes-dev/cli 1.0.573 → 1.0.578

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxes-dev/cli",
3
- "version": "1.0.573",
3
+ "version": "1.0.578",
4
4
  "description": "Boxes.dev CLI (standalone, includes bundled Node runtime)",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -81,6 +81,13 @@ async function downloadFile(url, dest) {
81
81
  // ---------------------------------------------------------------------------
82
82
 
83
83
  async function main() {
84
+ // Only run during a real global install. npm sets npm_config_global=true for
85
+ // `npm install -g`. During workspace version bumps, local installs, or other
86
+ // npm lifecycle invocations this env var is absent or false, so we skip.
87
+ if (process.env.npm_config_global !== "true") {
88
+ return;
89
+ }
90
+
84
91
  const platformKey = getPlatformKey();
85
92
  const devboxDir = getDevboxDir();
86
93
  const standaloneDir = path.join(devboxDir, "standalone");