@shell-shock/preset-cli 0.9.13 → 0.9.15

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 (56) hide show
  1. package/dist/components/command-entry.cjs +2 -5
  2. package/dist/components/command-entry.mjs +2 -5
  3. package/dist/components/command-entry.mjs.map +1 -1
  4. package/dist/components/virtual-command-entry.cjs +2 -5
  5. package/dist/components/virtual-command-entry.mjs +2 -5
  6. package/dist/components/virtual-command-entry.mjs.map +1 -1
  7. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.cjs +8 -0
  8. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs +8 -0
  9. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs.map +1 -0
  10. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.cjs +14 -0
  11. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs +15 -0
  12. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs.map +1 -0
  13. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.cjs +655 -0
  14. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs +651 -0
  15. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs.map +1 -0
  16. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.cjs +48 -0
  17. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs +47 -0
  18. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs.map +1 -0
  19. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.cjs +24 -0
  20. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs +24 -0
  21. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs.map +1 -0
  22. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.cjs +65 -0
  23. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs +66 -0
  24. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs.map +1 -0
  25. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.cjs +12 -0
  26. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs +13 -0
  27. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs.map +1 -0
  28. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +290 -3
  29. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +287 -1
  30. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -1
  31. package/dist/packages/plugin-changelog/dist/components/changelog-command.cjs +5 -5
  32. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +5 -5
  33. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
  34. package/dist/packages/plugin-changelog/dist/helpers/resolve-changelog.cjs +51 -0
  35. package/dist/packages/plugin-changelog/dist/helpers/resolve-changelog.mjs +51 -0
  36. package/dist/packages/plugin-changelog/dist/helpers/resolve-changelog.mjs.map +1 -0
  37. package/dist/packages/plugin-changelog/dist/index.cjs +32 -20
  38. package/dist/packages/plugin-changelog/dist/index.mjs +32 -20
  39. package/dist/packages/plugin-changelog/dist/index.mjs.map +1 -1
  40. package/dist/packages/plugin-changelog/dist/types/plugin.d.cts +48 -0
  41. package/dist/packages/plugin-changelog/dist/types/plugin.d.cts.map +1 -1
  42. package/dist/packages/plugin-changelog/dist/types/plugin.d.mts +48 -0
  43. package/dist/packages/plugin-changelog/dist/types/plugin.d.mts.map +1 -1
  44. package/dist/packages/unified/dist/html-Dw6VvFHa.cjs +612 -0
  45. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs +613 -0
  46. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs.map +1 -0
  47. package/dist/packages/unified/dist/markdown/index.cjs +1 -1
  48. package/dist/packages/unified/dist/markdown/index.mjs +1 -1
  49. package/dist/packages/unified/dist/{markdown-BiaU4FQg.cjs → markdown-BGGlzivq.cjs} +14 -50
  50. package/dist/packages/unified/dist/{markdown-BiaU4FQg.mjs → markdown-BGGlzivq.mjs} +16 -52
  51. package/dist/packages/unified/dist/markdown-BGGlzivq.mjs.map +1 -0
  52. package/package.json +20 -16
  53. package/dist/packages/unified/dist/html-DzncQodH.cjs +0 -156
  54. package/dist/packages/unified/dist/html-DzncQodH.mjs +0 -157
  55. package/dist/packages/unified/dist/html-DzncQodH.mjs.map +0 -1
  56. package/dist/packages/unified/dist/markdown-BiaU4FQg.mjs.map +0 -1
@@ -1,14 +1,15 @@
1
1
  const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
2
2
  const require_changelog_command = require('./components/changelog-command.cjs');
3
3
  require('./components/index.cjs');
4
+ const require_resolve_changelog = require('./helpers/resolve-changelog.cjs');
4
5
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
6
  let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
6
7
  let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
7
8
  let _stryke_path_join = require("@stryke/path/join");
9
+ let powerlines_plugin_utils = require("powerlines/plugin-utils");
8
10
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
9
11
  let defu = require("defu");
10
12
  defu = require_runtime.__toESM(defu);
11
- let powerlines_plugin_utils = require("powerlines/plugin-utils");
12
13
 
13
14
  //#region ../plugin-changelog/dist/index.mjs
