@cloudbase/cli 2.11.3-beta.0 → 2.11.3
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/dist/standalone/cli.js +7 -19
- package/package.json +1 -1
package/dist/standalone/cli.js
CHANGED
|
@@ -25973,7 +25973,6 @@ const common_1 = __webpack_require__(48431);
|
|
|
25973
25973
|
const decorators_1 = __webpack_require__(93480);
|
|
25974
25974
|
const error_1 = __webpack_require__(66759);
|
|
25975
25975
|
const utils_1 = __webpack_require__(27821);
|
|
25976
|
-
const utils_2 = __webpack_require__(82079);
|
|
25977
25976
|
let LowCodeDepsInstall = class LowCodeDepsInstall extends common_1.Command {
|
|
25978
25977
|
get options() {
|
|
25979
25978
|
return {
|
|
@@ -25994,7 +25993,7 @@ let LowCodeDepsInstall = class LowCodeDepsInstall extends common_1.Command {
|
|
|
25994
25993
|
};
|
|
25995
25994
|
}
|
|
25996
25995
|
execute(options, log) {
|
|
25997
|
-
var _a, _b, _c;
|
|
25996
|
+
var _a, _b, _c, _d;
|
|
25998
25997
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25999
25998
|
const meta = yield (0, utils_1.getInstalledLowcodeMeta)();
|
|
26000
25999
|
if (meta.satisfied && !options.force) {
|
|
@@ -26005,18 +26004,15 @@ let LowCodeDepsInstall = class LowCodeDepsInstall extends common_1.Command {
|
|
|
26005
26004
|
if (registry) {
|
|
26006
26005
|
(_b = log === null || log === void 0 ? void 0 : log.info) === null || _b === void 0 ? void 0 : _b.call(log, `使用 registry: ${registry}`);
|
|
26007
26006
|
}
|
|
26008
|
-
|
|
26009
|
-
loading.start('依赖安装中...(首次安装可能较慢,请耐心等待)');
|
|
26007
|
+
(_c = log === null || log === void 0 ? void 0 : log.info) === null || _c === void 0 ? void 0 : _c.call(log, '依赖安装中...(首次安装可能较慢,请耐心等待)');
|
|
26010
26008
|
try {
|
|
26011
26009
|
yield (0, utils_1.installLowcodeDeps)({ force: options.force, registry });
|
|
26012
|
-
loading.succeed('低码依赖安装完成');
|
|
26013
26010
|
}
|
|
26014
26011
|
catch (e) {
|
|
26015
|
-
loading.fail('低码依赖安装失败');
|
|
26016
26012
|
const message = e instanceof Error ? e.message : String(e);
|
|
26017
26013
|
throw new error_1.CloudBaseError(`低码依赖安装失败:${message}`);
|
|
26018
26014
|
}
|
|
26019
|
-
(
|
|
26015
|
+
(_d = log === null || log === void 0 ? void 0 : log.success) === null || _d === void 0 ? void 0 : _d.call(log, '低码依赖安装完成');
|
|
26020
26016
|
});
|
|
26021
26017
|
}
|
|
26022
26018
|
};
|
|
@@ -43477,7 +43473,7 @@ module.exports = function generate_pattern(it, $keyword, $ruleType) {
|
|
|
43477
43473
|
/***/ ((module) => {
|
|
43478
43474
|
|
|
43479
43475
|
"use strict";
|
|
43480
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@cloudbase/cli","version":"2.11.3
|
|
43476
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@cloudbase/cli","version":"2.11.3","description":"cli tool for cloudbase","main":"lib/index.js","scripts":{"build":"rimraf lib types && tsc --resolveJsonModule && cpx \\"src/**/*.html\\" lib","watch":"rimraf lib types && tsc -w","dev":"rimraf lib types && cpx \\"src/**/*.html\\" lib && tsc -w","eslint":"eslint \\"./**/*.ts\\"","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --forceExit --detectOpenHandles --coverage --verbose --testTimeout=10000","tsc":"tsc","pkg":"pkg ./bin/cloudbase.js --out-path ./pkg","postinstall":"node ./post-install.js || exit 0 && patch-package","prepublishOnly":"npm run build","debug":"bin/tcb.js lowcode watch","build:bundle":"webpack --config build/webpack/cli.cjs && webpack --config build/webpack/ccr.cjs","package:darwin-arm64":"OS=darwin ARCH=arm64 VERSION= node -e \\"require(\'child_process\').execSync(\'bash build/scripts/package.sh\',{stdio:\'inherit\'})\\"","package:darwin-x64":"OS=darwin ARCH=x64 VERSION= node -e \\"require(\'child_process\').execSync(\'bash build/scripts/package.sh\',{stdio:\'inherit\'})\\"","package:linux-arm64":"OS=linux ARCH=arm64 VERSION= node -e \\"require(\'child_process\').execSync(\'bash build/scripts/package.sh\',{stdio:\'inherit\'})\\"","package:linux-x64":"OS=linux ARCH=x64 VERSION= node -e \\"require(\'child_process\').execSync(\'bash build/scripts/package.sh\',{stdio:\'inherit\'})\\"","package:all":"bash build/scripts/build-all.sh","node:fetch:one":"node -e \\"require(\'child_process\').execSync(\'bash build/scripts/fetch-node.sh\',{stdio:\'inherit\'})\\"","node:fetch:all":"NODE_VERSION=22.18.0 bash build/scripts/fetch-node.sh --all","node:fetch:win-x64":"OS=windows ARCH=x64 NODE_VERSION=22.18.0 bash build/scripts/fetch-node.sh","node:fetch:win-arm64":"OS=windows ARCH=arm64 NODE_VERSION=22.18.0 bash build/scripts/fetch-node.sh","package:windows-x64":"OS=windows ARCH=x64 VERSION= node -e \\"require(\'child_process\').execSync(\'bash build/scripts/package.sh\',{stdio:\'inherit\'})\\"","package:windows-arm64":"OS=windows ARCH=arm64 VERSION= node -e \\"require(\'child_process\').execSync(\'bash build/scripts/package.sh\',{stdio:\'inherit\'})\\"","package:windows-all":"npm run -s node:fetch:win-x64 && npm run -s node:fetch:win-arm64 && npm run -s package:windows-x64 && npm run -s package:windows-arm64","package:npm":"npm run build && npm run build:bundle && bash build/scripts/prepare-publish.sh","out:prune":"bash build/scripts/prune-out.sh","i18n:scan":"i18next-scanner --config locales/i18next-scanner.config.js && node locales/scripts/generate.js","i18n:sync":"node locales/scripts/sync.js sync"},"repository":{"type":"git","url":"https://github.com/TencentCloudBase/cloud-base-cli.git"},"bin":{"ccr":"bin/ccr.js","cloudbase":"bin/cloudbase.js","cloudbase-mcp":"bin/cloudbase-mcp.cjs","tcb":"bin/tcb.js"},"husky":{"hooks":{"pre-commit":"npm run build"}},"author":"cwuyiqing@gmail.com","license":"ISC","dependencies":{"@cloudbase/cloud-api":"^0.5.5","@cloudbase/cloudbase-mcp":"^2.0.2","@cloudbase/framework-core":"^1.9.7","@cloudbase/functions-framework":"1.16.0","@cloudbase/iac-core":"0.0.3-alpha.11","@cloudbase/lowcode-cli":"^0.23.0","@cloudbase/manager-node":"4.6.6","@cloudbase/toolbox":"^0.7.9","@dotenvx/dotenvx":"^1.48.3","@musistudio/claude-code-router":"1.0.36","address":"^1.1.2","camelcase-keys":"^7.0.2","chalk":"^2.4.2","cli-table3":"^0.5.1","commander":"7","del":"^5.1.0","didyoumean":"^1.2.2","enquirer":"^2.3.6","execa":"^4.0.3","figlet":"^1.7.0","fs-extra":"^8.1.0","gradient-string":"^2.0.2","https-proxy-agent":"^5.0.1","i":"^0.3.7","inquirer":"^6.5.0","json-schema-to-typescript":"^14.0.5","lodash":"^4.17.21","log-symbols":"^3.0.0","lowdb":"^1.0.0","make-dir":"^3.0.0","node-fetch":"^2.6.0","nodemon":"^3.1.4","npm":"^11.5.2","open":"^7.0.0","ora":"^4.0.2","os-locale":"5.0.0","patch-package":"^8.0.0","portfinder":"^1.0.28","progress":"^2.0.3","query-string":"^6.8.1","reflect-metadata":"^0.1.13","semver":"^7.3.7","simple-git":"^3.28.0","tar-fs":"^2.0.1","terminal-link":"^2.1.1","toml":"^3.0.0","unzipper":"^0.10.10","update-notifier":"^4.0.0","xdg-basedir":"^4.0.0","yargs":"^16.2.0","yargs-parser":"^21.0.1","zod":"^4.0.13"},"devDependencies":{"@babel/parser":"^7.28.4","@babel/traverse":"^7.28.4","@babel/types":"^7.28.4","@types/fs-extra":"^11.0.4","@types/jest":"^27","@types/koa__router":"^8.0.11","@types/lodash":"^4.14.182","@types/node":"^12.12.38","@types/node-fetch":"^2.5.4","@types/react":"^17.0.37","@types/semver":"^7.3.9","@types/unzipper":"^0.10.11","@types/webpack-dev-server":"^3.11.1","@typescript-eslint/eslint-plugin":"^4.8.1","@typescript-eslint/parser":"^4.8.1","cpx":"^1.5.0","eslint":"^7.14.0","eslint-config-alloy":"^3.8.2","husky":"^3.0.9","i18next-scanner":"^4.6.0","jest":"^27","rimraf":"^3.0.2","ts-jest":"^27","typescript":"^4.7.2","webpack":"^5.92.0","webpack-cli":"^5.1.4"},"packageManager":"yarn@3.6.2+sha512.2c2f8b9615e6659773f65cdec7cf92ef773a98a99e611579601f61c7a91ec94c89c929aac86f1cee819421a9b0db7acfd53ec3ebb95af44f77f77634b08b9557"}');
|
|
43481
43477
|
|
|
43482
43478
|
/***/ }),
|
|
43483
43479
|
|
|
@@ -168034,7 +168030,6 @@ const path_1 = __importDefault(__webpack_require__(16928));
|
|
|
168034
168030
|
const fs_extra_1 = __importDefault(__webpack_require__(21605));
|
|
168035
168031
|
const semver_1 = __importDefault(__webpack_require__(21970));
|
|
168036
168032
|
const enquirer_1 = __webpack_require__(21124);
|
|
168037
|
-
const utils_1 = __webpack_require__(82079);
|
|
168038
168033
|
const { createRequire } = __webpack_require__(73339);
|
|
168039
168034
|
const LOWCODE_PKG_NAME = '@cloudbase/lowcode-cli';
|
|
168040
168035
|
const LOWCODE_PKG_RANGE = ((_a = (__webpack_require__(8330).dependencies)) === null || _a === void 0 ? void 0 : _a[LOWCODE_PKG_NAME]) || 'latest';
|
|
@@ -168166,16 +168161,9 @@ function promptAndInstallLowcodeDeps() {
|
|
|
168166
168161
|
if (!shouldInstall) {
|
|
168167
168162
|
return false;
|
|
168168
168163
|
}
|
|
168169
|
-
|
|
168170
|
-
|
|
168171
|
-
|
|
168172
|
-
yield installLowcodeDeps();
|
|
168173
|
-
loading.succeed('lowcode 依赖安装完成');
|
|
168174
|
-
}
|
|
168175
|
-
catch (err) {
|
|
168176
|
-
loading.fail('低码依赖安装失败');
|
|
168177
|
-
throw err;
|
|
168178
|
-
}
|
|
168164
|
+
console.log('\n依赖安装中...(首次安装可能较慢,请耐心等待)\n');
|
|
168165
|
+
yield installLowcodeDeps();
|
|
168166
|
+
console.log('\nlowcode 依赖安装完成...\n');
|
|
168179
168167
|
return true;
|
|
168180
168168
|
});
|
|
168181
168169
|
}
|