@oneblink/release-cli 3.0.0 → 3.0.2

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,5 +1,4 @@
1
1
  import fs from 'fs';
2
- import path from 'path';
3
2
  import util from 'util';
4
3
  import prettier from 'prettier';
5
4
  import semver from 'semver';
@@ -8,7 +7,6 @@ import wrapWithLoading from './wrapWithLoading.js';
8
7
  import executeCommand from './executeCommand.js';
9
8
  import parseChangelogWithLoading from './parseChangelogWithLoading.js';
10
9
  import getPreRelease from './getPreRelease.js';
11
- const readFileAsync = util.promisify(fs.readFile);
12
10
  const writeFileAsync = util.promisify(fs.writeFile);
13
11
  const UNRELEASED_VERSION_INDEX = 0;
14
12
  const GIT_TAG_PREFIX = 'v';
@@ -68,14 +66,6 @@ ${dependenciesChangelog.entries}
68
66
  startText: `Updating CHANGELOG.md with next release (${nextReleaseTitle})`,
69
67
  failText: `Failed to update CHANGELOG.md with next release (${nextReleaseTitle})`,
70
68
  }, async (spinner) => {
71
- let prettierOptions = {};
72
- try {
73
- const s = await readFileAsync(path.join(repositoryPlugin.cwd, '.prettierrc'), 'utf-8');
74
- prettierOptions = JSON.parse(s);
75
- }
76
- catch (error) {
77
- // ignore errors attempting to find prettier configuration
78
- }
79
69
  const changelog = await prettier.format(`
80
70
  # ${parsedChangelog.title}
81
71
 
@@ -101,7 +91,6 @@ ${body}
101
91
  `;
102
92
  })
103
93
  .join('')}`, {
104
- ...prettierOptions,
105
94
  parser: 'markdown',
106
95
  });
107
96
  await writeFileAsync(changelogPath, changelog, 'utf-8');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oneblink/release-cli",
3
3
  "description": "Used internally by OneBlink to release repositories quickly and consistently",
4
- "version": "3.0.0",
4
+ "version": "3.0.2",
5
5
  "author": "OneBlink <developers@oneblink> (https://github.com/oneblink)",
6
6
  "bin": {
7
7
  "oneblink-release": "dist/bin.js"
@@ -43,6 +43,7 @@
43
43
  "eslint-config-prettier": "^9.0.0",
44
44
  "eslint-plugin-prettier": "^5.0.1",
45
45
  "jest": "^29.7.0",
46
+ "prettier-plugin-jsdoc": "^1.1.1",
46
47
  "ts-jest": "^29.1.1",
47
48
  "typescript": "^5.2.2"
48
49
  },