@memberjunction/cli 2.112.0 → 2.113.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.
|
@@ -34,9 +34,6 @@ const ora_classic_1 = __importDefault(require("ora-classic"));
|
|
|
34
34
|
const node_path_1 = require("node:path");
|
|
35
35
|
// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
|
|
36
36
|
const semverRegex = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
|
|
37
|
-
// Pinned packages that should not be bumped
|
|
38
|
-
const PINNED_VERSION = '2.100.3';
|
|
39
|
-
const PINNED_PACKAGES = ['core', 'global'];
|
|
40
37
|
const tagSchema = zod_1.z
|
|
41
38
|
.string()
|
|
42
39
|
.optional()
|
|
@@ -107,14 +104,7 @@ class Bump extends core_1.Command {
|
|
|
107
104
|
}
|
|
108
105
|
verboseLogger(`\tBumping ${(0, node_path_1.dirname)(packageJson)}`);
|
|
109
106
|
spinner.text = `${banner} ${i + 1 - skipped.length}/${packageJsonFiles.length - skipped.length}`;
|
|
110
|
-
const bumpedPackageJson = packageJsonContents.replaceAll(mjRegx,
|
|
111
|
-
// Skip pinned packages
|
|
112
|
-
if (PINNED_PACKAGES.includes(packageName)) {
|
|
113
|
-
verboseLogger(`\t Skipping pinned package: @memberjunction/${packageName} (${PINNED_VERSION})`);
|
|
114
|
-
return match; // Return original match unchanged
|
|
115
|
-
}
|
|
116
|
-
return `"@memberjunction/${packageName}":${spacing}"${targetVersion}"`;
|
|
117
|
-
});
|
|
107
|
+
const bumpedPackageJson = packageJsonContents.replaceAll(mjRegx, `"@memberjunction/$1":$2"${targetVersion}"`);
|
|
118
108
|
if (!flags.dry) {
|
|
119
109
|
(0, node_fs_1.writeFileSync)(packageJson, bumpedPackageJson);
|
|
120
110
|
}
|
|
@@ -68,7 +68,9 @@ 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
|
|
71
|
+
const watchDir = flags.dir
|
|
72
|
+
? path.resolve(metadata_sync_1.configManager.getOriginalCwd(), flags.dir)
|
|
73
|
+
: metadata_sync_1.configManager.getOriginalCwd();
|
|
72
74
|
// Create watch service
|
|
73
75
|
const watchService = new metadata_sync_1.WatchService(syncEngine);
|
|
74
76
|
// Setup graceful shutdown
|
|
@@ -92,7 +94,7 @@ class Watch extends core_1.Command {
|
|
|
92
94
|
this.log(chalk_1.default.gray('Press Ctrl+C to stop watching\n'));
|
|
93
95
|
this.watchController = await watchService.watch({
|
|
94
96
|
dir: flags.dir,
|
|
95
|
-
debounceMs: flags.debounce || 500
|
|
97
|
+
debounceMs: flags.debounce || 500
|
|
96
98
|
}, {
|
|
97
99
|
onFileAdd: (filePath, entityDir, entityConfig) => {
|
|
98
100
|
const relativePath = path.relative(process.cwd(), filePath);
|
|
@@ -121,7 +123,7 @@ class Watch extends core_1.Command {
|
|
|
121
123
|
if (flags.verbose) {
|
|
122
124
|
this.log(message);
|
|
123
125
|
}
|
|
124
|
-
}
|
|
126
|
+
}
|
|
125
127
|
});
|
|
126
128
|
// Keep process alive
|
|
127
129
|
await new Promise(() => {
|
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.113.1",
|
|
4
4
|
"description": "MemberJunction command line tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oclif"
|
|
@@ -51,12 +51,11 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@inquirer/prompts": "^5.0.1",
|
|
54
|
-
"@memberjunction/
|
|
55
|
-
"@memberjunction/
|
|
56
|
-
"@memberjunction/
|
|
57
|
-
"@memberjunction/
|
|
58
|
-
"@memberjunction/
|
|
59
|
-
"@memberjunction/sqlserver-dataprovider": "2.112.0",
|
|
54
|
+
"@memberjunction/ai-cli": "2.113.1",
|
|
55
|
+
"@memberjunction/codegen-lib": "2.113.1",
|
|
56
|
+
"@memberjunction/db-auto-doc": "2.113.1",
|
|
57
|
+
"@memberjunction/metadata-sync": "2.113.1",
|
|
58
|
+
"@memberjunction/sqlserver-dataprovider": "2.113.1",
|
|
60
59
|
"@oclif/core": "^3",
|
|
61
60
|
"@oclif/plugin-help": "^6",
|
|
62
61
|
"@oclif/plugin-version": "^2.0.17",
|