openxiangda 1.0.233 → 1.0.235
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 +22 -16
- package/lib/delivery-v2-package.js +3 -1
- package/package.json +1 -1
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
|
|
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 =
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
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
|
};
|
|
@@ -13,6 +13,7 @@ const ROOT_SOURCE_FILES = new Set([
|
|
|
13
13
|
'package.json',
|
|
14
14
|
'package-lock.json',
|
|
15
15
|
'pnpm-lock.yaml',
|
|
16
|
+
'pnpm-workspace.yaml',
|
|
16
17
|
'yarn.lock',
|
|
17
18
|
'postcss.config.cjs',
|
|
18
19
|
'postcss.config.js',
|
|
@@ -111,10 +112,11 @@ function shouldIncludeSourceFile(relativePath) {
|
|
|
111
112
|
const segments = normalized.split('/');
|
|
112
113
|
if (segments.some(segment => IGNORED_SEGMENTS.has(segment))) return false;
|
|
113
114
|
if (ROOT_SOURCE_FILES.has(normalized)) return true;
|
|
115
|
+
if (/^tsconfig(?:\.[^/]+)?\.json$/.test(normalized)) return true;
|
|
114
116
|
return (
|
|
115
117
|
normalized.startsWith('src/') ||
|
|
116
118
|
normalized.startsWith('public/') ||
|
|
117
|
-
normalized
|
|
119
|
+
normalized.startsWith('scripts/')
|
|
118
120
|
);
|
|
119
121
|
}
|
|
120
122
|
|