@kmlckj/licos-ai-cli 1.0.19 → 1.0.20

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.
@@ -6,4 +6,7 @@ PROJECT_DIR="${LICOS_PROJECT_PATH:-${LICOS_WORKSPACE_PATH:-$(pwd)}}"
6
6
  cd "${PROJECT_DIR}"
7
7
 
8
8
  echo "Installing dependencies..."
9
- pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only
9
+ pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only || {
10
+ echo "Primary registry install failed; retrying with npmjs registry..."
11
+ pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only
12
+ }
@@ -76,13 +76,10 @@ const config = {
76
76
  return;
77
77
  }
78
78
 
79
- const cmd = 'pnpm';
79
+ const cmd = 'bash';
80
80
  const args = [
81
- 'install',
82
- '--registry=https://registry.npmmirror.com',
83
- '--prefer-frozen-lockfile',
84
- '--prefer-offline',
85
- '--reporter=append-only',
81
+ '-lc',
82
+ 'pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only',
86
83
  ];
87
84
  console.log(
88
85
  `\nTriggering: ${cmd} ${args.join(' ')} (running in background)`,
@@ -118,7 +115,7 @@ const config = {
118
115
  console.log(` Log file: ${logFile}`);
119
116
  } catch (error) {
120
117
  console.error('✗ Failed to trigger pnpm install:', error);
121
- console.log(' You can manually run: pnpm install --registry=https://registry.npmmirror.com');
118
+ console.log(' You can manually run: pnpm install --registry=https://registry.npmmirror.com || pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile');
122
119
  }
123
120
  },
124
121
  };
@@ -6,7 +6,7 @@
6
6
  "scripts": {
7
7
  "build": "bash ./scripts/build.sh",
8
8
  "dev": "bash ./scripts/dev.sh",
9
- "ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/nuxt']; process.exit(bins.every((p)=>fs.existsSync(p)||fs.existsSync(p+'.cmd'))?0:1)\" || pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only",
9
+ "ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/nuxt']; process.exit(bins.every((p)=>fs.existsSync(p)||fs.existsSync(p+'.cmd'))?0:1)\" || pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only",
10
10
  "generate": "nuxt generate",
11
11
  "prebuild": "pnpm run ensure:deps",
12
12
  "predev": "pnpm run ensure:deps",