depository-deploy 1.0.7 → 1.0.8
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/wizard-server.mjs +2 -1
package/package.json
CHANGED
package/wizard-server.mjs
CHANGED
|
@@ -343,7 +343,8 @@ const server = createServer((req, res) => {
|
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
// Detect if running via npx/global install and pick the right update command
|
|
346
|
-
const
|
|
346
|
+
const scriptPath = process.argv[1] || '';
|
|
347
|
+
const isGlobal = scriptPath.includes('node_modules') ||
|
|
347
348
|
process.env.npm_config_global === 'true';
|
|
348
349
|
const cmd = isGlobal
|
|
349
350
|
? ['npm', ['install', '-g', `${PKG_NAME}@latest`]]
|