@memberjunction/cli 2.106.0 → 2.108.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.
@@ -105,7 +105,14 @@ class Push extends core_1.Command {
105
105
  spinner.succeed(message);
106
106
  },
107
107
  onError: (message) => {
108
- this.error(message);
108
+ // For rollback messages, just log them - don't throw
109
+ if (message.includes('Rolling back database') || message.includes('rolled back successfully')) {
110
+ spinner.fail(message);
111
+ }
112
+ else {
113
+ // For actual errors, throw to stop execution
114
+ this.error(message);
115
+ }
109
116
  },
110
117
  onWarn: (message) => {
111
118
  // Check if this is a user-friendly warning that doesn't need a stack trace
@@ -189,16 +196,11 @@ class Push extends core_1.Command {
189
196
  }
190
197
  catch (error) {
191
198
  spinner.fail('Push failed');
192
- // Error handling - individual operations may have partially succeeded
193
- // Enhanced error logging
194
- this.log('\n=== Push Error Details ===');
195
- this.log(`Error type: ${error?.constructor?.name || 'Unknown'}`);
196
- this.log(`Error message: ${error instanceof Error ? error.message : String(error)}`);
197
- if (error instanceof Error && error.stack) {
198
- this.log(`\nStack trace:`);
199
- this.log(error.stack);
200
- }
201
- this.error(error);
199
+ // Show concise error message without duplicate stack traces
200
+ const errorMessage = error instanceof Error ? error.message : String(error);
201
+ this.log(chalk_1.default.red(`\n Error: ${errorMessage}\n`));
202
+ // Exit with error code but don't show stack trace again (already logged by handlers)
203
+ this.exit(1);
202
204
  }
203
205
  finally {
204
206
  // Reset singletons
@@ -22,6 +22,38 @@
22
22
  "index.js"
23
23
  ]
24
24
  },
25
+ "clean": {
26
+ "aliases": [],
27
+ "args": {},
28
+ "description": "Resets the MemberJunction database to a pre-installation state",
29
+ "examples": [
30
+ "<%= config.bin %> <%= command.id %>\n"
31
+ ],
32
+ "flags": {
33
+ "verbose": {
34
+ "char": "v",
35
+ "description": "Enable additional logging",
36
+ "name": "verbose",
37
+ "allowNo": false,
38
+ "type": "boolean"
39
+ }
40
+ },
41
+ "hasDynamicHelp": false,
42
+ "hiddenAliases": [],
43
+ "id": "clean",
44
+ "pluginAlias": "@memberjunction/cli",
45
+ "pluginName": "@memberjunction/cli",
46
+ "pluginType": "core",
47
+ "strict": true,
48
+ "enableJsonFlag": false,
49
+ "isESM": false,
50
+ "relativePath": [
51
+ "dist",
52
+ "commands",
53
+ "clean",
54
+ "index.js"
55
+ ]
56
+ },
25
57
  "bump": {
26
58
  "aliases": [],
27
59
  "args": {},
@@ -94,38 +126,6 @@
94
126
  "index.js"
95
127
  ]
96
128
  },
97
- "clean": {
98
- "aliases": [],
99
- "args": {},
100
- "description": "Resets the MemberJunction database to a pre-installation state",
101
- "examples": [
102
- "<%= config.bin %> <%= command.id %>\n"
103
- ],
104
- "flags": {
105
- "verbose": {
106
- "char": "v",
107
- "description": "Enable additional logging",
108
- "name": "verbose",
109
- "allowNo": false,
110
- "type": "boolean"
111
- }
112
- },
113
- "hasDynamicHelp": false,
114
- "hiddenAliases": [],
115
- "id": "clean",
116
- "pluginAlias": "@memberjunction/cli",
117
- "pluginName": "@memberjunction/cli",
118
- "pluginType": "core",
119
- "strict": true,
120
- "enableJsonFlag": false,
121
- "isESM": false,
122
- "relativePath": [
123
- "dist",
124
- "commands",
125
- "clean",
126
- "index.js"
127
- ]
128
- },
129
129
  "codegen": {
130
130
  "aliases": [],
131
131
  "args": {},
@@ -1061,5 +1061,5 @@
1061
1061
  ]
1062
1062
  }
1063
1063
  },
1064
- "version": "2.106.0"
1064
+ "version": "2.108.0"
1065
1065
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/cli",
3
- "version": "2.106.0",
3
+ "version": "2.108.0",
4
4
  "description": "MemberJunction command line tools",
5
5
  "keywords": [
6
6
  "oclif"
@@ -51,10 +51,10 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@inquirer/prompts": "^5.0.1",
54
- "@memberjunction/ai-cli": "2.106.0",
55
- "@memberjunction/codegen-lib": "2.106.0",
56
- "@memberjunction/metadata-sync": "2.106.0",
57
- "@memberjunction/sqlserver-dataprovider": "2.106.0",
54
+ "@memberjunction/ai-cli": "2.108.0",
55
+ "@memberjunction/codegen-lib": "2.108.0",
56
+ "@memberjunction/metadata-sync": "2.108.0",
57
+ "@memberjunction/sqlserver-dataprovider": "2.108.0",
58
58
  "@oclif/core": "^3",
59
59
  "@oclif/plugin-help": "^6",
60
60
  "@oclif/plugin-version": "^2.0.17",