alex-c-line 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -318,11 +318,7 @@ function createPullRequestTemplate(program) {
318
318
  });
319
319
  }).option("--project-name <projectName>", "The name of the package to use in the templates (leave blank to default to name found in package.json)").option("--project-type <projectType>", "The type of project, used in phrases such as 'adds a new feature to the {{projectType}}'. This option must not be specified if category is `infrastructure`").option("--infrastructure-provider <infrastructureProvider>", "If category is `infrastructure`, this would be the name of the Infrastructure provider (e.g. Terraform)").option("--require-confirmation-from <requireConfirmationFrom>", "If category is `infrastructure`, this would be the name of the user to get approval from if a manual change was required").description("Create pull request template files for a category (currently generates all templates in that category).").action(async (commandLineOptions) => {
320
320
  const configPath = await findAlexCLineConfig_default(process.cwd());
321
- if (!configPath) program.error("Could not find the path to the alex-c-line config file. Does it exist?", {
322
- exitCode: 1,
323
- code: "ALEX_C_LINE_CONFIG_NOT_FOUND"
324
- });
325
- const { createPullRequestTemplate: config } = await loadAlexCLineConfig_default(configPath);
321
+ const { createPullRequestTemplate: config } = configPath ? await loadAlexCLineConfig_default(configPath) : {};
326
322
  const packageInfo = JSON.parse(await (0, node_fs_promises.readFile)(node_path.default.join(process.cwd(), "package.json"), "utf-8"));
327
323
  const { name: projectName } = commandLineOptions.projectName || config?.projectName ? { name: commandLineOptions.projectName ?? config?.projectName } : (0, _alextheman_utility.parseZodSchema)(zod.default.object({ name: zod.default.string() }), packageInfo, () => {
328
324
  program.error("Invalid package.json - expected package.json to contain a `name` property.", {
@@ -852,7 +848,7 @@ var commands_default = createCommands;
852
848
 
853
849
  //#endregion
854
850
  //#region package.json
855
- var version = "1.18.0";
851
+ var version = "1.18.1";
856
852
  var package_default = {
857
853
  name: "alex-c-line",
858
854
  version,
package/dist/index.js CHANGED
@@ -284,11 +284,7 @@ function createPullRequestTemplate(program) {
284
284
  });
285
285
  }).option("--project-name <projectName>", "The name of the package to use in the templates (leave blank to default to name found in package.json)").option("--project-type <projectType>", "The type of project, used in phrases such as 'adds a new feature to the {{projectType}}'. This option must not be specified if category is `infrastructure`").option("--infrastructure-provider <infrastructureProvider>", "If category is `infrastructure`, this would be the name of the Infrastructure provider (e.g. Terraform)").option("--require-confirmation-from <requireConfirmationFrom>", "If category is `infrastructure`, this would be the name of the user to get approval from if a manual change was required").description("Create pull request template files for a category (currently generates all templates in that category).").action(async (commandLineOptions) => {
286
286
  const configPath = await findAlexCLineConfig_default(process.cwd());
287
- if (!configPath) program.error("Could not find the path to the alex-c-line config file. Does it exist?", {
288
- exitCode: 1,
289
- code: "ALEX_C_LINE_CONFIG_NOT_FOUND"
290
- });
291
- const { createPullRequestTemplate: config } = await loadAlexCLineConfig_default(configPath);
287
+ const { createPullRequestTemplate: config } = configPath ? await loadAlexCLineConfig_default(configPath) : {};
292
288
  const packageInfo = JSON.parse(await readFile(path.join(process.cwd(), "package.json"), "utf-8"));
293
289
  const { name: projectName } = commandLineOptions.projectName || config?.projectName ? { name: commandLineOptions.projectName ?? config?.projectName } : parseZodSchema(z.object({ name: z.string() }), packageInfo, () => {
294
290
  program.error("Invalid package.json - expected package.json to contain a `name` property.", {
@@ -818,7 +814,7 @@ var commands_default = createCommands;
818
814
 
819
815
  //#endregion
820
816
  //#region package.json
821
- var version = "1.18.0";
817
+ var version = "1.18.1";
822
818
  var package_default = {
823
819
  name: "alex-c-line",
824
820
  version,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alex-c-line",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "Command-line tool with commands to streamline the developer workflow.",
5
5
  "repository": {
6
6
  "type": "git",