alex-c-line 1.33.2 → 1.33.4

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.
@@ -71,6 +71,7 @@ declare let scripts: {
71
71
  "format-prettier-yml": string;
72
72
  lint: string;
73
73
  "lint-eslint": string;
74
+ "lint-pre-release": string;
74
75
  "lint-prettier": string;
75
76
  "lint-prettier-html": string;
76
77
  "lint-prettier-javascript": string;
@@ -71,6 +71,7 @@ declare let scripts: {
71
71
  "format-prettier-yml": string;
72
72
  lint: string;
73
73
  "lint-eslint": string;
74
+ "lint-pre-release": string;
74
75
  "lint-prettier": string;
75
76
  "lint-prettier-html": string;
76
77
  "lint-prettier-javascript": string;
package/dist/index.cjs CHANGED
@@ -767,7 +767,10 @@ function outdatedDependencies(program) {
767
767
  code: "PNPM_OUDATED_ERROR"
768
768
  });
769
769
  const outdatedDependencies = JSON.parse(stdout.trim());
770
- if (Object.keys(outdatedDependencies).length === 0) console.info("NO_OUTDATED_DEPENDENCIES_FOUND");
770
+ if (Object.keys(outdatedDependencies).length === 0) {
771
+ console.info("NO_OUTDATED_DEPENDENCIES_FOUND");
772
+ return;
773
+ }
771
774
  const outdatedTemplatesPath = node_path.default.join(await alexCLinePackageRoot, "templates", "outdated");
772
775
  const tableTemplate = await (0, node_fs_promises.readFile)(node_path.default.join(outdatedTemplatesPath, "table.html"), "utf-8");
773
776
  const tableRowTemplate = await (0, node_fs_promises.readFile)(node_path.default.join(outdatedTemplatesPath, "tableRow.html"), "utf-8");
@@ -1354,7 +1357,7 @@ function parseZodSchemaForProgram(programError, schema, data) {
1354
1357
  //#endregion
1355
1358
  //#region package.json
1356
1359
  var name = "alex-c-line";
1357
- var version = "1.33.2";
1360
+ var version = "1.33.4";
1358
1361
  var description = "Command-line tool with commands to streamline the developer workflow.";
1359
1362
 
1360
1363
  //#endregion
@@ -1673,11 +1676,10 @@ async function noPreReleaseDependencies(program) {
1673
1676
  if (Object.keys(preReleaseDependencies).length !== 0 || Object.keys(preReleaseDevDependencies).length !== 0) program.error(_alextheman_utility.normaliseIndents`
1674
1677
  ${errorPrefix}: Pre-release version pinning is not allowed. Found the following violations:
1675
1678
 
1676
- ${JSON.stringify({
1679
+ ` + JSON.stringify({
1677
1680
  dependencies: preReleaseDependencies,
1678
1681
  devDependencies: preReleaseDevDependencies
1679
- }, null, 2)}
1680
- `, {
1682
+ }, null, 2), {
1681
1683
  exitCode: 2,
1682
1684
  code: "UNEXPECTED_PRE_RELEASE_VERSION"
1683
1685
  });
package/dist/index.js CHANGED
@@ -729,7 +729,10 @@ function outdatedDependencies(program) {
729
729
  code: "PNPM_OUDATED_ERROR"
730
730
  });
731
731
  const outdatedDependencies = JSON.parse(stdout.trim());
732
- if (Object.keys(outdatedDependencies).length === 0) console.info("NO_OUTDATED_DEPENDENCIES_FOUND");
732
+ if (Object.keys(outdatedDependencies).length === 0) {
733
+ console.info("NO_OUTDATED_DEPENDENCIES_FOUND");
734
+ return;
735
+ }
733
736
  const outdatedTemplatesPath = path.join(await alexCLinePackageRoot, "templates", "outdated");
734
737
  const tableTemplate = await readFile(path.join(outdatedTemplatesPath, "table.html"), "utf-8");
735
738
  const tableRowTemplate = await readFile(path.join(outdatedTemplatesPath, "tableRow.html"), "utf-8");
@@ -1316,7 +1319,7 @@ function parseZodSchemaForProgram(programError, schema, data) {
1316
1319
  //#endregion
1317
1320
  //#region package.json
1318
1321
  var name = "alex-c-line";
1319
- var version = "1.33.2";
1322
+ var version = "1.33.4";
1320
1323
  var description = "Command-line tool with commands to streamline the developer workflow.";
1321
1324
 
1322
1325
  //#endregion
@@ -1635,11 +1638,10 @@ async function noPreReleaseDependencies(program) {
1635
1638
  if (Object.keys(preReleaseDependencies).length !== 0 || Object.keys(preReleaseDevDependencies).length !== 0) program.error(normaliseIndents`
1636
1639
  ${errorPrefix}: Pre-release version pinning is not allowed. Found the following violations:
1637
1640
 
1638
- ${JSON.stringify({
1641
+ ` + JSON.stringify({
1639
1642
  dependencies: preReleaseDependencies,
1640
1643
  devDependencies: preReleaseDevDependencies
1641
- }, null, 2)}
1642
- `, {
1644
+ }, null, 2), {
1643
1645
  exitCode: 2,
1644
1646
  code: "UNEXPECTED_PRE_RELEASE_VERSION"
1645
1647
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alex-c-line",
3
- "version": "1.33.2",
3
+ "version": "1.33.4",
4
4
  "description": "Command-line tool with commands to streamline the developer workflow.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -86,8 +86,9 @@
86
86
  "format-prettier-javascript": "prettier --write \"./**/*.js\"",
87
87
  "format-prettier-typescript": "prettier --write --parser typescript \"./**/*.ts\"",
88
88
  "format-prettier-yml": "prettier --write \"./**/*.{yml,yaml}\"",
89
- "lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-prettier",
89
+ "lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-prettier && pnpm run lint-pre-release",
90
90
  "lint-eslint": "eslint \"package.json\" \"src/**/*.ts\" \"tests/**/*.ts\"",
91
+ "lint-pre-release": "node dist/index.js package-json no-pre-release-dependencies",
91
92
  "lint-prettier": "pnpm run lint-prettier-typescript && pnpm run lint-prettier-javascript && pnpm run lint-prettier-yml && pnpm run lint-prettier-html",
92
93
  "lint-prettier-html": "prettier --check \"**/*.html\"",
93
94
  "lint-prettier-javascript": "prettier --check \"./**.js\"",