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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "depository-deploy",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Depository document management system – deployment wizard and installers",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
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 isGlobal = process.argv[1]?.includes('node_modules/.bin') ||
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`]]