@memberjunction/cli 1.1.1 → 1.1.2
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/README.md +2 -2
- package/dist/commands/install/index.js +10 -4
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ $ npm install -g @memberjunction/cli
|
|
|
12
12
|
$ mj COMMAND
|
|
13
13
|
running command...
|
|
14
14
|
$ mj (--version)
|
|
15
|
-
@memberjunction/cli/1.1.
|
|
15
|
+
@memberjunction/cli/1.1.2 linux-x64 node-v20.12.2
|
|
16
16
|
$ mj --help [COMMAND]
|
|
17
17
|
USAGE
|
|
18
18
|
$ mj COMMAND
|
|
@@ -63,7 +63,7 @@ EXAMPLES
|
|
|
63
63
|
$ mj install
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
_See code: [src/commands/install/index.ts](https://github.com/MemberJunction/MJ/blob/v1.1.
|
|
66
|
+
_See code: [src/commands/install/index.ts](https://github.com/MemberJunction/MJ/blob/v1.1.2/src/commands/install/index.ts)_
|
|
67
67
|
|
|
68
68
|
## `mj version`
|
|
69
69
|
|
|
@@ -42,10 +42,10 @@ const MJ_BASE_DIR = 'MJ_BASE';
|
|
|
42
42
|
const MJAPI_DIR = 'MJAPI';
|
|
43
43
|
const MJEXPLORER_DIR = 'MJExplorer';
|
|
44
44
|
const configSchema = zod_1.z.object({
|
|
45
|
-
dbUrl: zod_1.z.string().
|
|
45
|
+
dbUrl: zod_1.z.string().min(1),
|
|
46
46
|
dbInstance: zod_1.z.string(),
|
|
47
47
|
dbTrustServerCertificate: zod_1.z.enum(['Y', 'N']),
|
|
48
|
-
dbDatabase: zod_1.z.string(),
|
|
48
|
+
dbDatabase: zod_1.z.string().min(1),
|
|
49
49
|
dbPort: zod_1.z.number({ coerce: true }).int().positive(),
|
|
50
50
|
codeGenLogin: zod_1.z.string(),
|
|
51
51
|
codeGenPwD: zod_1.z.string(),
|
|
@@ -221,7 +221,10 @@ CONFIG_FILE='config.json'
|
|
|
221
221
|
}
|
|
222
222
|
if (!userConfig) {
|
|
223
223
|
this.log('\n>>> Please answer the following questions to setup the .env files for CodeGen. After this process you can manually edit the .env file in CodeGen as desired.');
|
|
224
|
-
const dbUrl = await (0, prompts_1.input)({
|
|
224
|
+
const dbUrl = await (0, prompts_1.input)({
|
|
225
|
+
message: 'Enter the database server hostname:',
|
|
226
|
+
validate: (v) => configSchema.shape.dbDatabase.safeParse(v).success,
|
|
227
|
+
});
|
|
225
228
|
const dbInstance = await (0, prompts_1.input)({
|
|
226
229
|
message: 'If you are using a named instance on that server, if so, enter the name here, if not leave blank:',
|
|
227
230
|
});
|
|
@@ -230,7 +233,10 @@ CONFIG_FILE='config.json'
|
|
|
230
233
|
}))
|
|
231
234
|
? 'Y'
|
|
232
235
|
: 'N';
|
|
233
|
-
const dbDatabase = await (0, prompts_1.input)({
|
|
236
|
+
const dbDatabase = await (0, prompts_1.input)({
|
|
237
|
+
message: 'Enter the database name on that server:',
|
|
238
|
+
validate: (v) => configSchema.shape.dbDatabase.safeParse(v).success,
|
|
239
|
+
});
|
|
234
240
|
const dbPort = await (0, prompts_1.input)({
|
|
235
241
|
message: 'Enter the port the database server listens on',
|
|
236
242
|
validate: (v) => configSchema.shape.dbPort.safeParse(v).success,
|
package/oclif.manifest.json
CHANGED