rman 0.10.0 → 0.12.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/bin/rman.js
CHANGED
|
@@ -20,12 +20,22 @@ class PublishCommand extends run_command_1.RunCommand {
|
|
|
20
20
|
const selectedPackages = [];
|
|
21
21
|
for (const p of packages) {
|
|
22
22
|
const logPkgName = chalk_1.default.yellow(p.name);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (r.version === p.version) {
|
|
26
|
-
npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Ignored. Same version (${p.version}) in repository`);
|
|
23
|
+
if (p.json.private) {
|
|
24
|
+
npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Ignored. Package is set to "private"`);
|
|
27
25
|
continue;
|
|
28
26
|
}
|
|
27
|
+
npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Fetching package information from repository`);
|
|
28
|
+
try {
|
|
29
|
+
const r = await (0, package_json_1.default)(p.json.name);
|
|
30
|
+
if (r.version === p.version) {
|
|
31
|
+
npmlog_1.default.info(this.commandName, logPkgName, npmlog_1.default.separator, `Ignored. Same version (${p.version}) in repository`);
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
if (e.name !== 'PackageNotFoundError')
|
|
37
|
+
throw e;
|
|
38
|
+
}
|
|
29
39
|
selectedPackages.push(p);
|
|
30
40
|
}
|
|
31
41
|
return super._prepareTasks(selectedPackages, { newVersions });
|
|
@@ -129,9 +129,7 @@ RunCommand.commandName = 'run';
|
|
|
129
129
|
if (args.script && runCfg && typeof runCfg === 'object') {
|
|
130
130
|
['parallel', 'bail', 'progress'].forEach(n => {
|
|
131
131
|
if (typeof runCfg[n] === 'string') {
|
|
132
|
-
|
|
133
|
-
args[n] = true;
|
|
134
|
-
}
|
|
132
|
+
runCfg[n] = runCfg[n].split(/\s*,\s*/).includes(args.script);
|
|
135
133
|
}
|
|
136
134
|
});
|
|
137
135
|
}
|
package/cjs/debug.js
CHANGED
|
@@ -14,12 +14,22 @@ export class PublishCommand extends RunCommand {
|
|
|
14
14
|
const selectedPackages = [];
|
|
15
15
|
for (const p of packages) {
|
|
16
16
|
const logPkgName = chalk.yellow(p.name);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (r.version === p.version) {
|
|
20
|
-
logger.info(this.commandName, logPkgName, logger.separator, `Ignored. Same version (${p.version}) in repository`);
|
|
17
|
+
if (p.json.private) {
|
|
18
|
+
logger.info(this.commandName, logPkgName, logger.separator, `Ignored. Package is set to "private"`);
|
|
21
19
|
continue;
|
|
22
20
|
}
|
|
21
|
+
logger.info(this.commandName, logPkgName, logger.separator, `Fetching package information from repository`);
|
|
22
|
+
try {
|
|
23
|
+
const r = await fetchPackageInfo(p.json.name);
|
|
24
|
+
if (r.version === p.version) {
|
|
25
|
+
logger.info(this.commandName, logPkgName, logger.separator, `Ignored. Same version (${p.version}) in repository`);
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
if (e.name !== 'PackageNotFoundError')
|
|
31
|
+
throw e;
|
|
32
|
+
}
|
|
23
33
|
selectedPackages.push(p);
|
|
24
34
|
}
|
|
25
35
|
return super._prepareTasks(selectedPackages, { newVersions });
|
|
@@ -122,9 +122,7 @@ RunCommand.commandName = 'run';
|
|
|
122
122
|
if (args.script && runCfg && typeof runCfg === 'object') {
|
|
123
123
|
['parallel', 'bail', 'progress'].forEach(n => {
|
|
124
124
|
if (typeof runCfg[n] === 'string') {
|
|
125
|
-
|
|
126
|
-
args[n] = true;
|
|
127
|
-
}
|
|
125
|
+
runCfg[n] = runCfg[n].split(/\s*,\s*/).includes(args.script);
|
|
128
126
|
}
|
|
129
127
|
});
|
|
130
128
|
}
|
package/esm/debug.mjs
CHANGED