14
15
  /**
@@ -19,30 +20,41 @@ const plugin = (options = {}) => {
19
20
  name: "shell-shock:changelog",
20
21
  config() {
21
22
  this.debug("Providing default configuration for the Shell Shock `changelog` plugin.");
22
- return { changelog: (0, defu.default)({ command: { name: (0, _stryke_type_checks_is_set_string.isSetString)(options.command) ? options.command : "changelog" } }, options, { file: (0, _stryke_path_join.joinPaths)("{root}", "CHANGELOG.md") }) };
23
+ return { changelog: (0, defu.default)({
24
+ file: require_resolve_changelog.resolveChangelog(this, options),
25
+ command: { name: (0, _stryke_type_checks_is_set_string.isSetString)(options.command) ? options.command : "changelog" }
26
+ }, options) };
23
27
  },
24
28
  configResolved() {
25
29
  this.debug("Adding the CLI changelog commands to the application context.");
26
- this.config.changelog.file = (0, powerlines_plugin_utils.replacePathTokens)(this, this.config.changelog.file);
27
- this.inputs ??= [];
28
- if (this.inputs.some((input) => input.id === this.config.changelog.command.name)) this.info("The `changelog` command already exists in the commands list. If you would like the changelog command to be managed by the `@shell-shock/plugin-changelog` package, please remove or rename the command.");
29
- else this.inputs.push({
30
- id: this.config.changelog.command.name,
31
- path: this.config.changelog.command.name,
32
- segments: [this.config.changelog.command.name],
33
- title: "Changelog",
34
- icon: "🗃",
35
- tags: ["Utility"],
36
- description: `Display the ${(0, _shell_shock_core_plugin_utils.getAppTitle)(this)} changelog.`,
37
- entry: {
38
- file: (0, _stryke_path_join.joinPaths)(this.entryPath, "changelog", "index.ts"),
39
- input: { file: (0, _stryke_path_join.joinPaths)(this.entryPath, "changelog", "command.ts") }
40
- },
41
- isVirtual: false,
42
- ...this.config.changelog.command
43
- });
30
+ if ((0, _stryke_type_checks_is_set_string.isSetString)(this.config.changelog.file)) {
31
+ this.config.changelog.file = (0, powerlines_plugin_utils.replacePathTokens)(this, this.config.changelog.file);
32
+ if (!this.fs.existsSync(this.config.changelog.file)) {
33
+ this.warn(`The changelog file could not be found at the resolved path: ${this.config.changelog.file}. The \`${this.config.changelog.command.name}\` command will not be added to the application. Please ensure that the changelog file exists at the specified path or adjust the \`changelog.file\` option to point to the correct location.`);
34
+ return;
35
+ }
36
+ this.inputs ??= [];
37
+ if (this.inputs.some((input) => input.id === this.config.changelog.command.name)) this.info("The `changelog` command already exists in the commands list. If you would like the changelog command to be managed by the `@shell-shock/plugin-changelog` package, please remove or rename the command.");
38
+ else this.inputs.push({
39
+ id: this.config.changelog.command.name,
40
+ path: this.config.changelog.command.name,
41
+ segments: [this.config.changelog.command.name],
42
+ title: "Changelog",
43
+ icon: "🗃",
44
+ tags: ["Utility"],
45
+ description: `Display the ${(0, _shell_shock_core_plugin_utils.getAppTitle)(this)} changelog.`,
46
+ entry: {
47
+ file: (0, _stryke_path_join.joinPaths)(this.entryPath, "changelog", "index.ts"),
48
+ input: { file: (0, _stryke_path_join.joinPaths)(this.entryPath, "changelog", "command.ts") }
49
+ },
50
+ isVirtual: false,
51
+ source: "changelog-plugin",
52
+ ...this.config.changelog.command
53
+ });
54
+ }
44
55
  },
45
56
  async prepare() {
57
+ if ((0, _stryke_type_checks_is_set_string.isSetString)(this.config.changelog.file) && !this.fs.existsSync(this.config.changelog.file)) return;
46
58
  this.debug("Rendering changelog command module for the Shell Shock `changelog` plugin.");
47
59
  return (0, _powerlines_plugin_alloy_render.render)(this, (0, _alloy_js_core_jsx_runtime.createComponent)(require_changelog_command.ChangelogCommand, {}));
48
60
  }
@@ -1,12 +1,13 @@
1
1
  import { ChangelogCommand } from "./components/changelog-command.mjs";
2
2
  import "./components/index.mjs";
3
+ import { resolveChangelog } from "./helpers/resolve-changelog.mjs";
3
4
  import { createComponent } from "@alloy-js/core/jsx-runtime";
4
5
  import { render } from "@powerlines/plugin-alloy/render";
5
6
  import { getAppTitle } from "@shell-shock/core/plugin-utils";
6
7
  import { joinPaths } from "@stryke/path/join";
8
+ import { replacePathTokens } from "powerlines/plugin-utils";
7
9
  import { isSetString } from "@stryke/type-checks/is-set-string";
8
10
  import defu from "defu";
9
- import { replacePathTokens } from "powerlines/plugin-utils";
10
11
 
11
12
  //#region ../plugin-changelog/dist/index.mjs
12
13
  /**
@@ -17,30 +18,41 @@ const plugin = (options = {}) => {
17
18
  name: "shell-shock:changelog",
18
19
  config() {
19
20
  this.debug("Providing default configuration for the Shell Shock `changelog` plugin.");
20
- return { changelog: defu({ command: { name: isSetString(options.command) ? options.command : "changelog" } }, options, { file: joinPaths("{root}", "CHANGELOG.md") }) };
21
+ return { changelog: defu({
22
+ file: resolveChangelog(this, options),
23
+ command: { name: isSetString(options.command) ? options.command : "changelog" }
24
+ }, options) };
21
25
  },
22
26
  configResolved() {
23
27
  this.debug("Adding the CLI changelog commands to the application context.");
24
- this.config.changelog.file = replacePathTokens(this, this.config.changelog.file);
25
- this.inputs ??= [];
26
- if (this.inputs.some((input) => input.id === this.config.changelog.command.name)) this.info("The `changelog` command already exists in the commands list. If you would like the changelog command to be managed by the `@shell-shock/plugin-changelog` package, please remove or rename the command.");
27
- else this.inputs.push({
28
- id: this.config.changelog.command.name,
29
- path: this.config.changelog.command.name,
30
- segments: [this.config.changelog.command.name],
31
- title: "Changelog",
32
- icon: "🗃",
33
- tags: ["Utility"],
34
- description: `Display the ${getAppTitle(this)} changelog.`,
35
- entry: {
36
- file: joinPaths(this.entryPath, "changelog", "index.ts"),
37
- input: { file: joinPaths(this.entryPath, "changelog", "command.ts") }
38
- },
39
- isVirtual: false,
40
- ...this.config.changelog.command
41
- });
28
+ if (isSetString(this.config.changelog.file)) {
29
+ this.config.changelog.file = replacePathTokens(this, this.config.changelog.file);
30
+ if (!this.fs.existsSync(this.config.changelog.file)) {
31
+ this.warn(`The changelog file could not be found at the resolved path: ${this.config.changelog.file}. The \`${this.config.changelog.command.name}\` command will not be added to the application. Please ensure that the changelog file exists at the specified path or adjust the \`changelog.file\` option to point to the correct location.`);
32
+ return;
33
+ }
34
+ this.inputs ??= [];
35
+ if (this.inputs.some((input) => input.id === this.config.changelog.command.name)) this.info("The `changelog` command already exists in the commands list. If you would like the changelog command to be managed by the `@shell-shock/plugin-changelog` package, please remove or rename the command.");
36
+ else this.inputs.push({
37
+ id: this.config.changelog.command.name,
38
+ path: this.config.changelog.command.name,
39
+ segments: [this.config.changelog.command.name],
40
+ title: "Changelog",
41
+ icon: "🗃",
42
+ tags: ["Utility"],
43
+ description: `Display the ${getAppTitle(this)} changelog.`,
44
+ entry: {
45
+ file: joinPaths(this.entryPath, "changelog", "index.ts"),
46
+ input: { file: joinPaths(this.entryPath, "changelog", "command.ts") }
47
+ },
48
+ isVirtual: false,
49
+ source: "changelog-plugin",
50
+ ...this.config.changelog.command
51
+ });
52
+ }
42
53
  },
43
54
  async prepare() {
55
+ if (isSetString(this.config.changelog.file) && !this.fs.existsSync(this.config.changelog.file)) return;
44
56
  this.debug("Rendering changelog command module for the Shell Shock `changelog` plugin.");
45
57
  return render(this, createComponent(ChangelogCommand, {}));
46
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../plugin-changelog/dist/index.mjs"],"sourcesContent":["import { ChangelogCommand } from \"./components/changelog-command.mjs\";\nimport \"./components/index.mjs\";\nimport { createComponent } from \"@alloy-js/core/jsx-runtime\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport defu from \"defu\";\nimport { replacePathTokens } from \"powerlines/plugin-utils\";\n\n//#region src/index.tsx\n/**\n* The Changelog - Shell Shock plugin to add version check functionality and changelog commands to a Shell Shock application.\n*/\nconst plugin = (options = {}) => {\n\treturn {\n\t\tname: \"shell-shock:changelog\",\n\t\tconfig() {\n\t\t\tthis.debug(\"Providing default configuration for the Shell Shock `changelog` plugin.\");\n\t\t\treturn { changelog: defu({ command: { name: isSetString(options.command) ? options.command : \"changelog\" } }, options, { file: joinPaths(\"{root}\", \"CHANGELOG.md\") }) };\n\t\t},\n\t\tconfigResolved() {\n\t\t\tthis.debug(\"Adding the CLI changelog commands to the application context.\");\n\t\t\tthis.config.changelog.file = replacePathTokens(this, this.config.changelog.file);\n\t\t\tthis.inputs ??= [];\n\t\t\tif (this.inputs.some((input) => input.id === this.config.changelog.command.name)) this.info(\"The `changelog` command already exists in the commands list. If you would like the changelog command to be managed by the `@shell-shock/plugin-changelog` package, please remove or rename the command.\");\n\t\t\telse this.inputs.push({\n\t\t\t\tid: this.config.changelog.command.name,\n\t\t\t\tpath: this.config.changelog.command.name,\n\t\t\t\tsegments: [this.config.changelog.command.name],\n\t\t\t\ttitle: \"Changelog\",\n\t\t\t\ticon: \"🗃\",\n\t\t\t\ttags: [\"Utility\"],\n\t\t\t\tdescription: `Display the ${getAppTitle(this)} changelog.`,\n\t\t\t\tentry: {\n\t\t\t\t\tfile: joinPaths(this.entryPath, \"changelog\", \"index.ts\"),\n\t\t\t\t\tinput: { file: joinPaths(this.entryPath, \"changelog\", \"command.ts\") }\n\t\t\t\t},\n\t\t\t\tisVirtual: false,\n\t\t\t\t...this.config.changelog.command\n\t\t\t});\n\t\t},\n\t\tasync prepare() {\n\t\t\tthis.debug(\"Rendering changelog command module for the Shell Shock `changelog` plugin.\");\n\t\t\treturn render(this, createComponent(ChangelogCommand, {}));\n\t\t}\n\t};\n};\n\n//#endregion\nexport { plugin as default, plugin };\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,UAAU,UAAU,EAAE,KAAK;AAChC,QAAO;EACN,MAAM;EACN,SAAS;AACR,QAAK,MAAM,0EAA0E;AACrF,UAAO,EAAE,WAAW,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,QAAQ,QAAQ,GAAG,QAAQ,UAAU,aAAa,EAAE,EAAE,SAAS,EAAE,MAAM,UAAU,UAAU,eAAe,EAAE,CAAC,EAAE;;EAExK,iBAAiB;AAChB,QAAK,MAAM,gEAAgE;AAC3E,QAAK,OAAO,UAAU,OAAO,kBAAkB,MAAM,KAAK,OAAO,UAAU,KAAK;AAChF,QAAK,WAAW,EAAE;AAClB,OAAI,KAAK,OAAO,MAAM,UAAU,MAAM,OAAO,KAAK,OAAO,UAAU,QAAQ,KAAK,CAAE,MAAK,KAAK,0MAA0M;OACjS,MAAK,OAAO,KAAK;IACrB,IAAI,KAAK,OAAO,UAAU,QAAQ;IAClC,MAAM,KAAK,OAAO,UAAU,QAAQ;IACpC,UAAU,CAAC,KAAK,OAAO,UAAU,QAAQ,KAAK;IAC9C,OAAO;IACP,MAAM;IACN,MAAM,CAAC,UAAU;IACjB,aAAa,eAAe,YAAY,KAAK,CAAC;IAC9C,OAAO;KACN,MAAM,UAAU,KAAK,WAAW,aAAa,WAAW;KACxD,OAAO,EAAE,MAAM,UAAU,KAAK,WAAW,aAAa,aAAa,EAAE;KACrE;IACD,WAAW;IACX,GAAG,KAAK,OAAO,UAAU;IACzB,CAAC;;EAEH,MAAM,UAAU;AACf,QAAK,MAAM,6EAA6E;AACxF,UAAO,OAAO,MAAM,gBAAgB,kBAAkB,EAAE,CAAC,CAAC;;EAE3D"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../plugin-changelog/dist/index.mjs"],"sourcesContent":["import { ChangelogCommand } from \"./components/changelog-command.mjs\";\nimport \"./components/index.mjs\";\nimport { resolveChangelog } from \"./helpers/resolve-changelog.mjs\";\nimport { createComponent } from \"@alloy-js/core/jsx-runtime\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport defu from \"defu\";\nimport { replacePathTokens } from \"powerlines/plugin-utils\";\n\n//#region src/index.tsx\n/**\n* The Changelog - Shell Shock plugin to add version check functionality and changelog commands to a Shell Shock application.\n*/\nconst plugin = (options = {}) => {\n\treturn {\n\t\tname: \"shell-shock:changelog\",\n\t\tconfig() {\n\t\t\tthis.debug(\"Providing default configuration for the Shell Shock `changelog` plugin.\");\n\t\t\treturn { changelog: defu({\n\t\t\t\tfile: resolveChangelog(this, options),\n\t\t\t\tcommand: { name: isSetString(options.command) ? options.command : \"changelog\" }\n\t\t\t}, options) };\n\t\t},\n\t\tconfigResolved() {\n\t\t\tthis.debug(\"Adding the CLI changelog commands to the application context.\");\n\t\t\tif (isSetString(this.config.changelog.file)) {\n\t\t\t\tthis.config.changelog.file = replacePathTokens(this, this.config.changelog.file);\n\t\t\t\tif (!this.fs.existsSync(this.config.changelog.file)) {\n\t\t\t\t\tthis.warn(`The changelog file could not be found at the resolved path: ${this.config.changelog.file}. The \\`${this.config.changelog.command.name}\\` command will not be added to the application. Please ensure that the changelog file exists at the specified path or adjust the \\`changelog.file\\` option to point to the correct location.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.inputs ??= [];\n\t\t\t\tif (this.inputs.some((input) => input.id === this.config.changelog.command.name)) this.info(\"The `changelog` command already exists in the commands list. If you would like the changelog command to be managed by the `@shell-shock/plugin-changelog` package, please remove or rename the command.\");\n\t\t\t\telse this.inputs.push({\n\t\t\t\t\tid: this.config.changelog.command.name,\n\t\t\t\t\tpath: this.config.changelog.command.name,\n\t\t\t\t\tsegments: [this.config.changelog.command.name],\n\t\t\t\t\ttitle: \"Changelog\",\n\t\t\t\t\ticon: \"🗃\",\n\t\t\t\t\ttags: [\"Utility\"],\n\t\t\t\t\tdescription: `Display the ${getAppTitle(this)} changelog.`,\n\t\t\t\t\tentry: {\n\t\t\t\t\t\tfile: joinPaths(this.entryPath, \"changelog\", \"index.ts\"),\n\t\t\t\t\t\tinput: { file: joinPaths(this.entryPath, \"changelog\", \"command.ts\") }\n\t\t\t\t\t},\n\t\t\t\t\tisVirtual: false,\n\t\t\t\t\tsource: \"changelog-plugin\",\n\t\t\t\t\t...this.config.changelog.command\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tasync prepare() {\n\t\t\tif (isSetString(this.config.changelog.file) && !this.fs.existsSync(this.config.changelog.file)) return;\n\t\t\tthis.debug(\"Rendering changelog command module for the Shell Shock `changelog` plugin.\");\n\t\t\treturn render(this, createComponent(ChangelogCommand, {}));\n\t\t}\n\t};\n};\n\n//#endregion\nexport { plugin as default, plugin };\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAM,UAAU,UAAU,EAAE,KAAK;AAChC,QAAO;EACN,MAAM;EACN,SAAS;AACR,QAAK,MAAM,0EAA0E;AACrF,UAAO,EAAE,WAAW,KAAK;IACxB,MAAM,iBAAiB,MAAM,QAAQ;IACrC,SAAS,EAAE,MAAM,YAAY,QAAQ,QAAQ,GAAG,QAAQ,UAAU,aAAa;IAC/E,EAAE,QAAQ,EAAE;;EAEd,iBAAiB;AAChB,QAAK,MAAM,gEAAgE;AAC3E,OAAI,YAAY,KAAK,OAAO,UAAU,KAAK,EAAE;AAC5C,SAAK,OAAO,UAAU,OAAO,kBAAkB,MAAM,KAAK,OAAO,UAAU,KAAK;AAChF,QAAI,CAAC,KAAK,GAAG,WAAW,KAAK,OAAO,UAAU,KAAK,EAAE;AACpD,UAAK,KAAK,+DAA+D,KAAK,OAAO,UAAU,KAAK,UAAU,KAAK,OAAO,UAAU,QAAQ,KAAK,+LAA+L;AAChV;;AAED,SAAK,WAAW,EAAE;AAClB,QAAI,KAAK,OAAO,MAAM,UAAU,MAAM,OAAO,KAAK,OAAO,UAAU,QAAQ,KAAK,CAAE,MAAK,KAAK,0MAA0M;QACjS,MAAK,OAAO,KAAK;KACrB,IAAI,KAAK,OAAO,UAAU,QAAQ;KAClC,MAAM,KAAK,OAAO,UAAU,QAAQ;KACpC,UAAU,CAAC,KAAK,OAAO,UAAU,QAAQ,KAAK;KAC9C,OAAO;KACP,MAAM;KACN,MAAM,CAAC,UAAU;KACjB,aAAa,eAAe,YAAY,KAAK,CAAC;KAC9C,OAAO;MACN,MAAM,UAAU,KAAK,WAAW,aAAa,WAAW;MACxD,OAAO,EAAE,MAAM,UAAU,KAAK,WAAW,aAAa,aAAa,EAAE;MACrE;KACD,WAAW;KACX,QAAQ;KACR,GAAG,KAAK,OAAO,UAAU;KACzB,CAAC;;;EAGJ,MAAM,UAAU;AACf,OAAI,YAAY,KAAK,OAAO,UAAU,KAAK,IAAI,CAAC,KAAK,GAAG,WAAW,KAAK,OAAO,UAAU,KAAK,CAAE;AAChG,QAAK,MAAM,6EAA6E;AACxF,UAAO,OAAO,MAAM,gBAAgB,kBAAkB,EAAE,CAAC,CAAC;;EAE3D"}
@@ -7,6 +7,54 @@ interface ChangelogPluginOptions {
7
7
  /**
8
8
  * The path to the changelog file to read when executing the `changelog` command. This can be an absolute path or a path relative to the application's root directory.
9
9
  *
10
+ * @remarks
11
+ * If not provided, the plugin will attempt to resolve the changelog file by looking for common changelog file names (e.g., `CHANGELOG.md`, `RELEASE-NOTES.md`, etc.) in the application's root directory. If a specific file name is provided but cannot be found, it will fall back to looking for common changelog file names. If no valid changelog file can be resolved, the `changelog` command will not be added to the application. The following list of common changelog file names will be used for resolution:
12
+ * - `CHANGELOG.md`
13
+ * - `changelog.md`
14
+ * - `Changelog.md`
15
+ * - `CHANGELOG.markdown`
16
+ * - `changelog.markdown`
17
+ * - `Changelog.markdown`
18
+ * - `CHANGELOG.txt`
19
+ * - `changelog.txt`
20
+ * - `Changelog.txt`
21
+ * - `RELEASE-NOTES.md`
22
+ * - `release-notes.md`
23
+ * - `Release-Notes.md`
24
+ * - `RELEASE-NOTES.markdown`
25
+ * - `release-notes.markdown`
26
+ * - `Release-Notes.markdown`
27
+ * - `RELEASE-NOTES.txt`
28
+ * - `release-notes.txt`
29
+ * - `Release-Notes.txt`
30
+ * - `RELEASE_NOTES.md`
31
+ * - `release_notes.md`
32
+ * - `Release_Notes.md`
33
+ * - `RELEASE_NOTES.markdown`
34
+ * - `release_notes.markdown`
35
+ * - `Release_Notes.markdown`
36
+ * - `RELEASE_NOTES.txt`
37
+ * - `release_notes.txt`
38
+ * - `Release_Notes.txt`
39
+ * - `RELEASES.md`
40
+ * - `releases.md`
41
+ * - `Releases.md`
42
+ * - `RELEASES.markdown`
43
+ * - `releases.markdown`
44
+ * - `Releases.markdown`
45
+ * - `RELEASES.txt`
46
+ * - `releases.txt`
47
+ * - `Releases.txt`
48
+ * - `HISTORY.md`
49
+ * - `history.md`
50
+ * - `History.md`
51
+ * - `HISTORY.markdown`
52
+ * - `history.markdown`
53
+ * - `History.markdown`
54
+ * - `HISTORY.txt`
55
+ * - `history.txt`
56
+ * - `History.txt`
57
+ *
10
58
  * @defaultValue "\{root\}/CHANGELOG.md"
11
59
  */
12
60
  file?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":["CommandConfig","Context","ResolvedConfig","UserConfig","RequiredKeys","ChangelogPluginOptions","Partial","file","command","ChangelogPluginUserConfig","changelog","ChangelogPluginResolvedConfig","Omit","Required","ChangelogPluginContext","TResolvedConfig"],"sources":["../../../../../../plugin-changelog/dist/types/plugin.d.cts"],"mappings":";;;;;UAIUK,sBAAAA;EAAsB;;;;;EAM9BE,IAAAA;EASkBP;;;AAAa;;;;;EAA/BQ,OAAAA,GAAUF,OAAAA,CAAQN,aAAAA;AAAAA;AAAAA,KAEfS,yBAAAA,GAA4BN,UAAAA;EAIE;AAAA;;EAAjCO,SAAAA,EAAWL,sBAAAA;AAAAA;AAAAA,KAERM,6BAAAA,GAAgCT,cAAAA;EAIfU;;;EAApBF,SAAAA,EAAWG,QAAAA,CAASD,IAAAA,CAAKP,sBAAAA;IAIdD;;;IAATI,OAAAA,EAASJ,YAAAA,CAAaE,OAAAA,CAAQN,aAAAA;EAAAA;AAAAA;AAAAA,KAG7Bc,sBAAAA,yBAA+CH,6BAAAA,GAAgCA,6BAAAA,IAAiCV,OAAAA,CAAQc,eAAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":["CommandConfig","Context","ResolvedConfig","UserConfig","RequiredKeys","ChangelogPluginOptions","Partial","file","command","ChangelogPluginUserConfig","changelog","ChangelogPluginResolvedConfig","Omit","Required","ChangelogPluginContext","TResolvedConfig"],"sources":["../../../../../../plugin-changelog/dist/types/plugin.d.cts"],"mappings":";;;;;UAIUK,sBAAAA;EAAsB;;;;;;;;;AA+DC;;;;;;;;;AAME;;;;;;;;;;;;;;;;;;;;;;;AAUY;;;;;;;;;;;;EAzB7CE,IAAAA;EA4B2HQ;;;;;;;;EAnB3HP,OAAAA,GAAUF,OAAAA,CAAQN,aAAAA;AAAAA;AAAAA,KAEfS,yBAAAA,GAA4BN,UAAAA;;;;EAI/BO,SAAAA,EAAWL,sBAAAA;AAAAA;AAAAA,KAERM,6BAAAA,GAAgCT,cAAAA;;;;EAInCQ,SAAAA,EAAWG,QAAAA,CAASD,IAAAA,CAAKP,sBAAAA;;;;IAIvBG,OAAAA,EAASJ,YAAAA,CAAaE,OAAAA,CAAQN,aAAAA;EAAAA;AAAAA;AAAAA,KAG7Bc,sBAAAA,yBAA+CH,6BAAAA,GAAgCA,6BAAAA,IAAiCV,OAAAA,CAAQc,eAAAA"}
@@ -7,6 +7,54 @@ interface ChangelogPluginOptions {
7
7
  /**
8
8
  * The path to the changelog file to read when executing the `changelog` command. This can be an absolute path or a path relative to the application's root directory.
9
9
  *
10
+ * @remarks
11
+ * If not provided, the plugin will attempt to resolve the changelog file by looking for common changelog file names (e.g., `CHANGELOG.md`, `RELEASE-NOTES.md`, etc.) in the application's root directory. If a specific file name is provided but cannot be found, it will fall back to looking for common changelog file names. If no valid changelog file can be resolved, the `changelog` command will not be added to the application. The following list of common changelog file names will be used for resolution:
12
+ * - `CHANGELOG.md`
13
+ * - `changelog.md`
14
+ * - `Changelog.md`
15
+ * - `CHANGELOG.markdown`
16
+ * - `changelog.markdown`
17
+ * - `Changelog.markdown`
18
+ * - `CHANGELOG.txt`
19
+ * - `changelog.txt`
20
+ * - `Changelog.txt`
21
+ * - `RELEASE-NOTES.md`
22
+ * - `release-notes.md`
23
+ * - `Release-Notes.md`
24
+ * - `RELEASE-NOTES.markdown`
25
+ * - `release-notes.markdown`
26
+ * - `Release-Notes.markdown`
27
+ * - `RELEASE-NOTES.txt`
28
+ * - `release-notes.txt`
29
+ * - `Release-Notes.txt`
30
+ * - `RELEASE_NOTES.md`
31
+ * - `release_notes.md`
32
+ * - `Release_Notes.md`
33
+ * - `RELEASE_NOTES.markdown`
34
+ * - `release_notes.markdown`
35
+ * - `Release_Notes.markdown`
36
+ * - `RELEASE_NOTES.txt`
37
+ * - `release_notes.txt`
38
+ * - `Release_Notes.txt`
39
+ * - `RELEASES.md`
40
+ * - `releases.md`
41
+ * - `Releases.md`
42
+ * - `RELEASES.markdown`
43
+ * - `releases.markdown`
44
+ * - `Releases.markdown`
45
+ * - `RELEASES.txt`
46
+ * - `releases.txt`
47
+ * - `Releases.txt`
48
+ * - `HISTORY.md`
49
+ * - `history.md`
50
+ * - `History.md`
51
+ * - `HISTORY.markdown`
52
+ * - `history.markdown`
53
+ * - `History.markdown`
54
+ * - `HISTORY.txt`
55
+ * - `history.txt`
56
+ * - `History.txt`
57
+ *
10
58
  * @defaultValue "\{root\}/CHANGELOG.md"
11
59
  */
12
60
  file?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":["CommandConfig","Context","ResolvedConfig","UserConfig","RequiredKeys","ChangelogPluginOptions","Partial","file","command","ChangelogPluginUserConfig","changelog","ChangelogPluginResolvedConfig","Omit","Required","ChangelogPluginContext","TResolvedConfig"],"sources":["../../../../../../plugin-changelog/dist/types/plugin.d.cts"],"mappings":";;;;;UAIUK,sBAAAA;EAAsB;;;;;EAM9BE,IAAAA;EASkBP;;;AAAa;;;;;EAA/BQ,OAAAA,GAAUF,OAAAA,CAAQN,aAAAA;AAAAA;AAAAA,KAEfS,yBAAAA,GAA4BN,UAAAA;EAIE;AAAA;;EAAjCO,SAAAA,EAAWL,sBAAAA;AAAAA;AAAAA,KAERM,6BAAAA,GAAgCT,cAAAA;EAIfU;;;EAApBF,SAAAA,EAAWG,QAAAA,CAASD,IAAAA,CAAKP,sBAAAA;IAIdD;;;IAATI,OAAAA,EAASJ,YAAAA,CAAaE,OAAAA,CAAQN,aAAAA;EAAAA;AAAAA;AAAAA,KAG7Bc,sBAAAA,yBAA+CH,6BAAAA,GAAgCA,6BAAAA,IAAiCV,OAAAA,CAAQc,eAAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":["CommandConfig","Context","ResolvedConfig","UserConfig","RequiredKeys","ChangelogPluginOptions","Partial","file","command","ChangelogPluginUserConfig","changelog","ChangelogPluginResolvedConfig","Omit","Required","ChangelogPluginContext","TResolvedConfig"],"sources":["../../../../../../plugin-changelog/dist/types/plugin.d.cts"],"mappings":";;;;;UAIUK,sBAAAA;EAAsB;;;;;;;;;AA+DC;;;;;;;;;AAME;;;;;;;;;;;;;;;;;;;;;;;AAUY;;;;;;;;;;;;EAzB7CE,IAAAA;EA4B2HQ;;;;;;;;EAnB3HP,OAAAA,GAAUF,OAAAA,CAAQN,aAAAA;AAAAA;AAAAA,KAEfS,yBAAAA,GAA4BN,UAAAA;;;;EAI/BO,SAAAA,EAAWL,sBAAAA;AAAAA;AAAAA,KAERM,6BAAAA,GAAgCT,cAAAA;;;;EAInCQ,SAAAA,EAAWG,QAAAA,CAASD,IAAAA,CAAKP,sBAAAA;;;;IAIvBG,OAAAA,EAASJ,YAAAA,CAAaE,OAAAA,CAAQN,aAAAA;EAAAA;AAAAA;AAAAA,KAG7Bc,sBAAAA,yBAA+CH,6BAAAA,GAAgCA,6BAAAA,IAAiCV,OAAAA,CAAQc,eAAAA"}