@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 +1 -1
- package/scripts/postinstall.mjs +7 -0
package/package.json
CHANGED
package/scripts/postinstall.mjs
CHANGED
|
@@ -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");
|