@storm-software/git-tools 2.85.0 → 2.86.0

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.
@@ -56890,7 +56890,8 @@ var CONSOLE_ICONS = {
56890
56890
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
56891
56891
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
56892
56892
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
56893
- [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
56893
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
56894
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
56894
56895
  };
56895
56896
 
56896
56897
  // ../config-tools/src/logger/format-timestamp.ts
@@ -56967,48 +56968,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
56967
56968
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
56968
56969
  return (message) => {
56969
56970
  console.error(`
56970
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
56971
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56971
56972
  `);
56972
56973
  };
56973
56974
  }
56974
56975
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
56975
56976
  return (message) => {
56976
56977
  console.error(`
56977
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
56978
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56978
56979
  `);
56979
56980
  };
56980
56981
  }
56981
56982
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
56982
56983
  return (message) => {
56983
56984
  console.warn(`
56984
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
56985
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56985
56986
  `);
56986
56987
  };
56987
56988
  }
56988
56989
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
56989
56990
  return (message) => {
56990
56991
  console.info(`
56991
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
56992
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56992
56993
  `);
56993
56994
  };
56994
56995
  }
56995
56996
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
56996
56997
  return (message) => {
56997
56998
  console.info(`
56998
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
56999
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56999
57000
  `);
57000
57001
  };
57001
57002
  }
57002
57003
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
57003
57004
  return (message) => {
57004
57005
  console.debug(`
57005
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
57006
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
57006
57007
  `);
57007
57008
  };
57008
57009
  }
57009
57010
  return (message) => {
57010
57011
  console.log(`
57011
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
57012
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
57012
57013
  `);
57013
57014
  };
57014
57015
  }, "getLogFn");
@@ -58294,7 +58295,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
58294
58295
  }
58295
58296
  const _merger = options.merger || defu;
58296
58297
  if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
58297
- const { downloadTemplate } = await import("./dist-7C27GIRC.js");
58298
+ const { downloadTemplate } = await import("./dist-GN3JYRFA.js");
58298
58299
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
58299
58300
  let cloneDir;
58300
58301
  const localNodeModules = resolve(options.cwd, "node_modules");
@@ -58382,26 +58383,26 @@ var import_dotenv = __toESM(require_main(), 1);
58382
58383
  // ../config-tools/src/config-file/get-config-file.ts
58383
58384
  var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
58384
58385
  const workspacePath = filePath || findWorkspaceRoot(filePath);
