@storm-software/git-tools 2.29.0 → 2.29.1
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/CHANGELOG.md +7 -0
- package/README.md +0 -1
- package/bin/git.js +31 -19
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.js +1 -1
- package/bin/prepare.js +1 -1
- package/bin/version-warning.js +1 -1
- package/package.json +1 -1
- package/src/cli/index.js +31 -19
- package/src/commit/index.js +1 -1
- package/src/commitizen/index.js +1 -1
- package/src/index.js +31 -19
- package/src/release/index.js +31 -19
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/bin/git.js
CHANGED
|
@@ -230815,7 +230815,7 @@ var StormConfigSchema = z2.object({
|
|
|
230815
230815
|
ci: z2.boolean().default(true).describe(
|
|
230816
230816
|
"An indicator specifying if the current environment is a CI environment"
|
|
230817
230817
|
),
|
|
230818
|
-
workspaceRoot: z2.string().trim().
|
|
230818
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
230819
230819
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
230820
230820
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
230821
230821
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -236506,8 +236506,14 @@ async function releaseVersion(config2, args) {
|
|
|
236506
236506
|
verbose: !!args.verbose,
|
|
236507
236507
|
generatorOptions
|
|
236508
236508
|
});
|
|
236509
|
-
|
|
236510
|
-
|
|
236509
|
+
if (Array.isArray(changedFiles3)) {
|
|
236510
|
+
for (const f7 of changedFiles3) {
|
|
236511
|
+
additionalChangedFiles.add(f7);
|
|
236512
|
+
}
|
|
236513
|
+
} else {
|
|
236514
|
+
for (const f7 of changedFiles3.changedFiles) {
|
|
236515
|
+
additionalChangedFiles.add(f7);
|
|
236516
|
+
}
|
|
236511
236517
|
}
|
|
236512
236518
|
});
|
|
236513
236519
|
}
|
|
@@ -236534,18 +236540,18 @@ async function releaseVersion(config2, args) {
|
|
|
236534
236540
|
};
|
|
236535
236541
|
}
|
|
236536
236542
|
if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
|
|
236537
|
-
await commitChanges(
|
|
236538
|
-
changedFiles2,
|
|
236539
|
-
!!args.dryRun,
|
|
236540
|
-
!!args.verbose,
|
|
236541
|
-
createCommitMessageValues(
|
|
236543
|
+
await commitChanges({
|
|
236544
|
+
changedFiles: changedFiles2,
|
|
236545
|
+
isDryRun: !!args.dryRun,
|
|
236546
|
+
isVerbose: !!args.verbose,
|
|
236547
|
+
gitCommitMessages: createCommitMessageValues(
|
|
236542
236548
|
releaseGroups,
|
|
236543
236549
|
releaseGroupToFilteredProjects,
|
|
236544
236550
|
versionData,
|
|
236545
236551
|
commitMessage
|
|
236546
236552
|
),
|
|
236547
|
-
args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
236548
|
-
);
|
|
236553
|
+
gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
236554
|
+
});
|
|
236549
236555
|
} else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
|
|
236550
236556
|
writeInfo("Staging changed files with git", config2);
|
|
236551
236557
|
await gitAdd({
|
|
@@ -236613,8 +236619,14 @@ async function releaseVersion(config2, args) {
|
|
|
236613
236619
|
verbose: !!args.verbose,
|
|
236614
236620
|
generatorOptions
|
|
236615
236621
|
});
|
|
236616
|
-
|
|
236617
|
-
|
|
236622
|
+
if (Array.isArray(changedFiles2)) {
|
|
236623
|
+
for (const f7 of changedFiles2) {
|
|
236624
|
+
additionalChangedFiles.add(f7);
|
|
236625
|
+
}
|
|
236626
|
+
} else {
|
|
236627
|
+
for (const f7 of changedFiles2.changedFiles) {
|
|
236628
|
+
additionalChangedFiles.add(f7);
|
|
236629
|
+
}
|
|
236618
236630
|
}
|
|
236619
236631
|
});
|
|
236620
236632
|
}
|
|
@@ -236632,7 +236644,7 @@ async function releaseVersion(config2, args) {
|
|
|
236632
236644
|
let workspaceVersion = void 0;
|
|
236633
236645
|
if (releaseGroups.length === 1) {
|
|
236634
236646
|
const releaseGroup = releaseGroups[0];
|
|
236635
|
-
if (releaseGroup
|
|
236647
|
+
if (releaseGroup?.projectsRelationship === "fixed") {
|
|
236636
236648
|
const releaseGroupProjectNames = Array.from(
|
|
236637
236649
|
releaseGroupToFilteredProjects.get(releaseGroup) ?? []
|
|
236638
236650
|
);
|
|
@@ -236652,18 +236664,18 @@ async function releaseVersion(config2, args) {
|
|
|
236652
236664
|
};
|
|
236653
236665
|
}
|
|
236654
236666
|
if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
|
|
236655
|
-
await commitChanges(
|
|
236667
|
+
await commitChanges({
|
|
236656
236668
|
changedFiles,
|
|
236657
|
-
!!args.dryRun,
|
|
236658
|
-
!!args.verbose,
|
|
236659
|
-
createCommitMessageValues(
|
|
236669
|
+
isDryRun: !!args.dryRun,
|
|
236670
|
+
isVerbose: !!args.verbose,
|
|
236671
|
+
gitCommitMessages: createCommitMessageValues(
|
|
236660
236672
|
releaseGroups,
|
|
236661
236673
|
releaseGroupToFilteredProjects,
|
|
236662
236674
|
versionData,
|
|
236663
236675
|
commitMessage
|
|
236664
236676
|
),
|
|
236665
|
-
args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
236666
|
-
);
|
|
236677
|
+
gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
236678
|
+
});
|
|
236667
236679
|
} else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
|
|
236668
236680
|
writeInfo("Staging changed files with git", config2);
|
|
236669
236681
|
await gitAdd({
|
package/bin/post-checkout.js
CHANGED
|
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
|
|
|
67132
67132
|
ci: z2.boolean().default(true).describe(
|
|
67133
67133
|
"An indicator specifying if the current environment is a CI environment"
|
|
67134
67134
|
),
|
|
67135
|
-
workspaceRoot: z2.string().trim().
|
|
67135
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67136
67136
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67137
67137
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67138
67138
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/bin/post-commit.js
CHANGED
|
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
|
|
|
67132
67132
|
ci: z2.boolean().default(true).describe(
|
|
67133
67133
|
"An indicator specifying if the current environment is a CI environment"
|
|
67134
67134
|
),
|
|
67135
|
-
workspaceRoot: z2.string().trim().
|
|
67135
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67136
67136
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67137
67137
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67138
67138
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/bin/post-merge.js
CHANGED
|
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
|
|
|
67132
67132
|
ci: z2.boolean().default(true).describe(
|
|
67133
67133
|
"An indicator specifying if the current environment is a CI environment"
|
|
67134
67134
|
),
|
|
67135
|
-
workspaceRoot: z2.string().trim().
|
|
67135
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67136
67136
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67137
67137
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67138
67138
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/bin/pre-commit.js
CHANGED
|
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
|
|
|
67132
67132
|
ci: z2.boolean().default(true).describe(
|
|
67133
67133
|
"An indicator specifying if the current environment is a CI environment"
|
|
67134
67134
|
),
|
|
67135
|
-
workspaceRoot: z2.string().trim().
|
|
67135
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67136
67136
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67137
67137
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67138
67138
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/bin/pre-install.js
CHANGED
|
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
|
|
|
67132
67132
|
ci: z2.boolean().default(true).describe(
|
|
67133
67133
|
"An indicator specifying if the current environment is a CI environment"
|
|
67134
67134
|
),
|
|
67135
|
-
workspaceRoot: z2.string().trim().
|
|
67135
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67136
67136
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67137
67137
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67138
67138
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/bin/pre-push.js
CHANGED
|
@@ -67137,7 +67137,7 @@ var StormConfigSchema = z2.object({
|
|
|
67137
67137
|
ci: z2.boolean().default(true).describe(
|
|
67138
67138
|
"An indicator specifying if the current environment is a CI environment"
|
|
67139
67139
|
),
|
|
67140
|
-
workspaceRoot: z2.string().trim().
|
|
67140
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67141
67141
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67142
67142
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67143
67143
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/bin/prepare.js
CHANGED
|
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
|
|
|
67132
67132
|
ci: z2.boolean().default(true).describe(
|
|
67133
67133
|
"An indicator specifying if the current environment is a CI environment"
|
|
67134
67134
|
),
|
|
67135
|
-
workspaceRoot: z2.string().trim().
|
|
67135
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67136
67136
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67137
67137
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67138
67138
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/bin/version-warning.js
CHANGED
|
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
|
|
|
67132
67132
|
ci: z2.boolean().default(true).describe(
|
|
67133
67133
|
"An indicator specifying if the current environment is a CI environment"
|
|
67134
67134
|
),
|
|
67135
|
-
workspaceRoot: z2.string().trim().
|
|
67135
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67136
67136
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67137
67137
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67138
67138
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/package.json
CHANGED
package/src/cli/index.js
CHANGED
|
@@ -165322,7 +165322,7 @@ var StormConfigSchema = z.object({
|
|
|
165322
165322
|
ci: z.boolean().default(true).describe(
|
|
165323
165323
|
"An indicator specifying if the current environment is a CI environment"
|
|
165324
165324
|
),
|
|
165325
|
-
workspaceRoot: z.string().trim().
|
|
165325
|
+
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
165326
165326
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
165327
165327
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
165328
165328
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -170401,8 +170401,14 @@ async function releaseVersion(config2, args) {
|
|
|
170401
170401
|
verbose: !!args.verbose,
|
|
170402
170402
|
generatorOptions
|
|
170403
170403
|
});
|
|
170404
|
-
|
|
170405
|
-
|
|
170404
|
+
if (Array.isArray(changedFiles3)) {
|
|
170405
|
+
for (const f7 of changedFiles3) {
|
|
170406
|
+
additionalChangedFiles.add(f7);
|
|
170407
|
+
}
|
|
170408
|
+
} else {
|
|
170409
|
+
for (const f7 of changedFiles3.changedFiles) {
|
|
170410
|
+
additionalChangedFiles.add(f7);
|
|
170411
|
+
}
|
|
170406
170412
|
}
|
|
170407
170413
|
});
|
|
170408
170414
|
}
|
|
@@ -170429,18 +170435,18 @@ async function releaseVersion(config2, args) {
|
|
|
170429
170435
|
};
|
|
170430
170436
|
}
|
|
170431
170437
|
if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
|
|
170432
|
-
await commitChanges(
|
|
170433
|
-
changedFiles2,
|
|
170434
|
-
!!args.dryRun,
|
|
170435
|
-
!!args.verbose,
|
|
170436
|
-
createCommitMessageValues(
|
|
170438
|
+
await commitChanges({
|
|
170439
|
+
changedFiles: changedFiles2,
|
|
170440
|
+
isDryRun: !!args.dryRun,
|
|
170441
|
+
isVerbose: !!args.verbose,
|
|
170442
|
+
gitCommitMessages: createCommitMessageValues(
|
|
170437
170443
|
releaseGroups,
|
|
170438
170444
|
releaseGroupToFilteredProjects,
|
|
170439
170445
|
versionData,
|
|
170440
170446
|
commitMessage
|
|
170441
170447
|
),
|
|
170442
|
-
args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
170443
|
-
);
|
|
170448
|
+
gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
170449
|
+
});
|
|
170444
170450
|
} else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
|
|
170445
170451
|
writeInfo("Staging changed files with git", config2);
|
|
170446
170452
|
await gitAdd({
|
|
@@ -170508,8 +170514,14 @@ async function releaseVersion(config2, args) {
|
|
|
170508
170514
|
verbose: !!args.verbose,
|
|
170509
170515
|
generatorOptions
|
|
170510
170516
|
});
|
|
170511
|
-
|
|
170512
|
-
|
|
170517
|
+
if (Array.isArray(changedFiles2)) {
|
|
170518
|
+
for (const f7 of changedFiles2) {
|
|
170519
|
+
additionalChangedFiles.add(f7);
|
|
170520
|
+
}
|
|
170521
|
+
} else {
|
|
170522
|
+
for (const f7 of changedFiles2.changedFiles) {
|
|
170523
|
+
additionalChangedFiles.add(f7);
|
|
170524
|
+
}
|
|
170513
170525
|
}
|
|
170514
170526
|
});
|
|
170515
170527
|
}
|
|
@@ -170527,7 +170539,7 @@ async function releaseVersion(config2, args) {
|
|
|
170527
170539
|
let workspaceVersion = void 0;
|
|
170528
170540
|
if (releaseGroups.length === 1) {
|
|
170529
170541
|
const releaseGroup = releaseGroups[0];
|
|
170530
|
-
if (releaseGroup
|
|
170542
|
+
if (releaseGroup?.projectsRelationship === "fixed") {
|
|
170531
170543
|
const releaseGroupProjectNames = Array.from(
|
|
170532
170544
|
releaseGroupToFilteredProjects.get(releaseGroup) ?? []
|
|
170533
170545
|
);
|
|
@@ -170547,18 +170559,18 @@ async function releaseVersion(config2, args) {
|
|
|
170547
170559
|
};
|
|
170548
170560
|
}
|
|
170549
170561
|
if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
|
|
170550
|
-
await commitChanges(
|
|
170562
|
+
await commitChanges({
|
|
170551
170563
|
changedFiles,
|
|
170552
|
-
!!args.dryRun,
|
|
170553
|
-
!!args.verbose,
|
|
170554
|
-
createCommitMessageValues(
|
|
170564
|
+
isDryRun: !!args.dryRun,
|
|
170565
|
+
isVerbose: !!args.verbose,
|
|
170566
|
+
gitCommitMessages: createCommitMessageValues(
|
|
170555
170567
|
releaseGroups,
|
|
170556
170568
|
releaseGroupToFilteredProjects,
|
|
170557
170569
|
versionData,
|
|
170558
170570
|
commitMessage
|
|
170559
170571
|
),
|
|
170560
|
-
args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
170561
|
-
);
|
|
170572
|
+
gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
170573
|
+
});
|
|
170562
170574
|
} else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
|
|
170563
170575
|
writeInfo("Staging changed files with git", config2);
|
|
170564
170576
|
await gitAdd({
|
package/src/commit/index.js
CHANGED
|
@@ -37375,7 +37375,7 @@ var StormConfigSchema = z.object({
|
|
|
37375
37375
|
ci: z.boolean().default(true).describe(
|
|
37376
37376
|
"An indicator specifying if the current environment is a CI environment"
|
|
37377
37377
|
),
|
|
37378
|
-
workspaceRoot: z.string().trim().
|
|
37378
|
+
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
37379
37379
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
37380
37380
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
37381
37381
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/src/commitizen/index.js
CHANGED
|
@@ -37322,7 +37322,7 @@ var StormConfigSchema = z.object({
|
|
|
37322
37322
|
ci: z.boolean().default(true).describe(
|
|
37323
37323
|
"An indicator specifying if the current environment is a CI environment"
|
|
37324
37324
|
),
|
|
37325
|
-
workspaceRoot: z.string().trim().
|
|
37325
|
+
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
37326
37326
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
37327
37327
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
37328
37328
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
package/src/index.js
CHANGED
|
@@ -165322,7 +165322,7 @@ var StormConfigSchema = z.object({
|
|
|
165322
165322
|
ci: z.boolean().default(true).describe(
|
|
165323
165323
|
"An indicator specifying if the current environment is a CI environment"
|
|
165324
165324
|
),
|
|
165325
|
-
workspaceRoot: z.string().trim().
|
|
165325
|
+
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
165326
165326
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
165327
165327
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
165328
165328
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -170509,8 +170509,14 @@ async function releaseVersion(config2, args) {
|
|
|
170509
170509
|
verbose: !!args.verbose,
|
|
170510
170510
|
generatorOptions
|
|
170511
170511
|
});
|
|
170512
|
-
|
|
170513
|
-
|
|
170512
|
+
if (Array.isArray(changedFiles3)) {
|
|
170513
|
+
for (const f7 of changedFiles3) {
|
|
170514
|
+
additionalChangedFiles.add(f7);
|
|
170515
|
+
}
|
|
170516
|
+
} else {
|
|
170517
|
+
for (const f7 of changedFiles3.changedFiles) {
|
|
170518
|
+
additionalChangedFiles.add(f7);
|
|
170519
|
+
}
|
|
170514
170520
|
}
|
|
170515
170521
|
});
|
|
170516
170522
|
}
|
|
@@ -170537,18 +170543,18 @@ async function releaseVersion(config2, args) {
|
|
|
170537
170543
|
};
|
|
170538
170544
|
}
|
|
170539
170545
|
if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
|
|
170540
|
-
await commitChanges(
|
|
170541
|
-
changedFiles2,
|
|
170542
|
-
!!args.dryRun,
|
|
170543
|
-
!!args.verbose,
|
|
170544
|
-
createCommitMessageValues(
|
|
170546
|
+
await commitChanges({
|
|
170547
|
+
changedFiles: changedFiles2,
|
|
170548
|
+
isDryRun: !!args.dryRun,
|
|
170549
|
+
isVerbose: !!args.verbose,
|
|
170550
|
+
gitCommitMessages: createCommitMessageValues(
|
|
170545
170551
|
releaseGroups,
|
|
170546
170552
|
releaseGroupToFilteredProjects,
|
|
170547
170553
|
versionData,
|
|
170548
170554
|
commitMessage
|
|
170549
170555
|
),
|
|
170550
|
-
args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
170551
|
-
);
|
|
170556
|
+
gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
170557
|
+
});
|
|
170552
170558
|
} else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
|
|
170553
170559
|
writeInfo("Staging changed files with git", config2);
|
|
170554
170560
|
await gitAdd({
|
|
@@ -170616,8 +170622,14 @@ async function releaseVersion(config2, args) {
|
|
|
170616
170622
|
verbose: !!args.verbose,
|
|
170617
170623
|
generatorOptions
|
|
170618
170624
|
});
|
|
170619
|
-
|
|
170620
|
-
|
|
170625
|
+
if (Array.isArray(changedFiles2)) {
|
|
170626
|
+
for (const f7 of changedFiles2) {
|
|
170627
|
+
additionalChangedFiles.add(f7);
|
|
170628
|
+
}
|
|
170629
|
+
} else {
|
|
170630
|
+
for (const f7 of changedFiles2.changedFiles) {
|
|
170631
|
+
additionalChangedFiles.add(f7);
|
|
170632
|
+
}
|
|
170621
170633
|
}
|
|
170622
170634
|
});
|
|
170623
170635
|
}
|
|
@@ -170635,7 +170647,7 @@ async function releaseVersion(config2, args) {
|
|
|
170635
170647
|
let workspaceVersion = void 0;
|
|
170636
170648
|
if (releaseGroups.length === 1) {
|
|
170637
170649
|
const releaseGroup = releaseGroups[0];
|
|
170638
|
-
if (releaseGroup
|
|
170650
|
+
if (releaseGroup?.projectsRelationship === "fixed") {
|
|
170639
170651
|
const releaseGroupProjectNames = Array.from(
|
|
170640
170652
|
releaseGroupToFilteredProjects.get(releaseGroup) ?? []
|
|
170641
170653
|
);
|
|
@@ -170655,18 +170667,18 @@ async function releaseVersion(config2, args) {
|
|
|
170655
170667
|
};
|
|
170656
170668
|
}
|
|
170657
170669
|
if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
|
|
170658
|
-
await commitChanges(
|
|
170670
|
+
await commitChanges({
|
|
170659
170671
|
changedFiles,
|
|
170660
|
-
!!args.dryRun,
|
|
170661
|
-
!!args.verbose,
|
|
170662
|
-
createCommitMessageValues(
|
|
170672
|
+
isDryRun: !!args.dryRun,
|
|
170673
|
+
isVerbose: !!args.verbose,
|
|
170674
|
+
gitCommitMessages: createCommitMessageValues(
|
|
170663
170675
|
releaseGroups,
|
|
170664
170676
|
releaseGroupToFilteredProjects,
|
|
170665
170677
|
versionData,
|
|
170666
170678
|
commitMessage
|
|
170667
170679
|
),
|
|
170668
|
-
args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
170669
|
-
);
|
|
170680
|
+
gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
170681
|
+
});
|
|
170670
170682
|
} else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
|
|
170671
170683
|
writeInfo("Staging changed files with git", config2);
|
|
170672
170684
|
await gitAdd({
|
package/src/release/index.js
CHANGED
|
@@ -5785,7 +5785,7 @@ var StormConfigSchema = z.object({
|
|
|
5785
5785
|
ci: z.boolean().default(true).describe(
|
|
5786
5786
|
"An indicator specifying if the current environment is a CI environment"
|
|
5787
5787
|
),
|
|
5788
|
-
workspaceRoot: z.string().trim().
|
|
5788
|
+
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
5789
5789
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
5790
5790
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
5791
5791
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -6186,8 +6186,14 @@ async function releaseVersion(config, args) {
|
|
|
6186
6186
|
verbose: !!args.verbose,
|
|
6187
6187
|
generatorOptions
|
|
6188
6188
|
});
|
|
6189
|
-
|
|
6190
|
-
|
|
6189
|
+
if (Array.isArray(changedFiles3)) {
|
|
6190
|
+
for (const f of changedFiles3) {
|
|
6191
|
+
additionalChangedFiles.add(f);
|
|
6192
|
+
}
|
|
6193
|
+
} else {
|
|
6194
|
+
for (const f of changedFiles3.changedFiles) {
|
|
6195
|
+
additionalChangedFiles.add(f);
|
|
6196
|
+
}
|
|
6191
6197
|
}
|
|
6192
6198
|
});
|
|
6193
6199
|
}
|
|
@@ -6214,18 +6220,18 @@ async function releaseVersion(config, args) {
|
|
|
6214
6220
|
};
|
|
6215
6221
|
}
|
|
6216
6222
|
if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
|
|
6217
|
-
await commitChanges(
|
|
6218
|
-
changedFiles2,
|
|
6219
|
-
!!args.dryRun,
|
|
6220
|
-
!!args.verbose,
|
|
6221
|
-
createCommitMessageValues(
|
|
6223
|
+
await commitChanges({
|
|
6224
|
+
changedFiles: changedFiles2,
|
|
6225
|
+
isDryRun: !!args.dryRun,
|
|
6226
|
+
isVerbose: !!args.verbose,
|
|
6227
|
+
gitCommitMessages: createCommitMessageValues(
|
|
6222
6228
|
releaseGroups,
|
|
6223
6229
|
releaseGroupToFilteredProjects,
|
|
6224
6230
|
versionData,
|
|
6225
6231
|
commitMessage
|
|
6226
6232
|
),
|
|
6227
|
-
args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
6228
|
-
);
|
|
6233
|
+
gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
6234
|
+
});
|
|
6229
6235
|
} else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
|
|
6230
6236
|
writeInfo("Staging changed files with git", config);
|
|
6231
6237
|
await gitAdd({
|
|
@@ -6293,8 +6299,14 @@ async function releaseVersion(config, args) {
|
|
|
6293
6299
|
verbose: !!args.verbose,
|
|
6294
6300
|
generatorOptions
|
|
6295
6301
|
});
|
|
6296
|
-
|
|
6297
|
-
|
|
6302
|
+
if (Array.isArray(changedFiles2)) {
|
|
6303
|
+
for (const f of changedFiles2) {
|
|
6304
|
+
additionalChangedFiles.add(f);
|
|
6305
|
+
}
|
|
6306
|
+
} else {
|
|
6307
|
+
for (const f of changedFiles2.changedFiles) {
|
|
6308
|
+
additionalChangedFiles.add(f);
|
|
6309
|
+
}
|
|
6298
6310
|
}
|
|
6299
6311
|
});
|
|
6300
6312
|
}
|
|
@@ -6312,7 +6324,7 @@ async function releaseVersion(config, args) {
|
|
|
6312
6324
|
let workspaceVersion = void 0;
|
|
6313
6325
|
if (releaseGroups.length === 1) {
|
|
6314
6326
|
const releaseGroup = releaseGroups[0];
|
|
6315
|
-
if (releaseGroup
|
|
6327
|
+
if (releaseGroup?.projectsRelationship === "fixed") {
|
|
6316
6328
|
const releaseGroupProjectNames = Array.from(
|
|
6317
6329
|
releaseGroupToFilteredProjects.get(releaseGroup) ?? []
|
|
6318
6330
|
);
|
|
@@ -6332,18 +6344,18 @@ async function releaseVersion(config, args) {
|
|
|
6332
6344
|
};
|
|
6333
6345
|
}
|
|
6334
6346
|
if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
|
|
6335
|
-
await commitChanges(
|
|
6347
|
+
await commitChanges({
|
|
6336
6348
|
changedFiles,
|
|
6337
|
-
!!args.dryRun,
|
|
6338
|
-
!!args.verbose,
|
|
6339
|
-
createCommitMessageValues(
|
|
6349
|
+
isDryRun: !!args.dryRun,
|
|
6350
|
+
isVerbose: !!args.verbose,
|
|
6351
|
+
gitCommitMessages: createCommitMessageValues(
|
|
6340
6352
|
releaseGroups,
|
|
6341
6353
|
releaseGroupToFilteredProjects,
|
|
6342
6354
|
versionData,
|
|
6343
6355
|
commitMessage
|
|
6344
6356
|
),
|
|
6345
|
-
args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
6346
|
-
);
|
|
6357
|
+
gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
|
|
6358
|
+
});
|
|
6347
6359
|
} else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
|
|
6348
6360
|
writeInfo("Staging changed files with git", config);
|
|
6349
6361
|
await gitAdd({
|