openxiangda 1.0.232 → 1.0.234

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/cli.js CHANGED
@@ -14495,14 +14495,7 @@ async function resource(args) {
14495
14495
  manifest,
14496
14496
  publishPlan.actions
14497
14497
  );
14498
- scopedFiles = flags.change
14499
- ? buildWorkspaceReleasePlan({
14500
- changeId: flags.change,
14501
- changed: true,
14502
- profile: profileName,
14503
- skipSdd: true,
14504
- }).changedFiles || []
14505
- : getWorkspaceChangedFiles();
14498
+ scopedFiles = resolveReleaseCommandScopedFiles(flags, profileName);
14506
14499
  assertSddReleaseGate(
14507
14500
  buildExplicitSddReleasePlan(
14508
14501
  resourceTargets,
@@ -14691,6 +14684,22 @@ function assertExplicitManifestReplacement(flags) {
14691
14684
  }
14692
14685
  }
14693
14686
 
14687
+ function resolveReleaseCommandScopedFiles(
14688
+ flags,
14689
+ profileName,
14690
+ deliveryContext = activeDeliveryV2Context
14691
+ ) {
14692
+ if (deliveryContext) return [];
14693
+ return flags.change
14694
+ ? buildWorkspaceReleasePlan({
14695
+ changeId: flags.change,
14696
+ changed: true,
14697
+ profile: profileName,
14698
+ skipSdd: true,
14699
+ }).changedFiles || []
14700
+ : getWorkspaceChangedFiles();
14701
+ }
14702
+
14694
14703
  function resolveOnlineBaselineAdoption(
14695
14704
  flags = {},
14696
14705
  planActions = [],
@@ -14940,14 +14949,10 @@ async function runtime(args) {
14940
14949
  const runtimeBuildCommand = flags['no-build']
14941
14950
  ? null
14942
14951
  : assertRuntimeBuildReady(flags['build-command']);
14943
- const scopedRuntimeFiles = flags.change
14944
- ? buildWorkspaceReleasePlan({
14945
- changeId: flags.change,
14946
- changed: true,
14947
- profile: target.profileName,
14948
- skipSdd: true,
14949
- }).changedFiles || []
14950
- : getWorkspaceChangedFiles();
14952
+ const scopedRuntimeFiles = resolveReleaseCommandScopedFiles(
14953
+ flags,
14954
+ target.profileName
14955
+ );
14951
14956
  assertSddReleaseGate(
14952
14957
  buildExplicitSddReleasePlan(
14953
14958
  { forms: [], pages: [], resources: false, runtime: true, other: [] },
@@ -29817,5 +29822,6 @@ module.exports = {
29817
29822
  buildResourceManifestSddTargets,
29818
29823
  buildScopeGrantSourceSyncDecision,
29819
29824
  main,
29825
+ resolveReleaseCommandScopedFiles,
29820
29826
  satisfiedFormCodesFromContext,
29821
29827
  };
@@ -215,6 +215,7 @@ function sourceHashForCategory(files, category) {
215
215
  }
216
216
 
217
217
  function discoverResourceInventory(workspaceRoot, files) {
218
+ const sourcePaths = new Set(files.map(file => file.relativePath));
218
219
  const inventory = {
219
220
  forms: new Set(),
220
221
  functions: new Set(),
@@ -238,8 +239,19 @@ function discoverResourceInventory(workspaceRoot, files) {
238
239
  ['src/workflows/', inventory.workflows],
239
240
  ]) {
240
241
  if (relative.startsWith(prefix)) {
241
- const code = relative.slice(prefix.length).split('/')[0];
242
- if (code && !code.startsWith('.')) bucket.add(code);
242
+ const segments = relative.slice(prefix.length).split('/');
243
+ const code = segments[0];
244
+ // Resource source lives under src/<kind>/<code>/... . Files directly
245
+ // under src/forms (for example member-common.ts) are shared helpers,
246
+ // not deployable resources.
247
+ if (!code || code.startsWith('.') || segments.length < 2) continue;
248
+ if (
249
+ prefix === 'src/forms/' &&
250
+ !sourcePaths.has(`src/forms/${code}/schema.ts`)
251
+ ) {
252
+ continue;
253
+ }
254
+ bucket.add(code);
243
255
  }
244
256
  }
245
257
  if (!relative.endsWith('.json')) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.232",
3
+ "version": "1.0.234",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {