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