@memberjunction/cli 2.111.0 → 2.112.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/commands/sync/watch.js +3 -5
- package/oclif.manifest.json +33 -33
- package/package.json +8 -7
|
@@ -68,9 +68,7 @@ class Watch extends core_1.Command {
|
|
|
68
68
|
// Show success after initialization
|
|
69
69
|
spinner.succeed('Configuration and metadata loaded');
|
|
70
70
|
// Determine watch directory
|
|
71
|
-
const watchDir = flags.dir
|
|
72
|
-
? path.resolve(metadata_sync_1.configManager.getOriginalCwd(), flags.dir)
|
|
73
|
-
: metadata_sync_1.configManager.getOriginalCwd();
|
|
71
|
+
const watchDir = flags.dir ? path.resolve(metadata_sync_1.configManager.getOriginalCwd(), flags.dir) : metadata_sync_1.configManager.getOriginalCwd();
|
|
74
72
|
// Create watch service
|
|
75
73
|
const watchService = new metadata_sync_1.WatchService(syncEngine);
|
|
76
74
|
// Setup graceful shutdown
|
|
@@ -94,7 +92,7 @@ class Watch extends core_1.Command {
|
|
|
94
92
|
this.log(chalk_1.default.gray('Press Ctrl+C to stop watching\n'));
|
|
95
93
|
this.watchController = await watchService.watch({
|
|
96
94
|
dir: flags.dir,
|
|
97
|
-
debounceMs: flags.debounce || 500
|
|
95
|
+
debounceMs: flags.debounce || 500,
|
|
98
96
|
}, {
|
|
99
97
|
onFileAdd: (filePath, entityDir, entityConfig) => {
|
|
100
98
|
const relativePath = path.relative(process.cwd(), filePath);
|
|
@@ -123,7 +121,7 @@ class Watch extends core_1.Command {
|
|
|
123
121
|
if (flags.verbose) {
|
|
124
122
|
this.log(message);
|
|
125
123
|
}
|
|
126
|
-
}
|
|
124
|
+
},
|
|
127
125
|
});
|
|
128
126
|
// Keep process alive
|
|
129
127
|
await new Promise(() => {
|
package/oclif.manifest.json
CHANGED
|
@@ -22,38 +22,6 @@
|
|
|
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
|
-
},
|
|
57
25
|
"bump": {
|
|
58
26
|
"aliases": [],
|
|
59
27
|
"args": {},
|
|
@@ -126,6 +94,38 @@
|
|
|
126
94
|
"index.js"
|
|
127
95
|
]
|
|
128
96
|
},
|
|
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": {},
|
|
@@ -1255,5 +1255,5 @@
|
|
|
1255
1255
|
]
|
|
1256
1256
|
}
|
|
1257
1257
|
},
|
|
1258
|
-
"version": "2.
|
|
1258
|
+
"version": "2.112.0"
|
|
1259
1259
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.112.0",
|
|
4
4
|
"description": "MemberJunction command line tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oclif"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "
|
|
14
|
+
"url": "https://github.com/MemberJunction/MJ"
|
|
15
15
|
},
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"author": "MemberJunction",
|
|
@@ -51,11 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@inquirer/prompts": "^5.0.1",
|
|
54
|
-
"@memberjunction/
|
|
55
|
-
"@memberjunction/
|
|
56
|
-
"@memberjunction/
|
|
57
|
-
"@memberjunction/
|
|
58
|
-
"@memberjunction/
|
|
54
|
+
"@memberjunction/global": "2.112.0",
|
|
55
|
+
"@memberjunction/ai-cli": "2.112.0",
|
|
56
|
+
"@memberjunction/codegen-lib": "2.112.0",
|
|
57
|
+
"@memberjunction/db-auto-doc": "2.112.0",
|
|
58
|
+
"@memberjunction/metadata-sync": "2.112.0",
|
|
59
|
+
"@memberjunction/sqlserver-dataprovider": "2.112.0",
|
|
59
60
|
"@oclif/core": "^3",
|
|
60
61
|
"@oclif/plugin-help": "^6",
|
|
61
62
|
"@oclif/plugin-version": "^2.0.17",
|