@memberjunction/cli 2.22.2 → 2.23.1
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 +6 -6
- package/dist/config.js +2 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
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/2.
|
|
15
|
+
@memberjunction/cli/2.23.1 linux-x64 node-v20.18.2
|
|
16
16
|
$ mj --help [COMMAND]
|
|
17
17
|
USAGE
|
|
18
18
|
$ mj COMMAND
|
|
@@ -63,7 +63,7 @@ EXAMPLES
|
|
|
63
63
|
$ mj bump -rqt v2.10.0 | xargs -n1 -I{} npm install --prefix {}
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
_See code: [src/commands/bump/index.ts](https://github.com/MemberJunction/MJ/blob/v2.
|
|
66
|
+
_See code: [src/commands/bump/index.ts](https://github.com/MemberJunction/MJ/blob/v2.23.1/src/commands/bump/index.ts)_
|
|
67
67
|
|
|
68
68
|
## `mj clean`
|
|
69
69
|
|
|
@@ -83,7 +83,7 @@ EXAMPLES
|
|
|
83
83
|
$ mj clean
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
_See code: [src/commands/clean/index.ts](https://github.com/MemberJunction/MJ/blob/v2.
|
|
86
|
+
_See code: [src/commands/clean/index.ts](https://github.com/MemberJunction/MJ/blob/v2.23.1/src/commands/clean/index.ts)_
|
|
87
87
|
|
|
88
88
|
## `mj codegen`
|
|
89
89
|
|
|
@@ -103,7 +103,7 @@ EXAMPLES
|
|
|
103
103
|
$ mj codegen
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
_See code: [src/commands/codegen/index.ts](https://github.com/MemberJunction/MJ/blob/v2.
|
|
106
|
+
_See code: [src/commands/codegen/index.ts](https://github.com/MemberJunction/MJ/blob/v2.23.1/src/commands/codegen/index.ts)_
|
|
107
107
|
|
|
108
108
|
## `mj help [COMMAND]`
|
|
109
109
|
|
|
@@ -143,7 +143,7 @@ EXAMPLES
|
|
|
143
143
|
$ mj install
|
|
144
144
|
```
|
|
145
145
|
|
|
146
|
-
_See code: [src/commands/install/index.ts](https://github.com/MemberJunction/MJ/blob/v2.
|
|
146
|
+
_See code: [src/commands/install/index.ts](https://github.com/MemberJunction/MJ/blob/v2.23.1/src/commands/install/index.ts)_
|
|
147
147
|
|
|
148
148
|
## `mj migrate`
|
|
149
149
|
|
|
@@ -164,7 +164,7 @@ EXAMPLES
|
|
|
164
164
|
$ mj migrate
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [src/commands/migrate/index.ts](https://github.com/MemberJunction/MJ/blob/v2.
|
|
167
|
+
_See code: [src/commands/migrate/index.ts](https://github.com/MemberJunction/MJ/blob/v2.23.1/src/commands/migrate/index.ts)_
|
|
168
168
|
|
|
169
169
|
## `mj version`
|
|
170
170
|
|
package/dist/config.js
CHANGED
|
@@ -44,8 +44,9 @@ const getFlywayConfig = async (mjConfig, tag) => {
|
|
|
44
44
|
// when tag is set, we want to fetch migrations from the github repo using the tag specified
|
|
45
45
|
// we save those to a tmp dir and set that tmp dir as the migration location
|
|
46
46
|
const tmp = (0, node_fs_1.mkdtempSync)((0, node_os_1.tmpdir)());
|
|
47
|
+
const branch = /v?\d+\.\d+\.\d+/.test(tag) ? (tag.startsWith('v') ? tag : `v${tag}`) : tag;
|
|
47
48
|
const git = (0, simple_git_1.simpleGit)(tmp);
|
|
48
|
-
await git.clone(mjConfig.mjRepoUrl, tmp, ['--sparse', '--depth=1', '--branch',
|
|
49
|
+
await git.clone(mjConfig.mjRepoUrl, tmp, ['--sparse', '--depth=1', '--branch', branch]);
|
|
49
50
|
await git.raw(['sparse-checkout', 'set', 'migrations']);
|
|
50
51
|
location = `filesystem:${tmp}`;
|
|
51
52
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.1",
|
|
4
4
|
"description": "MemberJunction command line tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oclif"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@inquirer/prompts": "^5.0.1",
|
|
53
|
-
"@memberjunction/codegen-lib": "2.
|
|
53
|
+
"@memberjunction/codegen-lib": "2.23.1",
|
|
54
54
|
"@oclif/core": "^3",
|
|
55
55
|
"@oclif/plugin-help": "^6",
|
|
56
56
|
"@oclif/plugin-version": "^2.0.17",
|