@kmlckj/licos-ai-cli 1.0.18 → 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.
Files changed (27) hide show
  1. package/lib/__templates__/expo/.licosproj/scripts/dev_build.sh +4 -1
  2. package/lib/__templates__/expo/client/app.config.ts +87 -87
  3. package/lib/__templates__/expo/package.json +1 -1
  4. package/lib/__templates__/expo/template.config.js +4 -7
  5. package/lib/__templates__/nextjs/next.config.ts +35 -35
  6. package/lib/__templates__/nextjs/package.json +1 -1
  7. package/lib/__templates__/nextjs/pnpm-lock.yaml +11549 -12072
  8. package/lib/__templates__/nextjs/scripts/prepare.sh +4 -1
  9. package/lib/__templates__/nextjs/src/server.ts +129 -129
  10. package/lib/__templates__/nextjs/template.config.js +4 -7
  11. package/lib/__templates__/nuxt-vue/nuxt.config.ts +180 -180
  12. package/lib/__templates__/nuxt-vue/package.json +1 -1
  13. package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +8586 -8283
  14. package/lib/__templates__/nuxt-vue/scripts/prepare.sh +4 -1
  15. package/lib/__templates__/taro/.licosproj/scripts/dev_build.sh +4 -1
  16. package/lib/__templates__/taro/.licosproj/scripts/dev_run.sh +4 -1
  17. package/lib/__templates__/taro/config/index.ts +352 -352
  18. package/lib/__templates__/taro/package.json +2 -2
  19. package/lib/__templates__/taro/pnpm-lock.yaml +20848 -21212
  20. package/lib/__templates__/vite/package.json +1 -1
  21. package/lib/__templates__/vite/scripts/prepare.sh +4 -1
  22. package/lib/__templates__/vite/server/server.ts +1 -1
  23. package/lib/__templates__/vite/server/vite.ts +11 -3
  24. package/lib/__templates__/vite/template.config.js +4 -7
  25. package/lib/__templates__/vite/vite.config.ts +64 -64
  26. package/lib/cli.js +1 -1
  27. package/package.json +1 -1
@@ -6,7 +6,10 @@ 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 --reporter=append-only
9
+ pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --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
+ }
10
13
 
11
14
  echo "Preparing Nuxt project..."
12
15
  pnpm exec nuxt prepare
@@ -6,5 +6,8 @@ PROJECT_DIR="${LICOS_PROJECT_PATH:-${LICOS_WORKSPACE_PATH:-$(pwd)}}"
6
6
  cd "${PROJECT_DIR}"
7
7
 
8
8
  echo "📦 Ensuring dependencies are installed..."
9
- pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only
9
+ pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --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
+ }
10
13
  echo "✅ Dependencies are ready."
@@ -94,7 +94,10 @@ cleanup_previous_run() {
94
94
  echo "📦 Installing dependencies..."
95
95
  if [[ ! -x "node_modules/.bin/concurrently" ]] || [[ ! -x "node_modules/.bin/tsc" ]] || [[ ! -x "node_modules/.bin/eslint" ]]; then
96
96
  echo "📦 Dependencies are incomplete, installing..."
97
- pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only
97
+ pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || {
98
+ echo "Primary registry install failed; retrying with npmjs registry..."
99
+ pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only
100
+ }
98
101
  echo "✅ Dependencies installed successfully!"
99
102
  else
100
103
  echo "✅ Dependencies already installed."