Skip to content

Commit

Permalink
Fix: identation for modified package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Dec 1, 2023
1 parent 9df7d5a commit 65695de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function prepare(pluginConfig, { logger, nextRelease } = {}
const packageContent = await fs.readJSON(this.verified.packageJSONPath);

packageContent.version = next;
await fs.writeJSON(this.verified.packageJSONPath, packageContent);
await fs.writeJSON(this.verified.packageJSONPath, packageContent, { spaces: 2 });
logger.log(`package.json version updated to ${next}`);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/package/prepare.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ test('Positive: update package.json', async function () {
assert.notExists(logger.messages.find(m => m.message.includes(bundlename)));

assert.deepOwnInclude(
await fs.readJSON(path.join(path.resolve(packageBundle), 'package.json')),
await fs.readJSON(path.resolve(packageBundle, 'package.json')),
{ version: '1.3.0' }
);
});
Expand Down

0 comments on commit 65695de

Please sign in to comment.