58385
- let config = loadConfig({
58386
+ let config = await loadConfig({
58386
58387
  cwd: workspacePath,
58387
58388
  packageJson: true,
58388
58389
  name: fileName,
58389
58390
  envName: fileName?.toUpperCase(),
58390
58391
  jitiOptions: {
58391
58392
  debug: false,
58392
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
58393
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
58393
58394
  },
58394
58395
  ...options
58395
58396
  });
58396
58397
  if (!config || Object.keys(config).length === 0) {
58397
- config = loadConfig({
58398
+ config = await loadConfig({
58398
58399
  cwd: workspacePath,
58399
58400
  packageJson: true,
58400
58401
  name: fileName,
58401
58402
  envName: fileName?.toUpperCase(),
58402
58403
  jitiOptions: {
58403
58404
  debug: false,
58404
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
58405
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
58405
58406
  },
58406
58407
  configFile: fileName,
58407
58408
  ...options
@@ -58854,7 +58855,6 @@ ${formatLogMessage(config)}`, config);
58854
58855
  }, "loadStormConfig");
58855
58856
 
58856
58857
  export {
58857
- require_devkit,
58858
58858
  joinPaths,
58859
58859
  findWorkspaceRootSafe,
58860
58860
  findWorkspaceRoot,
@@ -56890,7 +56890,8 @@ var CONSOLE_ICONS = {
56890
56890
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
56891
56891
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
56892
56892
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
56893
- [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
56893
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
56894
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
56894
56895
  };
56895
56896
 
56896
56897
  // ../config-tools/src/logger/format-timestamp.ts
@@ -56967,48 +56968,48 @@ var getLogFn = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (logLevel =
56967
56968
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
56968
56969
  return (message) => {
56969
56970
  console.error(`
56970
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(formatLogMessage(message))}
56971
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56971
56972
  `);
56972
56973
  };
56973
56974
  }
56974
56975
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
56975
56976
  return (message) => {
56976
56977
  console.error(`
56977
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(formatLogMessage(message))}
56978
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56978
56979
  `);
56979
56980
  };
56980
56981
  }
56981
56982
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
56982
56983
  return (message) => {
56983
56984
  console.warn(`
56984
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(formatLogMessage(message))}
56985
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56985
56986
  `);
56986
56987
  };
56987
56988
  }
56988
56989
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
56989
56990
  return (message) => {
56990
56991
  console.info(`
56991
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(formatLogMessage(message))}
56992
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56992
56993
  `);
56993
56994
  };
56994
56995
  }
56995
56996
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
56996
56997
  return (message) => {
56997
56998
  console.info(`
56998
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(formatLogMessage(message))}
56999
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
56999
57000
  `);
57000
57001
  };
57001
57002
  }
57002
57003
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
57003
57004
  return (message) => {
57004
57005
  console.debug(`
57005
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
57006
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
57006
57007
  `);
57007
57008
  };
57008
57009
  }
57009
57010
  return (message) => {
57010
57011
  console.log(`
57011
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
57012
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
57012
57013
  `);
57013
57014
  };
57014
57015
  }, "getLogFn");
@@ -58294,7 +58295,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
58294
58295
  }
58295
58296
  const _merger = options.merger || _chunkJMRHG3KScjs.defu;
58296
58297
  if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
58297
- const { downloadTemplate } = await Promise.resolve().then(() => _interopRequireWildcard2(require("./dist-GFY7EUZH.cjs")));
58298
+ const { downloadTemplate } = await Promise.resolve().then(() => _interopRequireWildcard2(require("./dist-ZUU4T6MR.cjs")));
58298
58299
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
58299
58300
  let cloneDir;
58300
58301
  const localNodeModules = _chunkJMRHG3KScjs.resolve.call(void 0, options.cwd, "node_modules");
@@ -58385,26 +58386,26 @@ var import_dotenv = _chunkEM6PLOYYcjs.__toESM.call(void 0, require_main(), 1);
58385
58386
  // ../config-tools/src/config-file/get-config-file.ts
58386
58387
  var getConfigFileByName = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
58387
58388
  const workspacePath = filePath || findWorkspaceRoot(filePath);
58388
- let config = loadConfig({
58389
+ let config = await loadConfig({
58389
58390
  cwd: workspacePath,
58390
58391
  packageJson: true,
58391
58392
  name: fileName,
58392
58393
  envName: _optionalChain([fileName, 'optionalAccess', _155 => _155.toUpperCase, 'call', _156 => _156()]),
58393
58394
  jitiOptions: {
58394
58395
  debug: false,
58395
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
58396
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
58396
58397
  },
58397
58398
  ...options
58398
58399
  });
58399
58400
  if (!config || Object.keys(config).length === 0) {
58400
- config = loadConfig({
58401
+ config = await loadConfig({
58401
58402
  cwd: workspacePath,
58402
58403
  packageJson: true,
58403
58404
  name: fileName,
58404
58405
  envName: _optionalChain([fileName, 'optionalAccess', _157 => _157.toUpperCase, 'call', _158 => _158()]),
58405
58406
  jitiOptions: {
58406
58407
  debug: false,
58407
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
58408
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
58408
58409
  },
58409
58410
  configFile: fileName,
58410
58411
  ...options
@@ -58873,8 +58874,7 @@ ${formatLogMessage(config)}`, config);
58873
58874
 
58874
58875
 
58875
58876
 
58876
-
58877
- exports.require_devkit = require_devkit; exports.joinPaths = joinPaths; exports.findWorkspaceRootSafe = findWorkspaceRootSafe; exports.findWorkspaceRoot = findWorkspaceRoot; exports.require_ansi_styles = require_ansi_styles; exports.require_supports_color = require_supports_color; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess; exports.loadStormConfig = loadStormConfig;
58877
+ exports.joinPaths = joinPaths; exports.findWorkspaceRootSafe = findWorkspaceRootSafe; exports.findWorkspaceRoot = findWorkspaceRoot; exports.require_ansi_styles = require_ansi_styles; exports.require_supports_color = require_supports_color; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess; exports.loadStormConfig = loadStormConfig;
58878
58878
  /*! Bundled license information:
58879
58879
 
58880
58880
  ejs/lib/ejs.js: