virmator 4.3.4 → 5.0.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.
Files changed (154) hide show
  1. package/README.md +4 -3
  2. package/base-configs/base-mocharc.js +5 -3
  3. package/base-configs/base-nyc.js +8 -4
  4. package/base-configs/base-tsconfig.json +3 -6
  5. package/base-configs/web-test-runner-base.mjs +4 -3
  6. package/configs/.github/workflows/build-for-gh-pages.yml +1 -1
  7. package/configs/.github/workflows/tagged-release.yml +1 -1
  8. package/configs/.nvmrc +1 -1
  9. package/configs/gitignore.txt +1 -0
  10. package/dist/api/command/command-configs.d.ts +1 -0
  11. package/dist/api/command/command-configs.d.ts.map +1 -0
  12. package/dist/api/command/command-configs.js +3 -3
  13. package/dist/api/command/command-description.d.ts +1 -0
  14. package/dist/api/command/command-description.d.ts.map +1 -0
  15. package/dist/api/command/command-executor.d.ts +1 -0
  16. package/dist/api/command/command-executor.d.ts.map +1 -0
  17. package/dist/api/command/command-help.d.ts +1 -0
  18. package/dist/api/command/command-help.d.ts.map +1 -0
  19. package/dist/api/command/command-logging.d.ts +1 -0
  20. package/dist/api/command/command-logging.d.ts.map +1 -0
  21. package/dist/api/command/command-mapping.d.ts +2 -1
  22. package/dist/api/command/command-mapping.d.ts.map +1 -0
  23. package/dist/api/command/command-messages.d.ts +1 -0
  24. package/dist/api/command/command-messages.d.ts.map +1 -0
  25. package/dist/api/command/command-messages.js +3 -3
  26. package/dist/api/command/command-to-help-message.d.ts +1 -0
  27. package/dist/api/command/command-to-help-message.d.ts.map +1 -0
  28. package/dist/api/command/command-to-help-message.js +11 -10
  29. package/dist/api/command/define-command-inputs.d.ts +1 -0
  30. package/dist/api/command/define-command-inputs.d.ts.map +1 -0
  31. package/dist/api/command/define-command.d.ts +1 -0
  32. package/dist/api/command/define-command.d.ts.map +1 -0
  33. package/dist/api/command/define-command.js +3 -3
  34. package/dist/api/config/config-file-definition.d.ts +1 -0
  35. package/dist/api/config/config-file-definition.d.ts.map +1 -0
  36. package/dist/api/config/config-paths.d.ts +1 -0
  37. package/dist/api/config/config-paths.d.ts.map +1 -0
  38. package/dist/api/config/copy-config.d.ts +1 -0
  39. package/dist/api/config/copy-config.d.ts.map +1 -0
  40. package/dist/api/config/copy-config.js +5 -5
  41. package/dist/api/create-virmator.d.ts +1 -0
  42. package/dist/api/create-virmator.d.ts.map +1 -0
  43. package/dist/api/create-virmator.js +2 -2
  44. package/dist/api/run-command/check-npm-deps.d.ts +1 -0
  45. package/dist/api/run-command/check-npm-deps.d.ts.map +1 -0
  46. package/dist/api/run-command/check-npm-deps.js +9 -10
  47. package/dist/api/run-command/extract-arguments.d.ts +1 -0
  48. package/dist/api/run-command/extract-arguments.d.ts.map +1 -0
  49. package/dist/api/run-command/run-command-executor.d.ts +1 -0
  50. package/dist/api/run-command/run-command-executor.d.ts.map +1 -0
  51. package/dist/api/run-command/run-command-executor.js +6 -7
  52. package/dist/api/run-command/run-extended-virmator.d.ts +1 -0
  53. package/dist/api/run-command/run-extended-virmator.d.ts.map +1 -0
  54. package/dist/api/run-command/run-extended-virmator.js +3 -3
  55. package/dist/api/run-command/run-shell-command.d.ts +2 -1
  56. package/dist/api/run-command/run-shell-command.d.ts.map +1 -0
  57. package/dist/api/run-command/run-shell-command.js +2 -2
  58. package/dist/api/virmator-types.d.ts +1 -0
  59. package/dist/api/virmator-types.d.ts.map +1 -0
  60. package/dist/augments/array.d.ts +1 -0
  61. package/dist/augments/array.d.ts.map +1 -0
  62. package/dist/augments/console.d.ts +1 -0
  63. package/dist/augments/console.d.ts.map +1 -0
  64. package/dist/augments/fs.d.ts +1 -0
  65. package/dist/augments/fs.d.ts.map +1 -0
  66. package/dist/augments/fs.js +2 -2
  67. package/dist/augments/git.d.ts +1 -0
  68. package/dist/augments/git.d.ts.map +1 -0
  69. package/dist/augments/git.js +2 -2
  70. package/dist/augments/json.d.ts +1 -0
  71. package/dist/augments/json.d.ts.map +1 -0
  72. package/dist/augments/npm.d.ts +3 -2
  73. package/dist/augments/npm.d.ts.map +1 -0
  74. package/dist/augments/npm.js +2 -2
  75. package/dist/augments/object.d.ts +2 -1
  76. package/dist/augments/object.d.ts.map +1 -0
  77. package/dist/augments/object.js +7 -7
  78. package/dist/augments/path.d.ts +1 -0
  79. package/dist/augments/path.d.ts.map +1 -0
  80. package/dist/augments/prettier.d.ts +1 -0
  81. package/dist/augments/prettier.d.ts.map +1 -0
  82. package/dist/augments/prettier.js +1 -1
  83. package/dist/augments/regexp.d.ts +1 -0
  84. package/dist/augments/regexp.d.ts.map +1 -0
  85. package/dist/augments/string.d.ts +1 -0
  86. package/dist/augments/string.d.ts.map +1 -0
  87. package/dist/augments/test.d.ts.map +1 -0
  88. package/dist/augments/type.d.ts +1 -0
  89. package/dist/augments/type.d.ts.map +1 -0
  90. package/dist/cli.d.ts +1 -0
  91. package/dist/cli.d.ts.map +1 -0
  92. package/dist/commands/code-in-markdown.command.d.ts +1 -0
  93. package/dist/commands/code-in-markdown.command.d.ts.map +1 -0
  94. package/dist/commands/code-in-markdown.command.test.d.ts.map +1 -0
  95. package/dist/commands/compile.command.d.ts +1 -0
  96. package/dist/commands/compile.command.d.ts.map +1 -0
  97. package/dist/commands/compile.command.js +1 -1
  98. package/dist/commands/compile.command.test.d.ts.map +1 -0
  99. package/dist/commands/extra-configs/all-extra-configs.d.ts +1 -0
  100. package/dist/commands/extra-configs/all-extra-configs.d.ts.map +1 -0
  101. package/dist/commands/extra-configs/combine-json-config.d.ts +1 -0
  102. package/dist/commands/extra-configs/combine-json-config.d.ts.map +1 -0
  103. package/dist/commands/extra-configs/combine-json-config.js +2 -2
  104. package/dist/commands/extra-configs/combine-text-config.d.ts +1 -0
  105. package/dist/commands/extra-configs/combine-text-config.d.ts.map +1 -0
  106. package/dist/commands/extra-configs/combine-text-config.js +2 -2
  107. package/dist/commands/extra-configs/create-default-package-json.d.ts +1 -0
  108. package/dist/commands/extra-configs/create-default-package-json.d.ts.map +1 -0
  109. package/dist/commands/extra-configs/create-default-package-json.js +4 -4
  110. package/dist/commands/format.command.d.ts +1 -0
  111. package/dist/commands/format.command.d.ts.map +1 -0
  112. package/dist/commands/format.command.js +3 -3
  113. package/dist/commands/format.command.test.d.ts.map +1 -0
  114. package/dist/commands/frontend.command.d.ts +2 -1
  115. package/dist/commands/frontend.command.d.ts.map +1 -0
  116. package/dist/commands/frontend.command.js +1 -1
  117. package/dist/commands/init.command.d.ts +1 -0
  118. package/dist/commands/init.command.d.ts.map +1 -0
  119. package/dist/commands/init.command.test.d.ts.map +1 -0
  120. package/dist/commands/publish.command.d.ts +1 -0
  121. package/dist/commands/publish.command.d.ts.map +1 -0
  122. package/dist/commands/publish.command.js +13 -13
  123. package/dist/commands/spellcheck.command.d.ts +1 -0
  124. package/dist/commands/spellcheck.command.d.ts.map +1 -0
  125. package/dist/commands/spellcheck.command.test.d.ts.map +1 -0
  126. package/dist/commands/test-web.command.d.ts +1 -0
  127. package/dist/commands/test-web.command.d.ts.map +1 -0
  128. package/dist/commands/test-web.command.test.d.ts.map +1 -0
  129. package/dist/commands/test.command.d.ts +2 -1
  130. package/dist/commands/test.command.d.ts.map +1 -0
  131. package/dist/commands/test.command.js +2 -2
  132. package/dist/commands/test.command.test.d.ts.map +1 -0
  133. package/dist/commands/update-configs.command.d.ts +1 -0
  134. package/dist/commands/update-configs.command.d.ts.map +1 -0
  135. package/dist/commands/update-configs.command.test.d.ts.map +1 -0
  136. package/dist/compiled-base-configs/base-vite.d.ts +1 -0
  137. package/dist/compiled-base-configs/base-vite.d.ts.map +1 -0
  138. package/dist/compiled-base-configs/vite-always-reload-plugin.d.ts +1 -0
  139. package/dist/compiled-base-configs/vite-always-reload-plugin.d.ts.map +1 -0
  140. package/dist/compiled-base-configs/vite-always-reload-plugin.js +2 -2
  141. package/dist/file-paths/package-paths.d.ts +1 -0
  142. package/dist/file-paths/package-paths.d.ts.map +1 -0
  143. package/dist/file-paths/package-paths.js +4 -4
  144. package/dist/index.d.ts +3 -3
  145. package/dist/index.d.ts.map +1 -0
  146. package/dist/index.js +0 -1
  147. package/dist/scripts/save-help-message.d.ts +1 -0
  148. package/dist/scripts/save-help-message.d.ts.map +1 -0
  149. package/dist/scripts/save-help-message.js +2 -2
  150. package/mocha.config.js +1 -1
  151. package/package.json +24 -23
  152. package/tsconfig.tsbuildinfo +1 -0
  153. package/dist/api/cli-color.d.ts +0 -9
  154. package/dist/api/cli-color.js +0 -13
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.runCommandExecutor = exports.createCommandString = void 0;
4
- const augment_vir_1 = require("augment-vir");
5
- const node_only_1 = require("augment-vir/dist/cjs/node-only");
4
+ const common_1 = require("@augment-vir/common");
5
+ const node_js_1 = require("@augment-vir/node-js");
6
6
  const path_1 = require("path");
7
- const cli_color_1 = require("../cli-color");
8
7
  const command_executor_1 = require("../command/command-executor");
9
8
  const copy_config_1 = require("../config/copy-config");
10
9
  const run_shell_command_1 = require("./run-shell-command");
@@ -18,14 +17,14 @@ function createCommandString(executorOutput) {
18
17
  arg = arg.arg;
19
18
  }
20
19
  }
21
- return (0, node_only_1.interpolationSafeWindowsPath)(arg);
20
+ return (0, node_js_1.interpolationSafeWindowsPath)(arg);
22
21
  });
23
- const commandString = `${executorOutput.mainCommand} ${args.filter(augment_vir_1.isTruthy).join(' ')}`;
22
+ const commandString = `${executorOutput.mainCommand} ${args.filter(common_1.isTruthy).join(' ')}`;
24
23
  return commandString;
25
24
  }
26
25
  exports.createCommandString = createCommandString;
27
26
  async function runCommandExecutor(commandDefinition, commandInputs) {
28
- console.info(`${cli_color_1.Color.Info}running ${commandDefinition.commandName}...${cli_color_1.Color.Reset}`);
27
+ console.info(`${node_js_1.logColors.info}running ${commandDefinition.commandName}...${node_js_1.logColors.reset}`);
29
28
  await (0, copy_config_1.copyAllConfigFiles)({
30
29
  logging: commandInputs.logging,
31
30
  configFiles: Object.values(commandDefinition.configFiles),
@@ -39,7 +38,7 @@ async function runCommandExecutor(commandDefinition, commandInputs) {
39
38
  }
40
39
  else {
41
40
  const commandString = createCommandString(executorOutput);
42
- console.log(`${cli_color_1.Color.Faint}${(0, node_only_1.toPosixPath)((0, path_1.relative)(process.cwd(), commandString))}${cli_color_1.Color.Reset}`);
41
+ console.log(`${node_js_1.logColors.faint}${(0, node_js_1.toPosixPath)((0, path_1.relative)(process.cwd(), commandString))}${node_js_1.logColors.reset}`);
43
42
  const commandResult = await (0, run_shell_command_1.runVirmatorShellCommand)(commandString, {
44
43
  repoDir: commandInputs.repoDir,
45
44
  logging: commandInputs.logging,
@@ -8,3 +8,4 @@ export declare function runExtendedVirmator({ allArgs, allConfigs, commandMappin
8
8
  packageDir: string;
9
9
  repoDir: string;
10
10
  }): Promise<void>;
11
+ //# sourceMappingURL=run-extended-virmator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-extended-virmator.d.ts","sourceRoot":"","sources":["../../../src/api/run-command/run-extended-virmator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAC,oBAAoB,EAAC,MAAM,kCAAkC,CAAC;AAmCtE,wBAAsB,mBAAmB,CAAC,EACtC,OAAO,EACP,UAAU,EACV,cAAc,EACd,cAAc,EACd,UAAU,EACV,OAAO,GACV,EAAE;IACC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC5C,cAAc,EAAE,cAAc,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2ChB"}
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.runExtendedVirmator = void 0;
4
- const augment_vir_1 = require("augment-vir");
4
+ const common_1 = require("@augment-vir/common");
5
5
  const command_logging_1 = require("../command/command-logging");
6
6
  const command_messages_1 = require("../command/command-messages");
7
7
  const check_npm_deps_1 = require("./check-npm-deps");
8
8
  const extract_arguments_1 = require("./extract-arguments");
9
9
  const run_command_executor_1 = require("./run-command-executor");
10
10
  function availableCommandsString(commandMapping) {
11
- return `\nAvailable commands:\n ${(0, augment_vir_1.getObjectTypedKeys)(commandMapping).join(', ')}\n`;
11
+ return `\nAvailable commands:\n ${(0, common_1.getObjectTypedKeys)(commandMapping).join(', ')}\n`;
12
12
  }
13
13
  function getValidCommandDefinition(binName, commandMapping, givenCommandName) {
14
14
  if (!givenCommandName) {
15
15
  throw new Error(`Missing command name as first input to ${binName}.${availableCommandsString(commandMapping)}`);
16
16
  }
17
17
  const commandDefinition = commandMapping[givenCommandName];
18
- if (!(0, augment_vir_1.typedHasProperty)(commandMapping, givenCommandName) || !commandDefinition) {
18
+ if (!(0, common_1.typedHasProperty)(commandMapping, givenCommandName) || !commandDefinition) {
19
19
  throw new Error(`Invalid command "${givenCommandName} for ${binName}.${availableCommandsString(commandMapping)}"`);
20
20
  }
21
21
  return commandDefinition;
@@ -1,4 +1,4 @@
1
- import { ShellOutput } from 'augment-vir/dist/cjs/node-only';
1
+ import { ShellOutput } from '@augment-vir/node-js';
2
2
  import { CommandLogging, CommandLogTransforms } from '../command/command-logging';
3
3
  export type RunVirmatorShellCommandOptions = {
4
4
  repoDir: string;
@@ -6,3 +6,4 @@ export type RunVirmatorShellCommandOptions = {
6
6
  logTransforms?: CommandLogTransforms | undefined;
7
7
  };
8
8
  export declare function runVirmatorShellCommand(command: string, { repoDir: cwd, logging, logTransforms }: RunVirmatorShellCommandOptions): Promise<ShellOutput>;
9
+ //# sourceMappingURL=run-shell-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-shell-command.d.ts","sourceRoot":"","sources":["../../../src/api/run-command/run-shell-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACH,cAAc,EAEd,oBAAoB,EAEvB,MAAM,4BAA4B,CAAC;AAcpC,MAAM,MAAM,8BAA8B,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,cAAc,CAAC;IACxB,aAAa,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,wBAAsB,uBAAuB,CACzC,OAAO,EAAE,MAAM,EACf,EAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,aAAa,EAAC,EAAE,8BAA8B,GACvE,OAAO,CAAC,WAAW,CAAC,CActB"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.runVirmatorShellCommand = void 0;
4
- const node_only_1 = require("augment-vir/dist/cjs/node-only");
4
+ const node_js_1 = require("@augment-vir/node-js");
5
5
  const command_logging_1 = require("../command/command-logging");
6
6
  function logWrapper(handleLog, logTransformer) {
7
7
  return (input) => {
@@ -13,7 +13,7 @@ function logWrapper(handleLog, logTransformer) {
13
13
  }
14
14
  async function runVirmatorShellCommand(command, { repoDir: cwd, logging, logTransforms }) {
15
15
  var _a, _b;
16
- const shellResults = await (0, node_only_1.runShellCommand)(command, {
16
+ const shellResults = await (0, node_js_1.runShellCommand)(command, {
17
17
  cwd,
18
18
  stdoutCallback: logWrapper(logging.stdout, (_a = logTransforms === null || logTransforms === void 0 ? void 0 : logTransforms.stdout) !== null && _a !== void 0 ? _a : command_logging_1.identityCommandLogTransform),
19
19
  stderrCallback: logWrapper(logging.stderr, (_b = logTransforms === null || logTransforms === void 0 ? void 0 : logTransforms.stderr) !== null && _b !== void 0 ? _b : command_logging_1.identityCommandLogTransform),
@@ -16,3 +16,4 @@ export type ExtendedVirmator<CommandMappingGeneric extends Readonly<CommandMappi
16
16
  runInCli: () => Promise<void>;
17
17
  run: (allArgs: string[], repoDir: string) => Promise<void>;
18
18
  }>;
19
+ //# sourceMappingURL=virmator-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virmator-types.d.ts","sourceRoot":"","sources":["../../src/api/virmator-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,+BAA+B,EAAE,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,oBAAoB,CAC5B,yBAAyB,SAAS,aAAa,CAAC,iBAAiB,CAAC,IAClE,QAAQ,CAAC;IACT,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;CAClD,CAAC,CAAC;AAEH,MAAM,MAAM,gBAAgB,CAAC,qBAAqB,SAAS,QAAQ,CAAC,cAAc,CAAC,IAAI,QAAQ,CAAC;IAC5F,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,qBAAqB,CAAC;IACtC,MAAM,EAAE,CAAC,yBAAyB,SAAS,aAAa,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,EAC5E,MAAM,EAAE,oBAAoB,CAAC,yBAAyB,CAAC,KACtD,gBAAgB,CAAC,+BAA+B,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAClF,UAAU,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAChD,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9D,CAAC,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function isInTypedArray<T>(input: any, array: ReadonlyArray<T>): input is T;
2
+ //# sourceMappingURL=array.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../src/augments/array.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,CAEjF"}
@@ -7,3 +7,4 @@ export declare function askQuestionUntilConditionMet({ questionToAsk, conditionC
7
7
  /** Set to 0 to disable the timeout */
8
8
  timeoutMs?: number;
9
9
  }): Promise<string>;
10
+ //# sourceMappingURL=console.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/augments/console.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAsB5F;AAED,wBAAsB,4BAA4B,CAAC,EAC/C,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,WAAe,EACf,SAAkB,GACrB,EAAE;IACC,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBlB"}
@@ -8,3 +8,4 @@ export declare function readAllDirContents({ dir, recursive, }: {
8
8
  }): Promise<DirContents>;
9
9
  export declare function writeFiles(dir: string, allFileContents: DirContents): Promise<void>;
10
10
  export declare function recursivelyUpwardsSearchForDir(startDirPath: string, check: (dirPath: string) => boolean): Promise<string>;
11
+ //# sourceMappingURL=fs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/augments/fs.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,WAAW;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;CACvC;AAED,eAAO,MAAM,cAAc,QAAgC,CAAC;AAE5D,wBAAsB,kBAAkB,CAAC,EACrC,GAAG,EACH,SAAiB,GACpB,EAAE;IACC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC,WAAW,CAAC,CAsBvB;AAED,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAazF;AAED,wBAAsB,8BAA8B,CAChD,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,GACpC,OAAO,CAAC,MAAM,CAAC,CAcjB"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.recursivelyUpwardsSearchForDir = exports.writeFiles = exports.readAllDirContents = exports.systemRootPath = void 0;
4
- const augment_vir_1 = require("augment-vir");
4
+ const common_1 = require("@augment-vir/common");
5
5
  const fs_1 = require("fs");
6
6
  const promises_1 = require("fs/promises");
7
7
  const path_1 = require("path");
@@ -27,7 +27,7 @@ async function readAllDirContents({ dir, recursive = false, }) {
27
27
  }
28
28
  exports.readAllDirContents = readAllDirContents;
29
29
  async function writeFiles(dir, allFileContents) {
30
- await (0, augment_vir_1.awaitedForEach)(Object.keys(allFileContents), async (fileOrDirName) => {
30
+ await (0, common_1.awaitedForEach)(Object.keys(allFileContents), async (fileOrDirName) => {
31
31
  const value = allFileContents[fileOrDirName];
32
32
  const currentPath = (0, path_1.join)(dir, fileOrDirName);
33
33
  if (typeof value === 'string') {
@@ -1 +1,2 @@
1
1
  export declare function doChangesExist(repoDirPath: string): Promise<boolean>;
2
+ //# sourceMappingURL=git.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/augments/git.ts"],"names":[],"mappings":"AAEA,wBAAsB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ1E"}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.doChangesExist = void 0;
4
- const node_only_1 = require("augment-vir/dist/cjs/node-only");
4
+ const node_js_1 = require("@augment-vir/node-js");
5
5
  async function doChangesExist(repoDirPath) {
6
6
  const getChangesCommand = `git status --porcelain=v1 2>/dev/null`;
7
- const getChangesOutput = await (0, node_only_1.runShellCommand)(getChangesCommand, {
7
+ const getChangesOutput = await (0, node_js_1.runShellCommand)(getChangesCommand, {
8
8
  cwd: repoDirPath,
9
9
  rejectOnError: true,
10
10
  });
@@ -1 +1,2 @@
1
1
  export declare function jsonParseOrUndefined(input: string): any | undefined;
2
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/augments/json.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAMnE"}
@@ -1,5 +1,5 @@
1
- import { RequiredAndNotNullBy } from 'augment-vir';
2
- import { PackageJson } from 'type-fest';
1
+ import { RequiredAndNotNullBy } from '@augment-vir/common';
2
+ import type { PackageJson } from 'type-fest';
3
3
  export type CleanPackageJson = Readonly<RequiredAndNotNullBy<PackageJson.PackageJsonStandard, 'name' | 'version'> & {
4
4
  workspaces?: ReadonlyArray<string>;
5
5
  }>;
@@ -9,3 +9,4 @@ export declare function readTopLevelPackageJson(startDir: string): Promise<Reado
9
9
  packageJson: CleanPackageJson;
10
10
  path: string;
11
11
  }>>;
12
+ //# sourceMappingURL=npm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm.d.ts","sourceRoot":"","sources":["../../src/augments/npm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAI9E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAG3C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACnC,oBAAoB,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IACxE,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACtC,CACJ,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAehF;AACD,wBAAsB,eAAe,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAkBxF;AAED,wBAAsB,uBAAuB,CACzC,QAAQ,EAAE,MAAM,GACjB,OAAO,CAAC,QAAQ,CAAC;IAAC,WAAW,EAAE,gBAAgB,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAAC,CAAC,CAalE"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.readTopLevelPackageJson = exports.readPackageJson = exports.findTopLevelPackageJsonFile = void 0;
4
- const augment_vir_1 = require("augment-vir");
4
+ const common_1 = require("@augment-vir/common");
5
5
  const fs_1 = require("fs");
6
6
  const promises_1 = require("fs/promises");
7
7
  const path_1 = require("path");
@@ -29,7 +29,7 @@ async function readPackageJson(packageJsonPath) {
29
29
  parsed = JSON.parse((await (0, promises_1.readFile)(packageJsonPath)).toString());
30
30
  }
31
31
  catch (error) {
32
- throw new Error(`Failed to read package json file "${packageJsonPath}": ${(0, augment_vir_1.extractErrorMessage)(error)}`);
32
+ throw new Error(`Failed to read package json file "${packageJsonPath}": ${(0, common_1.extractErrorMessage)(error)}`);
33
33
  }
34
34
  if (!parsed.name) {
35
35
  throw new Error(`Missing package name from "${packageJsonPath}"`);
@@ -1,4 +1,5 @@
1
- import { Overwrite } from 'augment-vir';
1
+ import { Overwrite } from '@augment-vir/common';
2
2
  export declare function filterObject<T extends object>(fullObject: Readonly<T>, callback: (value: T[keyof T], key: keyof T, fullObject: Readonly<T>) => boolean): Partial<T>;
3
3
  export declare function deeplyCombineObjects<OriginalObjectGeneric extends object, OverwriteObjectGeneric extends object>(originalObject: OriginalObjectGeneric, overwriteObject: OverwriteObjectGeneric): Overwrite<OriginalObjectGeneric, OverwriteObjectGeneric>;
4
4
  export declare function filterToDifferentValues<T extends object>(baseObject: T, changedObject: T): Partial<T>;
5
+ //# sourceMappingURL=object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/augments/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAmB,MAAM,qBAAqB,CAAC;AAE9F,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EACzC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,OAAO,GAChF,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED,wBAAgB,oBAAoB,CAChC,qBAAqB,SAAS,MAAM,EACpC,sBAAsB,SAAS,MAAM,EAErC,cAAc,EAAE,qBAAqB,EACrC,eAAe,EAAE,sBAAsB,GACxC,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,CAAC,CAY1D;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACpD,UAAU,EAAE,CAAC,EACb,aAAa,EAAE,CAAC,GACjB,OAAO,CAAC,CAAC,CAAC,CAgBZ"}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.filterToDifferentValues = exports.deeplyCombineObjects = exports.filterObject = void 0;
4
- const augment_vir_1 = require("augment-vir");
4
+ const common_1 = require("@augment-vir/common");
5
5
  function filterObject(fullObject, callback) {
6
- return (0, augment_vir_1.getObjectTypedKeys)(fullObject).reduce((accum, key) => {
6
+ return (0, common_1.getObjectTypedKeys)(fullObject).reduce((accum, key) => {
7
7
  const value = fullObject[key];
8
8
  if (callback(value, key, fullObject)) {
9
9
  accum[key] = value;
@@ -13,10 +13,10 @@ function filterObject(fullObject, callback) {
13
13
  }
14
14
  exports.filterObject = filterObject;
15
15
  function deeplyCombineObjects(originalObject, overwriteObject) {
16
- return (0, augment_vir_1.getObjectTypedKeys)(overwriteObject).reduce((accum, currentKey) => {
16
+ return (0, common_1.getObjectTypedKeys)(overwriteObject).reduce((accum, currentKey) => {
17
17
  const currentNewValue = overwriteObject[currentKey];
18
- const currentOldValue = (0, augment_vir_1.typedHasProperty)(originalObject, currentKey) && originalObject[currentKey];
19
- if ((0, augment_vir_1.isObject)(currentOldValue) && (0, augment_vir_1.isObject)(currentNewValue)) {
18
+ const currentOldValue = (0, common_1.typedHasProperty)(originalObject, currentKey) && originalObject[currentKey];
19
+ if ((0, common_1.isObject)(currentOldValue) && (0, common_1.isObject)(currentNewValue)) {
20
20
  accum[currentKey] = deeplyCombineObjects(currentOldValue, currentNewValue);
21
21
  }
22
22
  else {
@@ -27,10 +27,10 @@ function deeplyCombineObjects(originalObject, overwriteObject) {
27
27
  }
28
28
  exports.deeplyCombineObjects = deeplyCombineObjects;
29
29
  function filterToDifferentValues(baseObject, changedObject) {
30
- return (0, augment_vir_1.getObjectTypedKeys)(baseObject).reduce((accum, key) => {
30
+ return (0, common_1.getObjectTypedKeys)(baseObject).reduce((accum, key) => {
31
31
  const beforeValue = baseObject[key];
32
32
  const afterValue = changedObject[key];
33
- if ((0, augment_vir_1.isObject)(beforeValue) && (0, augment_vir_1.isObject)(afterValue)) {
33
+ if ((0, common_1.isObject)(beforeValue) && (0, common_1.isObject)(afterValue)) {
34
34
  const innerDiff = filterToDifferentValues(beforeValue, afterValue);
35
35
  if (Object.keys(innerDiff).length) {
36
36
  accum[key] = filterToDifferentValues(beforeValue, afterValue);
@@ -1 +1,2 @@
1
1
  export declare function getFirstPartOfPath(inputPath: string): string;
2
+ //# sourceMappingURL=path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/augments/path.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAQ5D"}
@@ -1 +1,2 @@
1
1
  export declare function formatCode(text: string, filePath: string): Promise<string>;
2
+ //# sourceMappingURL=prettier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/augments/prettier.ts"],"names":[],"mappings":"AAIA,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAchF"}
@@ -31,7 +31,7 @@ async function formatCode(text, filePath) {
31
31
  try {
32
32
  // if prettier isn't installed yet this will fail
33
33
  const { format: prettierFormat } = await Promise.resolve().then(() => __importStar(require('prettier')));
34
- const repoPrettierRc = await (_a = findNearestConfig(process.cwd()), Promise.resolve().then(() => __importStar(require(_a))));
34
+ const repoPrettierRc = (await (_a = findNearestConfig(process.cwd()), Promise.resolve().then(() => __importStar(require(_a))))).default;
35
35
  const repoConfig = repoPrettierRc;
36
36
  return prettierFormat(text, {
37
37
  ...repoConfig,
@@ -1 +1,2 @@
1
1
  export declare function sanitizeStringForRegExpCreation(inputString: string): string;
2
+ //# sourceMappingURL=regexp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../src/augments/regexp.ts"],"names":[],"mappings":"AAAA,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE3E"}
@@ -1,2 +1,3 @@
1
1
  export type NonEmptyString<ExactStringGeneric extends string> = ExactStringGeneric extends '' ? never : ExactStringGeneric;
2
2
  export declare function ensureNonEmptyString<StringGeneric extends string>(inputString: NonEmptyString<StringGeneric>): StringGeneric;
3
+ //# sourceMappingURL=string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/augments/string.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,CAAC,kBAAkB,SAAS,MAAM,IAAI,kBAAkB,SAAS,EAAE,GACvF,KAAK,GACL,kBAAkB,CAAC;AAEzB,wBAAgB,oBAAoB,CAAC,aAAa,SAAS,MAAM,EAC7D,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,GAC3C,aAAa,CAKf"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/augments/test.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAC;AAEnC,wBAAgB,gBAAgB,CAAC,CAAC,EAC9B,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC,EAChC,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,KAAK,IAAI,CAAC,CAEpB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAEtF"}
@@ -1 +1,2 @@
1
1
  export type Constructor<T> = new (...args: any[]) => T;
2
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/augments/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC"}
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
@@ -6,3 +6,4 @@ export declare const codeInMarkdownCommandDefinition: import("../api/command/def
6
6
  configFiles: {};
7
7
  npmDeps: readonly ["markdown-code-example-inserter"];
8
8
  }>;
9
+ //# sourceMappingURL=code-in-markdown.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-in-markdown.command.d.ts","sourceRoot":"","sources":["../../src/commands/code-in-markdown.command.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,+BAA+B;;;;;;;EAqE3C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-in-markdown.command.test.d.ts","sourceRoot":"","sources":["../../src/commands/code-in-markdown.command.test.ts"],"names":[],"mappings":""}
@@ -11,3 +11,4 @@ export declare const compileCommandDefinition: import("../api/command/define-com
11
11
  };
12
12
  npmDeps: readonly ["typescript"];
13
13
  }>;
14
+ //# sourceMappingURL=compile.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compile.command.d.ts","sourceRoot":"","sources":["../../src/commands/compile.command.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAoDpC,CAAC"}
@@ -42,7 +42,7 @@ exports.compileCommandDefinition = (0, define_command_1.defineCommand)({
42
42
  const noEmit = shouldNotEmit ? '--noEmit' : '';
43
43
  const mainCommand = await (0, package_paths_1.getNpmBinPath)(inputs.repoDir, 'tsc');
44
44
  return {
45
- mainCommand,
45
+ mainCommand: `rm -rf dist && rm -f ./*.tsbuildinfo && ${mainCommand}`,
46
46
  args: [
47
47
  '--pretty',
48
48
  noEmit,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compile.command.test.d.ts","sourceRoot":"","sources":["../../src/commands/compile.command.test.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  import { ConfigFileDefinition } from '../../api/config/config-file-definition';
2
2
  export declare const nonCommandConfigs: ReadonlyArray<ConfigFileDefinition>;
3
+ //# sourceMappingURL=all-extra-configs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all-extra-configs.d.ts","sourceRoot":"","sources":["../../../src/commands/extra-configs/all-extra-configs.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAM7E,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,oBAAoB,CA4DjE,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { UpdateConfigCallback } from '../../api/config/config-file-definition';
2
2
  export declare function combineJsonConfig(...[newConfigContents, existingConfigContents,]: Parameters<UpdateConfigCallback>): Promise<string>;
3
+ //# sourceMappingURL=combine-json-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combine-json-config.d.ts","sourceRoot":"","sources":["../../../src/commands/extra-configs/combine-json-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAI7E,wBAAsB,iBAAiB,CACnC,GAAG,CACC,iBAAiB,EACjB,sBAAsB,EACzB,EAAE,UAAU,CAAC,oBAAoB,CAAC,GACpC,OAAO,CAAC,MAAM,CAAC,CAUjB"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.combineJsonConfig = void 0;
4
- const augment_vir_1 = require("augment-vir");
4
+ const common_1 = require("@augment-vir/common");
5
5
  const object_1 = require("../../augments/object");
6
6
  const prettier_1 = require("../../augments/prettier");
7
7
  async function combineJsonConfig(...[newConfigContents, existingConfigContents,]) {
@@ -11,7 +11,7 @@ async function combineJsonConfig(...[newConfigContents, existingConfigContents,]
11
11
  }
12
12
  catch (error) { }
13
13
  const newJson = JSON.parse(newConfigContents);
14
- if (!oldJson || !(0, augment_vir_1.isObject)(oldJson)) {
14
+ if (!oldJson || !(0, common_1.isObject)(oldJson)) {
15
15
  return stringify(newJson);
16
16
  }
17
17
  return stringify((0, object_1.deeplyCombineObjects)(oldJson, newJson));
@@ -1,2 +1,3 @@
1
1
  import { UpdateConfigCallback } from '../../api/config/config-file-definition';
2
2
  export declare function combineTextConfig(...[newConfigContents, existingConfigContents,]: Parameters<UpdateConfigCallback>): ReturnType<UpdateConfigCallback>;
3
+ //# sourceMappingURL=combine-text-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combine-text-config.d.ts","sourceRoot":"","sources":["../../../src/commands/extra-configs/combine-text-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAU7E,wBAAgB,iBAAiB,CAC7B,GAAG,CACC,iBAAiB,EACjB,sBAAsB,EACzB,EAAE,UAAU,CAAC,oBAAoB,CAAC,GACpC,UAAU,CAAC,oBAAoB,CAAC,CAiBlC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.combineTextConfig = void 0;
4
- const augment_vir_1 = require("augment-vir");
4
+ const common_1 = require("@augment-vir/common");
5
5
  function splitContentsIntoArrayOfLines(input) {
6
6
  return input
7
7
  .split('\n')
8
8
  .map((line) => line.trim())
9
- .filter(augment_vir_1.isTruthy)
9
+ .filter(common_1.isTruthy)
10
10
  .sort();
11
11
  }
12
12
  function combineTextConfig(...[newConfigContents, existingConfigContents,]) {
@@ -1 +1,2 @@
1
1
  export declare function createDefaultPackageJson(copyFromContents: string, existingConfigContents: string, repoDir: string): Promise<string>;
2
+ //# sourceMappingURL=create-default-package-json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-default-package-json.d.ts","sourceRoot":"","sources":["../../../src/commands/extra-configs/create-default-package-json.ts"],"names":[],"mappings":"AAMA,wBAAsB,wBAAwB,CAC1C,gBAAgB,EAAE,MAAM,EACxB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CA0BjB"}
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createDefaultPackageJson = void 0;
7
- const augment_vir_1 = require("augment-vir");
7
+ const common_1 = require("@augment-vir/common");
8
8
  const path_1 = require("path");
9
9
  const simple_git_1 = __importDefault(require("simple-git"));
10
10
  const json_1 = require("../../augments/json");
@@ -12,11 +12,11 @@ const prettier_1 = require("../../augments/prettier");
12
12
  async function createDefaultPackageJson(copyFromContents, existingConfigContents, repoDir) {
13
13
  var _a;
14
14
  const baseVirmatorPackageJson = JSON.parse(copyFromContents);
15
- if (!(0, augment_vir_1.isObject)(baseVirmatorPackageJson)) {
15
+ if (!(0, common_1.isObject)(baseVirmatorPackageJson)) {
16
16
  throw new Error(`Failed to parse virmator's config version of package json file.`);
17
17
  }
18
18
  const currentRepoPackageJson = (_a = (0, json_1.jsonParseOrUndefined)(existingConfigContents)) !== null && _a !== void 0 ? _a : {};
19
- if (!(0, augment_vir_1.isObject)(currentRepoPackageJson)) {
19
+ if (!(0, common_1.isObject)(currentRepoPackageJson)) {
20
20
  throw new Error(`Failed to parse current repo's package json file.`);
21
21
  }
22
22
  const combinedScripts = combineScripts(baseVirmatorPackageJson, currentRepoPackageJson);
@@ -35,7 +35,7 @@ function combineScripts(virmatorPackageJson, currentRepoPackageJson) {
35
35
  const scripts = {
36
36
  ...currentRepoPackageJson.scripts,
37
37
  };
38
- (0, augment_vir_1.getObjectTypedKeys)(virmatorPackageJson.scripts).forEach((key) => {
38
+ (0, common_1.getObjectTypedKeys)(virmatorPackageJson.scripts).forEach((key) => {
39
39
  const virmatorValue = virmatorPackageJson.scripts[key];
40
40
  const currentRepoValue = scripts[key];
41
41
  if (virmatorValue &&
@@ -15,3 +15,4 @@ export declare const formatCommandDefinition: import("../api/command/define-comm
15
15
  };
16
16
  npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml"];
17
17
  }>;
18
+ //# sourceMappingURL=format.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.command.d.ts","sourceRoot":"","sources":["../../src/commands/format.command.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;EA0GnC,CAAC"}
@@ -79,13 +79,13 @@ exports.formatCommandDefinition = (0, define_command_1.defineCommand)({
79
79
  {
80
80
  title: 'fixes formatting for files',
81
81
  content: `${packageBinName} ${commandName}
82
- ${packageBinName} ${commandName}`,
82
+ ${packageBinName} ${commandName}`,
83
83
  },
84
84
  {
85
85
  title: `examples with extra Prettier flags`,
86
86
  content: `${packageBinName} ${commandName} --ignore-path .prettierignore
87
- ${packageBinName} ${commandName} --ignore-path .prettierignore
88
- ${packageBinName} ${commandName} --ignore-path .prettierignore ${filesMarkerArg} md json`,
87
+ ${packageBinName} ${commandName} --ignore-path .prettierignore
88
+ ${packageBinName} ${commandName} --ignore-path .prettierignore ${filesMarkerArg} md json`,
89
89
  },
90
90
  ],
91
91
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.command.test.d.ts","sourceRoot":"","sources":["../../src/commands/format.command.test.ts"],"names":[],"mappings":""}
@@ -10,5 +10,6 @@ export declare const frontendCommandDefinition: import("../api/command/define-co
10
10
  readonly copyToPathRelativeToRepoDir: string;
11
11
  };
12
12
  };
13
- npmDeps: readonly ["vite", "ansi-colors"];
13
+ npmDeps: readonly ["vite", "@augment-vir/node-js"];
14
14
  }>;
15
+ //# sourceMappingURL=frontend.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend.command.d.ts","sourceRoot":"","sources":["../../src/commands/frontend.command.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;EA0ErC,CAAC"}
@@ -19,7 +19,7 @@ exports.frontendCommandDefinition = (0, define_command_1.defineCommand)({
19
19
  },
20
20
  npmDeps: [
21
21
  'vite',
22
- 'ansi-colors',
22
+ '@augment-vir/node-js',
23
23
  ],
24
24
  }, () => {
25
25
  return {
@@ -6,3 +6,4 @@ export declare const initCommandDefinition: import("../api/command/define-comman
6
6
  configFiles: {};
7
7
  npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml"];
8
8
  }>;
9
+ //# sourceMappingURL=init.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.command.d.ts","sourceRoot":"","sources":["../../src/commands/init.command.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;;;;;;EAmDjC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.command.test.d.ts","sourceRoot":"","sources":["../../src/commands/init.command.test.ts"],"names":[],"mappings":""}
@@ -4,3 +4,4 @@ export declare const publishCommandDefinition: import("../api/command/define-com
4
4
  configFiles: {};
5
5
  npmDeps: readonly [];
6
6
  }>;
7
+ //# sourceMappingURL=publish.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.command.d.ts","sourceRoot":"","sources":["../../src/commands/publish.command.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,wBAAwB;;;;;EAmDpC,CAAC"}