rman 0.2.0 → 0.2.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.
|
@@ -100,7 +100,7 @@ class VersionCommand extends run_command_1.RunCommand {
|
|
|
100
100
|
const newVer = newVersions[pkg.name];
|
|
101
101
|
pkg.json.version = newVer;
|
|
102
102
|
const f = path_1.default.join(pkg.dirname, 'package.json');
|
|
103
|
-
const data = JSON.stringify(pkg.json, undefined,
|
|
103
|
+
const data = JSON.stringify(pkg.json, undefined, 2);
|
|
104
104
|
fs_1.default.writeFileSync(f, data, 'utf-8');
|
|
105
105
|
npmlog_1.default.info(this.commandName, chalk_1.default.gray(figures_1.default.lineVerticalDashed0), pkg.name, chalk_1.default.gray(figures_1.default.lineVerticalDashed0), 'Version changed from ' + chalk_1.default.cyan(oldVer) + ' to ' + chalk_1.default.cyan(newVer));
|
|
106
106
|
return { code: 0 };
|
|
@@ -94,7 +94,7 @@ export class VersionCommand extends RunCommand {
|
|
|
94
94
|
const newVer = newVersions[pkg.name];
|
|
95
95
|
pkg.json.version = newVer;
|
|
96
96
|
const f = path.join(pkg.dirname, 'package.json');
|
|
97
|
-
const data = JSON.stringify(pkg.json, undefined,
|
|
97
|
+
const data = JSON.stringify(pkg.json, undefined, 2);
|
|
98
98
|
fs.writeFileSync(f, data, 'utf-8');
|
|
99
99
|
logger.info(this.commandName, chalk.gray(figures.lineVerticalDashed0), pkg.name, chalk.gray(figures.lineVerticalDashed0), 'Version changed from ' + chalk.cyan(oldVer) + ' to ' + chalk.cyan(newVer));
|
|
100
100
|
return { code: 0 };
|