weapp-vite 7.9.0 → 7.10.0
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/{action-BXQ_635N.mjs → action-5b4_Id41.mjs} +5 -5
- package/dist/{action-tvgM91DU.mjs → action-BrYUOyNr.mjs} +2 -2
- package/dist/{action-D4aE_85H.mjs → action-C69IwqF6.mjs} +4 -4
- package/dist/{action-DPyPIu7h.mjs → action-D5YjMuNK.mjs} +6 -6
- package/dist/{action-BjqLMcEc.mjs → action-DeTIjVZi.mjs} +1 -1
- package/dist/{assets-BTDeDWL8.mjs → assets-DGjxkFom.mjs} +2 -2
- package/dist/auto-import-components/resolvers.mjs +1 -1
- package/dist/auto-routes.mjs +2 -2
- package/dist/{classifier-CLQfYmuy.mjs → classifier-CBLOs0e9.mjs} +2 -2
- package/dist/cli-acceptance.mjs +1 -1
- package/dist/cli.mjs +14 -14
- package/dist/{createCompilerContextInstance-3_LDm06J.mjs → createCompilerContextInstance-DLbj9x6v.mjs} +256 -44
- package/dist/{createContext-Bt5Xf3qS.mjs → createContext-CNX394Nq.mjs} +2 -2
- package/dist/dashboard/vite.d.mts +1 -1
- package/dist/dashboard.d.mts +1 -1
- package/dist/docs/ai-workflows.md +37 -0
- package/dist/doctor-worker.mjs +1 -1
- package/dist/doctor.mjs +2 -2
- package/dist/{file-BSnzOG71.mjs → file-BKX2bE_I.mjs} +1 -1
- package/dist/file-WUM9I-Hl.mjs +1 -0
- package/dist/{forwardConsole-5gsW38JU.mjs → forwardConsole-Bd9pQVs_.mjs} +1 -1
- package/dist/{getInstance-BVPJxJPq.mjs → getInstance-BFOSqiSf.mjs} +1 -1
- package/dist/getInstance-BkoPIV8s.mjs +1 -0
- package/dist/{history-DHf4bJcC.mjs → history-D3m367Ml.mjs} +2 -2
- package/dist/{index-BIjQ_ZIs.d.mts → index-DIZJRrvK.d.mts} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{lib-DFy0ICSb.mjs → lib-TVTxVvtt.mjs} +1 -1
- package/dist/{loadConfig-Cz0YvFKX.mjs → loadConfig-DBH8TMJu.mjs} +1 -1
- package/dist/loadConfig-DrcfCgLX.mjs +1 -0
- package/dist/{logBuildAppFinish-CEd6S2uv.mjs → logBuildAppFinish-CiwAAttq.mjs} +1 -1
- package/dist/{mcp-BIeIXYnH.mjs → mcp-CUJeEA1k.mjs} +1 -1
- package/dist/{openIde-DR1jRwRZ.mjs → openIde-MbhME5Lq.mjs} +2 -2
- package/dist/{package-BnYH0riT.mjs → package-DaAwtXIg.mjs} +1 -1
- package/dist/{resolvers-CKYqmRD_.mjs → resolvers-CwIPE-np.mjs} +1 -0
- package/dist/resolvers.mjs +1 -1
- package/dist/{runtime-C3FhJHMZ.mjs → runtime-CXXzD_vv.mjs} +1 -1
- package/dist/{session-DEB9vhVJ.mjs → session-OfpAb3Zc.mjs} +2 -2
- package/dist/test.mjs +11 -3
- package/dist/{utils-C6mLS1fl.mjs → utils-BiSQAI-e.mjs} +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +35 -34
- package/skills/weapp-vite-best-practices/SKILL.md +173 -0
- package/skills/weapp-vite-best-practices/agents/openai.yaml +7 -0
- package/skills/weapp-vite-best-practices/references/cli-dispatch-playbook.md +41 -0
- package/skills/weapp-vite-best-practices/references/config-playbook.md +51 -0
- package/skills/weapp-vite-best-practices/references/debug-playbook.md +47 -0
- package/skills/weapp-vite-best-practices/references/ide-command-playbook.md +26 -0
- package/skills/weapp-vite-best-practices/references/ide-i18n-config-playbook.md +29 -0
- package/skills/weapp-vite-best-practices/references/native-ast-performance-checklist.md +7 -0
- package/skills/weapp-vite-best-practices/references/plugin-build-playbook.md +11 -0
- package/skills/weapp-vite-best-practices/references/stateful-hmr-playbook.md +17 -0
- package/skills/weapp-vite-best-practices/references/web-runtime-compatibility.md +39 -0
- package/skills/weapp-vite-vue-sfc-best-practices/SKILL.md +107 -0
- package/skills/weapp-vite-vue-sfc-best-practices/agents/openai.yaml +7 -0
- package/skills/weapp-vite-vue-sfc-best-practices/references/macro-config-checklist.md +20 -0
- package/skills/weapp-vite-vue-sfc-best-practices/references/template-compat-matrix.md +24 -0
- package/skills/weapp-vite-vue-sfc-best-practices/references/tooling-and-hmr-matrix.md +13 -0
- package/skills/weapp-vite-vue-sfc-best-practices/references/troubleshooting-playbook.md +21 -0
- package/dist/file-BHca0tSX.mjs +0 -1
- package/dist/getInstance-KmwxLWE4.mjs +0 -1
- package/dist/loadConfig-CTPTKB6I.mjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-
|
|
2
|
-
import { c as getBackendForCapability, d as CompilerSession, n as formatBytes } from "./createCompilerContextInstance-
|
|
1
|
+
import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-D3m367Ml.mjs";
|
|
2
|
+
import { c as getBackendForCapability, d as CompilerSession, n as formatBytes } from "./createCompilerContextInstance-DLbj9x6v.mjs";
|
|
3
3
|
import { n as createDashboardArtifactSnapshot } from "./artifacts-TrTX9_jj.mjs";
|
|
4
4
|
import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
|
|
5
|
-
import { n as formatDuration, r as scheduleCompletedProductionBuildExit, t as logBuildAppFinish } from "./logBuildAppFinish-
|
|
5
|
+
import { n as formatDuration, r as scheduleCompletedProductionBuildExit, t as logBuildAppFinish } from "./logBuildAppFinish-CiwAAttq.mjs";
|
|
6
6
|
import { t as setCommandNodeEnv } from "./nodeEnv-zq1EymWj.mjs";
|
|
7
|
-
import { i as resolveIdeProjectPath, n as openIde } from "./openIde-
|
|
7
|
+
import { i as resolveIdeProjectPath, n as openIde } from "./openIde-MbhME5Lq.mjs";
|
|
8
8
|
import { a as parseDashboardUiHost, i as isUiEnabled, o as resolveConfigFile, r as filterDuplicateOptions } from "./options-Cz8vZ-0w.mjs";
|
|
9
|
-
import { i as resolveRuntimeTargets, n as logRuntimeTarget, r as resolveConfiguredRuntimeTargets, t as createInlineConfig } from "./runtime-
|
|
9
|
+
import { i as resolveRuntimeTargets, n as logRuntimeTarget, r as resolveConfiguredRuntimeTargets, t as createInlineConfig } from "./runtime-CXXzD_vv.mjs";
|
|
10
10
|
import { a as prepareAutoUploadMetadataWithRollback, n as executeUploadTarget, o as validateAutoUploadMetadata, t as createUploadTarget } from "./builtProject-B145uOt5.mjs";
|
|
11
11
|
import { a as resolveBuildUploadOptions } from "./report-PJVyo-UZ.mjs";
|
|
12
12
|
import process from "node:process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as createCompilerContext } from "./createContext-
|
|
1
|
+
import { t as createCompilerContext } from "./createContext-CNX394Nq.mjs";
|
|
2
2
|
import { r as logger_default } from "./logger-DGn5iEVN.mjs";
|
|
3
3
|
import { t as setCommandNodeEnv } from "./nodeEnv-zq1EymWj.mjs";
|
|
4
4
|
import { o as resolveConfigFile, r as filterDuplicateOptions } from "./options-Cz8vZ-0w.mjs";
|
|
5
5
|
import { t as terminateStaleSassEmbeddedProcess } from "./processCleanup-DzB64WI8.mjs";
|
|
6
|
-
import { i as resolveRuntimeTargets, t as createInlineConfig } from "./runtime-
|
|
6
|
+
import { i as resolveRuntimeTargets, t as createInlineConfig } from "./runtime-CXXzD_vv.mjs";
|
|
7
7
|
import { n as resolveUploadPlatforms } from "./upload-Chal5b3w.mjs";
|
|
8
8
|
import { i as prepareAutoUploadMetadata, n as executeUploadTarget, r as UploadExecutionError, t as createUploadTarget } from "./builtProject-B145uOt5.mjs";
|
|
9
9
|
import { o as resolveUploadTimeout, t as UploadCommandError } from "./report-PJVyo-UZ.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as getBackendForCapability } from "./createCompilerContextInstance-
|
|
1
|
+
import { c as getBackendForCapability } from "./createCompilerContextInstance-DLbj9x6v.mjs";
|
|
2
2
|
import { t as VERSION } from "./constants-BOe8mgqL.mjs";
|
|
3
3
|
import { r as logger_default } from "./logger-DGn5iEVN.mjs";
|
|
4
|
-
import { a as startForwardConsoleBridge, i as resolveForwardConsoleOptions, o as readLatestHmrProfileSummary } from "./forwardConsole-
|
|
5
|
-
import { n as openIde, r as resolveIdeCommandContext } from "./openIde-
|
|
4
|
+
import { a as startForwardConsoleBridge, i as resolveForwardConsoleOptions, o as readLatestHmrProfileSummary } from "./forwardConsole-Bd9pQVs_.mjs";
|
|
5
|
+
import { n as openIde, r as resolveIdeCommandContext } from "./openIde-MbhME5Lq.mjs";
|
|
6
6
|
import { o as resolveConfigFile, r as filterDuplicateOptions } from "./options-Cz8vZ-0w.mjs";
|
|
7
|
-
import { i as resolveRuntimeTargets } from "./runtime-
|
|
7
|
+
import { i as resolveRuntimeTargets } from "./runtime-CXXzD_vv.mjs";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { bootstrapWechatDevtoolsSettings, connectOpenedAutomator, defaultCustomConfigFilePath, detectWechatDevtoolsServicePort, getWechatIdeTestAccounts, getWechatIdeTicket, getWechatIdeToolInfo, queryWechatIdeLogin, refreshWechatIdeTicket, resolveCliPath, resolveProjectAutomatorPort, setWechatIdeTicket } from "weapp-ide-cli";
|
|
10
10
|
// src/cli/commands/ide/action.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as readHmrProfileLines } from "./reader-wzPH_W8A.mjs";
|
|
2
|
-
import { b as resolvePreloadPackageIdentifier, v as collectPreloadPages, x as suggestPreloadRules, y as findPreloadRuleKey } from "./utils-
|
|
3
|
-
import { c as findJsEntry, d as findVueEntry, u as findTemplateEntry } from "./file-
|
|
4
|
-
import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-
|
|
2
|
+
import { b as resolvePreloadPackageIdentifier, v as collectPreloadPages, x as suggestPreloadRules, y as findPreloadRuleKey } from "./utils-BiSQAI-e.mjs";
|
|
3
|
+
import { c as findJsEntry, d as findVueEntry, u as findTemplateEntry } from "./file-BKX2bE_I.mjs";
|
|
4
|
+
import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-D3m367Ml.mjs";
|
|
5
5
|
import { t as createAnalyzeBudgetCheck } from "./budget-_Mu-4GKn.mjs";
|
|
6
6
|
import { r as createAnalyzeComparison, t as createDuplicateModuleInsights } from "./analyze-DCZo-sJd.mjs";
|
|
7
|
-
import { c as getBackendForCapability } from "./createCompilerContextInstance-
|
|
8
|
-
import { t as createCompilerContext } from "./createContext-
|
|
7
|
+
import { c as getBackendForCapability } from "./createCompilerContextInstance-DLbj9x6v.mjs";
|
|
8
|
+
import { t as createCompilerContext } from "./createContext-CNX394Nq.mjs";
|
|
9
9
|
import { n as createDashboardArtifactSnapshot } from "./artifacts-TrTX9_jj.mjs";
|
|
10
10
|
import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
|
|
11
11
|
import { f as resolveHmrProfileJsonPath } from "./devProvider-Ci2il72x.mjs";
|
|
12
12
|
import { t as setCommandNodeEnv } from "./nodeEnv-zq1EymWj.mjs";
|
|
13
13
|
import { a as parseDashboardUiHost, o as resolveConfigFile, r as filterDuplicateOptions, t as coerceBooleanOption } from "./options-Cz8vZ-0w.mjs";
|
|
14
14
|
import { t as terminateStaleSassEmbeddedProcess } from "./processCleanup-DzB64WI8.mjs";
|
|
15
|
-
import { i as resolveRuntimeTargets, n as logRuntimeTarget, t as createInlineConfig } from "./runtime-
|
|
15
|
+
import { i as resolveRuntimeTargets, n as logRuntimeTarget, t as createInlineConfig } from "./runtime-CXXzD_vv.mjs";
|
|
16
16
|
import process from "node:process";
|
|
17
17
|
import path from "pathe";
|
|
18
18
|
import { fs } from "@weapp-core/shared/fs";
|
|
@@ -21,7 +21,7 @@ async function resolveHttpUrl(options) {
|
|
|
21
21
|
try {
|
|
22
22
|
if (workspaceRoot !== originalCwd) process.chdir(workspaceRoot);
|
|
23
23
|
const configFile = resolveConfigFile(options);
|
|
24
|
-
const { loadConfig } = await import("./loadConfig-
|
|
24
|
+
const { loadConfig } = await import("./loadConfig-DrcfCgLX.mjs");
|
|
25
25
|
const loaded = await loadConfig(configFile);
|
|
26
26
|
const resolved = resolveWeappMcpConfig(loaded?.config?.weapp?.mcp);
|
|
27
27
|
return `http://${resolved.host}:${resolved.port}${resolved.endpoint}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as resolveRealpath } from "./realpathScope-DwlLaCk3.mjs";
|
|
2
|
-
import { a as hasOwn, i as resolveWeappLibEntries, o as waitForBuildTasks } from "./lib-
|
|
2
|
+
import { a as hasOwn, i as resolveWeappLibEntries, o as waitForBuildTasks } from "./lib-TVTxVvtt.mjs";
|
|
3
3
|
import { n as loadHostRolldownBuild } from "./engine-Mnnm_ALP.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import process from "node:process";
|
|
@@ -585,7 +585,7 @@ async function generateLibDts(configService, onWatchFile) {
|
|
|
585
585
|
},
|
|
586
586
|
compilerOptions,
|
|
587
587
|
cwd: resolveRealpath(configService.cwd),
|
|
588
|
-
|
|
588
|
+
dtsOnly: true
|
|
589
589
|
}), {
|
|
590
590
|
name: "weapp-vite:lib-dts-inputs",
|
|
591
591
|
buildEnd() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as TDesignResolver, i as UviewPlusResolver, r as VantResolver, n as WeuiResolver, t as WotUiResolver } from "../resolvers-
|
|
1
|
+
export { a as TDesignResolver, i as UviewPlusResolver, r as VantResolver, n as WeuiResolver, t as WotUiResolver } from "../resolvers-CwIPE-np.mjs";
|
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getCompilerContext } from "./getInstance-
|
|
2
|
-
import { U as getRouteRuntimeGlobalKeys } from "./createCompilerContextInstance-
|
|
1
|
+
import { t as getCompilerContext } from "./getInstance-BFOSqiSf.mjs";
|
|
2
|
+
import { U as getRouteRuntimeGlobalKeys } from "./createCompilerContextInstance-DLbj9x6v.mjs";
|
|
3
3
|
// src/auto-routes.ts
|
|
4
4
|
const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
|
|
5
5
|
function createGetter(resolver) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as isPathInside } from "./path-E1OjBJAl.mjs";
|
|
2
|
-
import { o as SHARED_CHUNK_VIRTUAL_PREFIX } from "./package-
|
|
3
|
-
import "./utils-
|
|
2
|
+
import { o as SHARED_CHUNK_VIRTUAL_PREFIX } from "./package-DaAwtXIg.mjs";
|
|
3
|
+
import "./utils-BiSQAI-e.mjs";
|
|
4
4
|
import { posix } from "pathe";
|
|
5
5
|
// src/analyze/subpackages/classifier.ts
|
|
6
6
|
const VIRTUAL_MODULE_INDICATOR = "\0";
|
package/dist/cli-acceptance.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as registerAcceptCommand, t as registerMcpCommand } from "./mcp-
|
|
1
|
+
import { n as registerAcceptCommand, t as registerMcpCommand } from "./mcp-CUJeEA1k.mjs";
|
|
2
2
|
import { t as VERSION } from "./constants-BOe8mgqL.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { cac } from "cac";
|
package/dist/cli.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as registerAcceptCommand, t as registerMcpCommand } from "./mcp-
|
|
1
|
+
import { n as registerAcceptCommand, t as registerMcpCommand } from "./mcp-CUJeEA1k.mjs";
|
|
2
2
|
import { r as logger_default, t as colors } from "./logger-DGn5iEVN.mjs";
|
|
3
|
-
import { a as resolveIdeProjectRoot, n as openIde, r as resolveIdeCommandContext, s as executeWechatIdeCliCommand, t as closeIde } from "./openIde-
|
|
3
|
+
import { a as resolveIdeProjectRoot, n as openIde, r as resolveIdeCommandContext, s as executeWechatIdeCliCommand, t as closeIde } from "./openIde-MbhME5Lq.mjs";
|
|
4
4
|
import { a as parseDashboardUiHost, i as isUiEnabled, n as convertBase, o as resolveConfigFile, r as filterDuplicateOptions } from "./options-Cz8vZ-0w.mjs";
|
|
5
|
-
import { t as loadConfig } from "./loadConfig-
|
|
5
|
+
import { t as loadConfig } from "./loadConfig-DBH8TMJu.mjs";
|
|
6
6
|
import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-ovJgl1N9.mjs";
|
|
7
|
-
import { H as getHmrRuntimeSession, M as syncProjectSupportFiles, N as syncManagedTsconfigBootstrapFiles, T as createGlassEaselAnalyzeResult, c as getBackendForCapability } from "./createCompilerContextInstance-
|
|
8
|
-
import { n as maybeStartForwardConsole, o as readLatestHmrProfileSummary, r as pauseActiveForwardConsole, t as closeActiveForwardConsole } from "./forwardConsole-
|
|
7
|
+
import { H as getHmrRuntimeSession, M as syncProjectSupportFiles, N as syncManagedTsconfigBootstrapFiles, T as createGlassEaselAnalyzeResult, c as getBackendForCapability } from "./createCompilerContextInstance-DLbj9x6v.mjs";
|
|
8
|
+
import { n as maybeStartForwardConsole, o as readLatestHmrProfileSummary, r as pauseActiveForwardConsole, t as closeActiveForwardConsole } from "./forwardConsole-Bd9pQVs_.mjs";
|
|
9
9
|
import { r as formatMcpQuickStart } from "./mcpClient-C8JzVZ46.mjs";
|
|
10
|
-
import { i as resolveRuntimeTargets, n as logRuntimeTarget, r as resolveConfiguredRuntimeTargets, t as createInlineConfig } from "./runtime-
|
|
11
|
-
import { t as createCompilerContext } from "./createContext-
|
|
10
|
+
import { i as resolveRuntimeTargets, n as logRuntimeTarget, r as resolveConfiguredRuntimeTargets, t as createInlineConfig } from "./runtime-CXXzD_vv.mjs";
|
|
11
|
+
import { t as createCompilerContext } from "./createContext-CNX394Nq.mjs";
|
|
12
12
|
import { o as createDevShutdownScope } from "./lifecycle-Dt0rvANg.mjs";
|
|
13
|
-
import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-
|
|
14
|
-
import { n as version } from "./package-
|
|
15
|
-
import { n as formatDuration, r as scheduleCompletedProductionBuildExit, t as logBuildAppFinish } from "./logBuildAppFinish-
|
|
13
|
+
import { i as startAnalyzeDashboard, n as writeAnalyzeHistorySnapshot, r as analyzeSubpackages, t as readLatestAnalyzeHistorySnapshot } from "./history-D3m367Ml.mjs";
|
|
14
|
+
import { n as version } from "./package-DaAwtXIg.mjs";
|
|
15
|
+
import { n as formatDuration, r as scheduleCompletedProductionBuildExit, t as logBuildAppFinish } from "./logBuildAppFinish-CiwAAttq.mjs";
|
|
16
16
|
import { t as setCommandNodeEnv } from "./nodeEnv-zq1EymWj.mjs";
|
|
17
17
|
import { t as createAnalyzeMetadata } from "./metadata-HlDKtlsu.mjs";
|
|
18
18
|
import { n as createDashboardArtifactSnapshot } from "./artifacts-TrTX9_jj.mjs";
|
|
@@ -115,14 +115,14 @@ function registerAlipayCommand(cli) {
|
|
|
115
115
|
// src/cli/commands/analyze/index.ts
|
|
116
116
|
function registerAnalyzeCommand(cli) {
|
|
117
117
|
cli.command("analyze [root]", "analyze 两端包体与源码映射").option("--ui-host <host>", `[string] 启动调试 UI 并选择宿主(standalone | hub)`).option("--hmr-profile [file]", `[string | boolean] 分析 HMR JSONL profile,省略值时优先读取配置,否则回退到默认路径`).option("--json", `[boolean] 输出 JSON 结果`).option("--markdown", `[boolean] 输出 Markdown 报告`).option("--report <type>", `[string] 输出指定报告类型(pr)`).option("--budget-check", `[boolean] 检查 analyze 预算,超过预算时返回非 0 退出码`).option("--glass-easel-check", `[boolean] 检查 glass-easel 配置、模板和 SelectorQuery 迁移兼容性`).option("--preload", `[boolean] 分析静态页面跳转、实际分包体积和 preloadRule 额度`).option("--output <file>", `[string] 将分析结果写入指定文件(JSON 或 Markdown)`).option("-p, --platform <platform>", `[string] target platform (weapp | web)`).option("--project-config <path>", `[string] project config path (miniprogram only)`).action(async (root, options) => {
|
|
118
|
-
const { runAnalyzeCommand } = await import("./action-
|
|
118
|
+
const { runAnalyzeCommand } = await import("./action-D5YjMuNK.mjs");
|
|
119
119
|
return runAnalyzeCommand(root, options);
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
// src/cli/commands/build/index.ts
|
|
123
123
|
function registerBuildCommand(cli) {
|
|
124
124
|
cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'modules')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("-p, --platform <platform>", `[string] target platform (weapp | web | all)`).option("--project-config <path>", `[string] project config path (miniprogram only)`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: esbuild)").option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--skipNpm", `[boolean] if skip npm build`).option("-o, --open", `[boolean] open ide`).option("--trust-project", "[boolean] auto trust Wechat DevTools project on open", { default: true }).option("--ide-open-strategy <strategy>", "[string] IDE open strategy (cli | automator)", { default: "cli" }).option("--no-open-recovery", "[boolean] disable automatic target-project open retry (preserves existing IDE windows)").option("--ui", `[boolean] 启动调试 UI(当前提供分析视图)`, { default: false }).option("--ui-host <host>", `[string] 启动调试 UI 并选择宿主(standalone | hub)`).option("--analyze", `[boolean] 输出分包分析仪表盘`, { default: false }).option("--scope <scope>", `[string] 局部构建范围,例如 main,packages/order`).option("--upload", "[boolean] upload the mini program after this build succeeds").option("--uv <version>", "[string] upload version override (requires --upload)").option("--desc <text>", "[string] upload description override (requires --upload)").option("--bump <release>", "[string] increment local package version (patch | minor | major; requires --upload)").option("--git-desc", "[boolean] use the latest Git commit subject (requires --upload)").option("--dry-run", "[boolean] validate upload output without credentials or SDK calls (requires --upload)").action(async (root, options) => {
|
|
125
|
-
const { runBuildCommand } = await import("./action-
|
|
125
|
+
const { runBuildCommand } = await import("./action-5b4_Id41.mjs");
|
|
126
126
|
return runBuildCommand(cli, root, options);
|
|
127
127
|
});
|
|
128
128
|
}
|
|
@@ -196,7 +196,7 @@ function registerGenerateCommand(cli) {
|
|
|
196
196
|
// src/cli/commands/ide/index.ts
|
|
197
197
|
/** 仅在执行 IDE 子命令时加载宿主工具和日志桥接实现。 */
|
|
198
198
|
async function runIdeCommand(action, root, options) {
|
|
199
|
-
const { runIdeCommand } = await import("./action-
|
|
199
|
+
const { runIdeCommand } = await import("./action-C69IwqF6.mjs");
|
|
200
200
|
return runIdeCommand(action, root, options);
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
@@ -1598,7 +1598,7 @@ function registerServeCommand(cli) {
|
|
|
1598
1598
|
// src/cli/commands/upload/index.ts
|
|
1599
1599
|
/** 按实际上传或预览调用加载执行层,保留原有返回值重载。 */
|
|
1600
1600
|
async function runUploadCommand(root, options, action = "upload") {
|
|
1601
|
-
const { runUploadCommand } = await import("./action-
|
|
1601
|
+
const { runUploadCommand } = await import("./action-BrYUOyNr.mjs");
|
|
1602
1602
|
return runUploadCommand(root, options, action);
|
|
1603
1603
|
}
|
|
1604
1604
|
function registerUploadCommand(cli) {
|