@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.
- package/lib/__templates__/expo/.licosproj/scripts/dev_build.sh +4 -1
- package/lib/__templates__/expo/package.json +1 -1
- package/lib/__templates__/expo/template.config.js +4 -7
- package/lib/__templates__/nextjs/package.json +1 -1
- package/lib/__templates__/nextjs/pnpm-lock.yaml +11549 -12072
- package/lib/__templates__/nextjs/scripts/prepare.sh +4 -1
- package/lib/__templates__/nextjs/template.config.js +4 -7
- package/lib/__templates__/nuxt-vue/package.json +1 -1
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +8586 -8283
- package/lib/__templates__/nuxt-vue/scripts/prepare.sh +4 -1
- package/lib/__templates__/taro/.licosproj/scripts/dev_build.sh +4 -1
- package/lib/__templates__/taro/.licosproj/scripts/dev_run.sh +4 -1
- package/lib/__templates__/taro/package.json +2 -2
- package/lib/__templates__/taro/pnpm-lock.yaml +20848 -21212
- package/lib/__templates__/vite/package.json +1 -1
- package/lib/__templates__/vite/scripts/prepare.sh +4 -1
- package/lib/__templates__/vite/template.config.js +4 -7
- package/lib/cli.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "bash ./scripts/build.sh",
|
|
7
7
|
"dev": "bash ./scripts/dev.sh",
|
|
8
|
-
"ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/vite','node_modules/.bin/tsx','node_modules/.bin/tsup','node_modules/.bin/eslint','node_modules/.bin/tsc']; 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",
|
|
8
|
+
"ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/vite','node_modules/.bin/tsx','node_modules/.bin/tsup','node_modules/.bin/eslint','node_modules/.bin/tsc']; 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",
|
|
9
9
|
"prebuild": "pnpm run ensure:deps",
|
|
10
10
|
"predev": "pnpm run ensure:deps",
|
|
11
11
|
"preinstall": "node -e \"const ua=process.env.npm_config_user_agent||''; if(!ua.includes('pnpm')){console.error('Use pnpm to install dependencies.'); process.exit(1)}\"",
|
|
@@ -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
|
+
}
|
|
@@ -83,13 +83,10 @@ const config = {
|
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
const cmd = '
|
|
86
|
+
const cmd = 'bash';
|
|
87
87
|
const args = [
|
|
88
|
-
'
|
|
89
|
-
'--registry=https://registry.npmmirror.com',
|
|
90
|
-
'--prefer-frozen-lockfile',
|
|
91
|
-
'--prefer-offline',
|
|
92
|
-
'--reporter=append-only',
|
|
88
|
+
'-lc',
|
|
89
|
+
'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',
|
|
93
90
|
];
|
|
94
91
|
console.log(
|
|
95
92
|
`\nTriggering: ${cmd} ${args.join(' ')} (running in background)`,
|
|
@@ -125,7 +122,7 @@ const config = {
|
|
|
125
122
|
console.log(` Log file: ${logFile}`);
|
|
126
123
|
} catch (error) {
|
|
127
124
|
console.error('✗ Failed to trigger pnpm install:', error);
|
|
128
|
-
console.log(' You can manually run: pnpm install --registry=https://registry.npmmirror.com');
|
|
125
|
+
console.log(' You can manually run: pnpm install --registry=https://registry.npmmirror.com || pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile');
|
|
129
126
|
}
|
|
130
127
|
},
|
|
131
128
|
};
|
package/lib/cli.js
CHANGED
|
@@ -2109,7 +2109,7 @@ const EventBuilder = {
|
|
|
2109
2109
|
};
|
|
2110
2110
|
|
|
2111
2111
|
var name = "@kmlckj/licos-ai-cli";
|
|
2112
|
-
var version = "1.0.
|
|
2112
|
+
var version = "1.0.20";
|
|
2113
2113
|
var description = "LICOS AI coding workspace CLI - project template engine and dev tools";
|
|
2114
2114
|
var license = "MIT";
|
|
2115
2115
|
var author = "kmlckj";
|