@hcmai/cli 0.21.1 → 0.21.2

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/index.js CHANGED
@@ -10217,6 +10217,15 @@ async function workspacePushCommand(args) {
10217
10217
  const rootDir = resolveRootDir(args.dir);
10218
10218
  const context = await requireWorkspaceContext(rootDir);
10219
10219
  const miniApps = await discoverMiniApps(rootDir);
10220
+ for (const app of miniApps) {
10221
+ const validation = await validateMiniProject(app.dir);
10222
+ if (!validation.valid) {
10223
+ throw new CliError24({
10224
+ code: CliErrorCode25.INVALID_ARGUMENT,
10225
+ message: `mini app ${app.appCode} validation failed: ${validation.errors.join("; ")}`
10226
+ });
10227
+ }
10228
+ }
10220
10229
  const client3 = HcmClient22.fromAuthContext(
10221
10230
  await getActiveAuthContextFromCli(args, { fallbackEnv: context.profile })
10222
10231
  );