@grunnverk/commands-tree 1.5.1 → 1.5.3
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 +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLogger, getDryRunLogger, toAIConfig, createLoggerAdapter, createStorageAdapter, isInGitRepository, runGitWithLock, getOutputPath, DEFAULT_OUTPUT_DIRECTORY } from '@grunnverk/core';
|
|
2
|
-
import { safeJsonParse, validatePackageJson, run, runSecure, getGloballyLinkedPackages, getGitStatusSummary, getLinkedDependencies, getLinkCompatibilityProblems } from '@grunnverk/git-tools';
|
|
2
|
+
import { safeJsonParse, validatePackageJson, run, runSecure, getGloballyLinkedPackages, getGitStatusSummary, getLinkedDependencies, getLinkCompatibilityProblems, escapeShellArg } from '@grunnverk/git-tools';
|
|
3
3
|
import * as Commit from '@grunnverk/commands-git';
|
|
4
4
|
import { findAllPackageJsonFiles, PerformanceTimer, optimizePrecommitCommand, recordTestRun } from '@grunnverk/commands-git';
|
|
5
5
|
import { createStorage } from '@grunnverk/shared';
|
|
@@ -3943,7 +3943,7 @@ const execute$1 = async (runConfig)=>{
|
|
|
3943
3943
|
commandSpecificOptions += ` --context "${runConfig.commit.context}"`;
|
|
3944
3944
|
}
|
|
3945
3945
|
if (((_runConfig_commit12 = runConfig.commit) === null || _runConfig_commit12 === void 0 ? void 0 : _runConfig_commit12.contextFiles) && runConfig.commit.contextFiles.length > 0) {
|
|
3946
|
-
commandSpecificOptions += ` --context-files ${runConfig.commit.contextFiles.join(' ')}`;
|
|
3946
|
+
commandSpecificOptions += ` --context-files ${runConfig.commit.contextFiles.map((f)=>escapeShellArg(f)).join(' ')}`;
|
|
3947
3947
|
}
|
|
3948
3948
|
// Push option can be boolean or string (remote name)
|
|
3949
3949
|
if ((_runConfig_commit13 = runConfig.commit) === null || _runConfig_commit13 === void 0 ? void 0 : _runConfig_commit13.push) {
|
|
@@ -3989,7 +3989,7 @@ const execute$1 = async (runConfig)=>{
|
|
|
3989
3989
|
commandSpecificOptions += ` --context "${runConfig.release.context}"`;
|
|
3990
3990
|
}
|
|
3991
3991
|
if (((_runConfig_release7 = runConfig.release) === null || _runConfig_release7 === void 0 ? void 0 : _runConfig_release7.contextFiles) && runConfig.release.contextFiles.length > 0) {
|
|
3992
|
-
commandSpecificOptions += ` --context-files ${runConfig.release.contextFiles.join(' ')}`;
|
|
3992
|
+
commandSpecificOptions += ` --context-files ${runConfig.release.contextFiles.map((f)=>escapeShellArg(f)).join(' ')}`;
|
|
3993
3993
|
}
|
|
3994
3994
|
if ((_runConfig_release8 = runConfig.release) === null || _runConfig_release8 === void 0 ? void 0 : _runConfig_release8.messageLimit) {
|
|
3995
3995
|
commandSpecificOptions += ` --message-limit ${runConfig.release.messageLimit}`;
|
|
@@ -4037,7 +4037,7 @@ const execute$1 = async (runConfig)=>{
|
|
|
4037
4037
|
}
|
|
4038
4038
|
// Link/Unlink externals
|
|
4039
4039
|
if ((builtInCommand === 'link' || builtInCommand === 'unlink') && ((_runConfig_tree36 = runConfig.tree) === null || _runConfig_tree36 === void 0 ? void 0 : _runConfig_tree36.externals) && runConfig.tree.externals.length > 0) {
|
|
4040
|
-
commandSpecificOptions += ` --externals ${runConfig.tree.externals.join(' ')}`;
|
|
4040
|
+
commandSpecificOptions += ` --externals ${runConfig.tree.externals.map((e)=>escapeShellArg(e)).join(' ')}`;
|
|
4041
4041
|
}
|
|
4042
4042
|
commandToRun = `kodrdriv ${builtInCommand}${optionsString}${packageArgString}${commandSpecificOptions}`;
|
|
4043
4043
|
isBuiltInCommand = true;
|