npm-workspaces-publish-tool 0.0.6 → 0.0.7

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-workspaces-publish-tool",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "An unopinionated tool to assist publishing of npm based mono-repo workspaces",
5
5
  "main": "build/src/cli.js",
6
6
  "type": "module",
package/build/src/cli.js CHANGED
@@ -501,7 +501,7 @@ function replaceWorkspaceDepsWithVersions(packageInfos, packagesToUpdate) {
501
501
  const pkgInfo = packageInfos[pkgName];
502
502
  const packageJsonPath = pkgInfo.packageJsonPath;
503
503
  const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
504
- originals.set(pkgName, JSON.stringify(packageJson));
504
+ originals.set(pkgName, JSON.stringify(packageJson, null, 4));
505
505
  let changed = false;
506
506
  for (const depType of dependancyTypes) {
507
507
  const deps = packageJson[depType];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-workspaces-publish-tool",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "An unopinionated tool to assist publishing of npm based mono-repo workspaces",
5
5
  "main": "build/src/cli.js",
6
6
  "type": "module",