rman 0.36.1 → 0.36.3
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.
|
@@ -39,9 +39,7 @@ class PublishCommand extends run_command_js_1.RunCommand {
|
|
|
39
39
|
? `No publish needed. Version (${ansi_colors_1.default.magenta(p.version)}) same in repository`
|
|
40
40
|
: `Publishing is possible.` +
|
|
41
41
|
` Version "${ansi_colors_1.default.magenta(p.version)}" differs from version in repository (${ansi_colors_1.default.magenta(fetchedVersion)})`);
|
|
42
|
-
if (
|
|
43
|
-
return;
|
|
44
|
-
if (fetchedVersion === p.version) {
|
|
42
|
+
if (!sameVersion) {
|
|
45
43
|
selectedPackages.push(p);
|
|
46
44
|
}
|
|
47
45
|
})
|
|
@@ -55,7 +53,10 @@ class PublishCommand extends run_command_js_1.RunCommand {
|
|
|
55
53
|
}));
|
|
56
54
|
}
|
|
57
55
|
await Promise.all(promises);
|
|
58
|
-
|
|
56
|
+
if (this.options.checkOnly)
|
|
57
|
+
npmlog_1.default.verbose(this.commandName, '', npmlog_1.default.separator, `${selectedPackages.length} packages can be be published`);
|
|
58
|
+
else
|
|
59
|
+
npmlog_1.default.verbose(this.commandName, '', npmlog_1.default.separator, `${selectedPackages.length} packages will be published`);
|
|
59
60
|
selectedPackages.forEach(p => {
|
|
60
61
|
p.json.scripts = p.json.scripts || {};
|
|
61
62
|
p.json.scripts.publish = '#';
|
|
@@ -75,7 +76,7 @@ class PublishCommand extends run_command_js_1.RunCommand {
|
|
|
75
76
|
cwd = path_1.default.join(pkg.dirname, contents);
|
|
76
77
|
}
|
|
77
78
|
const npmHelper = new npm_utils_js_1.NpmHelper({ cwd: pkg.dirname, userconfig: this.options.userconfig });
|
|
78
|
-
return super._exec(pkg, '
|
|
79
|
+
return super._exec(pkg, 'npm publish' +
|
|
79
80
|
(this.options.access ? ' --access=' + this.options.access : '') +
|
|
80
81
|
(npmHelper.userconfig ? ` --userconfig="${npmHelper.userconfig}"` : ''), {
|
|
81
82
|
...args,
|
|
@@ -35,9 +35,7 @@ export class PublishCommand extends RunCommand {
|
|
|
35
35
|
? `No publish needed. Version (${colors.magenta(p.version)}) same in repository`
|
|
36
36
|
: `Publishing is possible.` +
|
|
37
37
|
` Version "${colors.magenta(p.version)}" differs from version in repository (${colors.magenta(fetchedVersion)})`);
|
|
38
|
-
if (
|
|
39
|
-
return;
|
|
40
|
-
if (fetchedVersion === p.version) {
|
|
38
|
+
if (!sameVersion) {
|
|
41
39
|
selectedPackages.push(p);
|
|
42
40
|
}
|
|
43
41
|
})
|
|
@@ -51,7 +49,10 @@ export class PublishCommand extends RunCommand {
|
|
|
51
49
|
}));
|
|
52
50
|
}
|
|
53
51
|
await Promise.all(promises);
|
|
54
|
-
|
|
52
|
+
if (this.options.checkOnly)
|
|
53
|
+
logger.verbose(this.commandName, '', logger.separator, `${selectedPackages.length} packages can be be published`);
|
|
54
|
+
else
|
|
55
|
+
logger.verbose(this.commandName, '', logger.separator, `${selectedPackages.length} packages will be published`);
|
|
55
56
|
selectedPackages.forEach(p => {
|
|
56
57
|
p.json.scripts = p.json.scripts || {};
|
|
57
58
|
p.json.scripts.publish = '#';
|
|
@@ -71,7 +72,7 @@ export class PublishCommand extends RunCommand {
|
|
|
71
72
|
cwd = path.join(pkg.dirname, contents);
|
|
72
73
|
}
|
|
73
74
|
const npmHelper = new NpmHelper({ cwd: pkg.dirname, userconfig: this.options.userconfig });
|
|
74
|
-
return super._exec(pkg, '
|
|
75
|
+
return super._exec(pkg, 'npm publish' +
|
|
75
76
|
(this.options.access ? ' --access=' + this.options.access : '') +
|
|
76
77
|
(npmHelper.userconfig ? ` --userconfig="${npmHelper.userconfig}"` : ''), {
|
|
77
78
|
...args,
|