@pd4castr/cli 1.4.0 → 1.5.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -6
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -101,7 +101,6 @@ var projectConfigSchema = z.object({
101
101
  "price"
102
102
  ]),
103
103
  timeHorizon: z.enum([
104
- "actual",
105
104
  "day_ahead",
106
105
  "week_ahead",
107
106
  "quarterly"
@@ -793,8 +792,10 @@ __name(pushDockerImage, "pushDockerImage");
793
792
  // src/utils/get-docker-image.ts
794
793
  import slugify from "slugify";
795
794
  function getDockerImage(ctx) {
796
- const sluggedName = slugify(ctx.config.name, {
797
- lower: true
795
+ const cleanedName = ctx.config.name.replaceAll(/[@#$%^&*()]/g, "");
796
+ const sluggedName = slugify(cleanedName, {
797
+ lower: true,
798
+ strict: true
798
799
  });
799
800
  const dockerImage = `pd4castr/${sluggedName}-local:${Date.now()}`;
800
801
  return dockerImage;
@@ -1509,7 +1510,7 @@ async function handleAction5(options) {
1509
1510
  spinner.fail(error.message);
1510
1511
  }
1511
1512
  if (error instanceof Error && error.cause instanceof ExecaError5) {
1512
- console.error(error.cause.shortMessage);
1513
+ console.error(error.cause.stderr);
1513
1514
  } else if (error instanceof Error && error.cause) {
1514
1515
  console.error(error.cause);
1515
1516
  }
@@ -1663,7 +1664,7 @@ ${clickHereLink} to view output (${fileLink})
1663
1664
  spinner.fail(error.message);
1664
1665
  }
1665
1666
  if (error instanceof Error && error.cause instanceof ExecaError6) {
1666
- console.error(error.cause.shortMessage);
1667
+ console.error(error.cause.stderr);
1667
1668
  } else if (error instanceof Error && error.cause) {
1668
1669
  console.error(error.cause);
1669
1670
  }
@@ -1690,10 +1691,11 @@ import { Command } from "commander";
1690
1691
  // package.json
1691
1692
  var package_default = {
1692
1693
  name: "@pd4castr/cli",
1693
- version: "1.4.0",
1694
+ version: "1.5.0",
1694
1695
  description: "CLI tool for creating, testing, and publishing pd4castr models",
1695
1696
  license: "UNLICENSED",
1696
1697
  main: "dist/index.js",
1698
+ private: false,
1697
1699
  type: "module",
1698
1700
  bin: {
1699
1701
  pd4castr: "dist/index.js"
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@pd4castr/cli",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "CLI tool for creating, testing, and publishing pd4castr models",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
7
+ "private": false,
7
8
  "type": "module",
8
9
  "bin": {
9
10
  "pd4castr": "dist/index.js"