alex-c-line 1.32.0 → 1.33.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.
package/dist/index.cjs CHANGED
@@ -628,35 +628,35 @@ async function parseDotenvFile(envFilePath) {
628
628
  //#endregion
629
629
  //#region src/cli/commands/edit-env-file/index.ts
630
630
  function editEnvFile(program) {
631
- program.command("edit-env-file").description("Edit properties in a .env file").option("--interactive", "Enable interactive mode", true).option("--file <filePath>", "The path to the .env file you want to edit, relative to the working directory this command is run", ".env").action(async ({ interactive, file }) => {
631
+ program.command("edit-env-file").description("Edit properties in a .env file").option("--interactive", "Enable interactive mode", true).option("--file <filePath>", "The path to the .env file you want to edit, relative to the working directory this command is run", ".env").action(async ({ file, interactive }) => {
632
632
  if (interactive) {
633
633
  let exitInteractiveMode = false;
634
634
  while (!exitInteractiveMode) {
635
635
  const envFileContents = await parseDotenvFile(file);
636
636
  const variableToEdit = await (0, _inquirer_prompts.select)({
637
- message: _alextheman_utility.normaliseIndents`
638
- Please select the environment variable you wish to edit
639
- Currently editing file: ${file}
640
- `,
641
637
  choices: [
642
638
  ...Object.keys(envFileContents).map((key) => {
643
639
  return {
640
+ description: envFileContents[key] === "" ? "<empty>" : "<redacted for safety>",
644
641
  name: key,
645
- value: key,
646
- description: envFileContents[key] === "" ? "<empty>" : "<redacted for safety>"
642
+ value: key
647
643
  };
648
644
  }),
649
645
  {
646
+ description: `Add a new environment variable to .env.`,
650
647
  name: `${chalk.default.green("+")} Add new environment variable`,
651
- value: "Add new",
652
- description: `Add a new environment variable to .env.`
648
+ value: "Add new"
653
649
  },
654
650
  {
651
+ description: "Exit the .env file interactive editor.",
655
652
  name: `${chalk.default.dim("⏎")} Exit editor`,
656
- value: "Exit editor",
657
- description: "Exit the .env file interactive editor."
653
+ value: "Exit editor"
658
654
  }
659
- ]
655
+ ],
656
+ message: _alextheman_utility.normaliseIndents`
657
+ Please select the environment variable you wish to edit
658
+ Currently editing file: ${file}
659
+ `
660
660
  });
661
661
  switch (variableToEdit) {
662
662
  case "Add new":
@@ -736,6 +736,31 @@ function gitPostMergeCleanup(program) {
736
736
  });
737
737
  }
738
738
 
739
+ //#endregion
740
+ //#region src/cli/commands/internal/outdated-dependencies.ts
741
+ function outdatedDependencies(program) {
742
+ program.command("outdated-dependencies").action(async () => {
743
+ const { exitCode, stdout, stderr } = await (0, execa.execa)({ reject: false })`pnpm outdated`;
744
+ if (![0, 1].includes(exitCode)) program.error(stderr ?? stdout, {
745
+ exitCode,
746
+ code: "PNPM_OUDATED_ERROR"
747
+ });
748
+ console.info(stdout);
749
+ });
750
+ }
751
+
752
+ //#endregion
753
+ //#region src/utility/miscellaneous/loadCommands.ts
754
+ function loadCommands(program, commandMap) {
755
+ for (const loader of Object.values(commandMap)) loader(program);
756
+ }
757
+
758
+ //#endregion
759
+ //#region src/cli/commands/internal/index.ts
760
+ function internal(program) {
761
+ loadCommands(program.command("internal").description("Commands meant more for internal use by me and is not recommended for production usage."), { outdatedDependencies });
762
+ }
763
+
739
764
  //#endregion
740
765
  //#region src/cli/commands/pre-commit/createStepRunner.ts
741
766
  const runCommandAndLogToConsole = (0, execa.execa)({
@@ -1317,7 +1342,7 @@ function parseZodSchemaForProgram(programError, schema, data) {
1317
1342
  //#endregion
1318
1343
  //#region package.json
1319
1344
  var name = "alex-c-line";
1320
- var version = "1.32.0";
1345
+ var version = "1.33.0";
1321
1346
  var description = "Command-line tool with commands to streamline the developer workflow.";
1322
1347
 
1323
1348
  //#endregion
@@ -1562,12 +1587,6 @@ function generateUUID(program) {
1562
1587
  });
1563
1588
  }
1564
1589
 
1565
- //#endregion
1566
- //#region src/utility/miscellaneous/loadCommands.ts
1567
- function loadCommands(program, commandMap) {
1568
- for (const loader of Object.values(commandMap)) loader(program);
1569
- }
1570
-
1571
1590
  //#endregion
1572
1591
  //#region src/cli/commands/uuid/index.ts
1573
1592
  function uuid(program) {
@@ -1686,7 +1705,9 @@ function createCommands(program) {
1686
1705
  getVersionType,
1687
1706
  gitPostMergeCleanup,
1688
1707
  incrementVersion,
1708
+ internal,
1689
1709
  migrateReleaseNotes,
1710
+ packageJson,
1690
1711
  preCommit,
1691
1712
  preCommit2,
1692
1713
  sayHello,
@@ -1694,8 +1715,7 @@ function createCommands(program) {
1694
1715
  setReleaseStatus2,
1695
1716
  update,
1696
1717
  useLocalPackage,
1697
- uuid,
1698
- packageJson
1718
+ uuid
1699
1719
  });
1700
1720
  }
1701
1721
 
package/dist/index.js CHANGED
@@ -590,35 +590,35 @@ async function parseDotenvFile(envFilePath) {
590
590
  //#endregion
591
591
  //#region src/cli/commands/edit-env-file/index.ts
592
592
  function editEnvFile(program) {
593
- program.command("edit-env-file").description("Edit properties in a .env file").option("--interactive", "Enable interactive mode", true).option("--file <filePath>", "The path to the .env file you want to edit, relative to the working directory this command is run", ".env").action(async ({ interactive, file }) => {
593
+ program.command("edit-env-file").description("Edit properties in a .env file").option("--interactive", "Enable interactive mode", true).option("--file <filePath>", "The path to the .env file you want to edit, relative to the working directory this command is run", ".env").action(async ({ file, interactive }) => {
594
594
  if (interactive) {
595
595
  let exitInteractiveMode = false;
596
596
  while (!exitInteractiveMode) {
597
597
  const envFileContents = await parseDotenvFile(file);
598
598
  const variableToEdit = await select({
599
- message: normaliseIndents`
600
- Please select the environment variable you wish to edit
601
- Currently editing file: ${file}
602
- `,
603
599
  choices: [
604
600
  ...Object.keys(envFileContents).map((key) => {
605
601
  return {
602
+ description: envFileContents[key] === "" ? "<empty>" : "<redacted for safety>",
606
603
  name: key,
607
- value: key,
608
- description: envFileContents[key] === "" ? "<empty>" : "<redacted for safety>"
604
+ value: key
609
605
  };
610
606
  }),
611
607
  {
608
+ description: `Add a new environment variable to .env.`,
612
609
  name: `${chalk.green("+")} Add new environment variable`,
613
- value: "Add new",
614
- description: `Add a new environment variable to .env.`
610
+ value: "Add new"
615
611
  },
616
612
  {
613
+ description: "Exit the .env file interactive editor.",
617
614
  name: `${chalk.dim("⏎")} Exit editor`,
618
- value: "Exit editor",
619
- description: "Exit the .env file interactive editor."
615
+ value: "Exit editor"
620
616
  }
621
- ]
617
+ ],
618
+ message: normaliseIndents`
619
+ Please select the environment variable you wish to edit
620
+ Currently editing file: ${file}
621
+ `
622
622
  });
623
623
  switch (variableToEdit) {
624
624
  case "Add new":
@@ -698,6 +698,31 @@ function gitPostMergeCleanup(program) {
698
698
  });
699
699
  }
700
700
 
701
+ //#endregion
702
+ //#region src/cli/commands/internal/outdated-dependencies.ts
703
+ function outdatedDependencies(program) {
704
+ program.command("outdated-dependencies").action(async () => {
705
+ const { exitCode, stdout, stderr } = await execa({ reject: false })`pnpm outdated`;
706
+ if (![0, 1].includes(exitCode)) program.error(stderr ?? stdout, {
707
+ exitCode,
708
+ code: "PNPM_OUDATED_ERROR"
709
+ });
710
+ console.info(stdout);
711
+ });
712
+ }
713
+
714
+ //#endregion
715
+ //#region src/utility/miscellaneous/loadCommands.ts
716
+ function loadCommands(program, commandMap) {
717
+ for (const loader of Object.values(commandMap)) loader(program);
718
+ }
719
+
720
+ //#endregion
721
+ //#region src/cli/commands/internal/index.ts
722
+ function internal(program) {
723
+ loadCommands(program.command("internal").description("Commands meant more for internal use by me and is not recommended for production usage."), { outdatedDependencies });
724
+ }
725
+
701
726
  //#endregion
702
727
  //#region src/cli/commands/pre-commit/createStepRunner.ts
703
728
  const runCommandAndLogToConsole = execa({
@@ -1279,7 +1304,7 @@ function parseZodSchemaForProgram(programError, schema, data) {
1279
1304
  //#endregion
1280
1305
  //#region package.json
1281
1306
  var name = "alex-c-line";
1282
- var version = "1.32.0";
1307
+ var version = "1.33.0";
1283
1308
  var description = "Command-line tool with commands to streamline the developer workflow.";
1284
1309
 
1285
1310
  //#endregion
@@ -1524,12 +1549,6 @@ function generateUUID(program) {
1524
1549
  });
1525
1550
  }
1526
1551
 
1527
- //#endregion
1528
- //#region src/utility/miscellaneous/loadCommands.ts
1529
- function loadCommands(program, commandMap) {
1530
- for (const loader of Object.values(commandMap)) loader(program);
1531
- }
1532
-
1533
1552
  //#endregion
1534
1553
  //#region src/cli/commands/uuid/index.ts
1535
1554
  function uuid(program) {
@@ -1648,7 +1667,9 @@ function createCommands(program) {
1648
1667
  getVersionType,
1649
1668
  gitPostMergeCleanup,
1650
1669
  incrementVersion,
1670
+ internal,
1651
1671
  migrateReleaseNotes,
1672
+ packageJson,
1652
1673
  preCommit,
1653
1674
  preCommit2,
1654
1675
  sayHello,
@@ -1656,8 +1677,7 @@ function createCommands(program) {
1656
1677
  setReleaseStatus2,
1657
1678
  update,
1658
1679
  useLocalPackage,
1659
- uuid,
1660
- packageJson
1680
+ uuid
1661
1681
  });
1662
1682
  }
1663
1683
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alex-c-line",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "Command-line tool with commands to streamline the developer workflow.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,7 +52,7 @@
52
52
  "zod": "^4.3.6"
53
53
  },
54
54
  "devDependencies": {
55
- "@alextheman/eslint-plugin": "^5.9.0",
55
+ "@alextheman/eslint-plugin": "^5.9.1",
56
56
  "@commander-js/extra-typings": "^14.0.0",
57
57
  "@types/eslint": "^9.6.1",
58
58
  "@types/node": "^25.3.2",