@pega/custom-dx-components 0.25.52 → 0.25.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.25.52",
3
+ "version": "0.25.53",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "keywords": [
@@ -45,6 +45,10 @@ export default async options => {
45
45
  // process and exit
46
46
  if (useInputConfig) {
47
47
  const inputConfig = await getInputConfigForCommand("createLib");
48
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
49
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
50
+ process.exit(1);
51
+ }
48
52
 
49
53
  if (convertYNToBoolean(inputConfig.okToContinue)) {
50
54
  const libraryName = inputConfig.libraryName;
@@ -58,6 +58,10 @@ addDebugLog("createVersion", "", "+");
58
58
  // process and no inputs
59
59
  if (useInputConfig) {
60
60
  const inputConfig = await getInputConfigForCommand("createLibVersion");
61
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
62
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
63
+ process.exit(1);
64
+ }
61
65
 
62
66
  if (convertYNToBoolean(inputConfig.okToContinue)) {
63
67
  version = inputConfig.libraryVersion;
@@ -236,6 +236,11 @@ addDebugLog("deleteLibrary", "", "+");
236
236
 
237
237
  if (useInputConfig) {
238
238
  const inputConfig = await getInputConfigForCommand("deleteLib");
239
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
240
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
241
+ process.exit(1);
242
+ }
243
+
239
244
  libraryName = inputConfig.libraryName;
240
245
  version = inputConfig.libraryVersion;
241
246
  const isPermanent = inputConfig?.isPermanent || "N";
@@ -41,6 +41,11 @@ addDebugLog("deleteVersion", "", "+");
41
41
 
42
42
  if (useInputConfig) {
43
43
  const inputConfig = await getInputConfigForCommand("deleteLibVersion");
44
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
45
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
46
+ process.exit(1);
47
+ }
48
+
44
49
  version = inputConfig.libraryVersion;
45
50
  const isPermanent = inputConfig?.isPermanent || "N";
46
51
  let permBuild = convertYNToBoolean(isPermanent);
@@ -726,6 +726,11 @@ export default async options => {
726
726
 
727
727
  if (useInputConfig) {
728
728
  const inputConfig = await getInputConfigForCommand("importLibVersion");
729
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
730
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
731
+ process.exit(1);
732
+ }
733
+
729
734
  const serverOrDirectory = inputConfig.serverOrDirectory;
730
735
  const filePath = inputConfig.fileLocation;
731
736
  const fileName = inputConfig.fileName;
@@ -107,7 +107,7 @@
107
107
  "@babel/preset-react": "^7.27.1",
108
108
  "@babel/preset-typescript": "^7.27.1",
109
109
  "@pega/configs": "^0.16.3",
110
- "@pega/custom-dx-components": "~0.25.52",
110
+ "@pega/custom-dx-components": "~0.25.53",
111
111
  "@pega/pcore-pconnect-typedefs": "^4.1.0-alpha.1",
112
112
  "@storybook/addon-actions": "^8.6.14",
113
113
  "@storybook/addon-essentials": "^8.6.14",
@@ -75,6 +75,10 @@ addDebugLog("publish", "", "+");
75
75
 
76
76
  if (useInputConfig) {
77
77
  const inputConfig = await getInputConfigForCommand("publish");
78
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
79
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
80
+ process.exit(1);
81
+ }
78
82
 
79
83
  const okToPubPerm = inputConfig?.okToPublishPermanent || "Y";
80
84
  const okToPublishPerm = convertYNToBoolean(okToPubPerm);
@@ -141,6 +141,11 @@ addDebugLog("setPerm", "", "+");
141
141
 
142
142
  if (useInputConfig) {
143
143
  const inputConfig = await getInputConfigForCommand("setPermanent");
144
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
145
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
146
+ process.exit(1);
147
+ }
148
+
144
149
  inputYN = inputConfig.makePermanent;
145
150
 
146
151
  }
@@ -62,6 +62,10 @@ addDebugLog("switchLibrary", "", "+");
62
62
  // process and no inputs
63
63
  if (useInputConfig) {
64
64
  const inputConfig = await getInputConfigForCommand("switchLib");
65
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
66
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
67
+ process.exit(1);
68
+ }
65
69
 
66
70
  if (convertYNToBoolean(inputConfig.okToContinue)) {
67
71
  const newLibraryName = inputConfig.libraryName;
@@ -62,6 +62,10 @@ addDebugLog("switchVersion", "", "+");
62
62
  // process and no inputs
63
63
  if (useInputConfig) {
64
64
  const inputConfig = await getInputConfigForCommand("switchLibVersion");
65
+ if (!inputConfig || Object.keys(inputConfig).length === 0) {
66
+ console.log(chalk.redBright("Configured for input config, but no input.config.json file found."));
67
+ process.exit(1);
68
+ }
65
69
 
66
70
  okToContinue = convertYNToBoolean(inputConfig.okToContinue);
67
71
  if (okToContinue) {