release-with-ease 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -28,3 +28,11 @@ You can get a key from https://platform.openai.com/api-keys.
28
28
  The script also assumes that your README.md file has a `# Changelog` section.
29
29
 
30
30
  # Changelog
31
+
32
+ ## 1.0.1
33
+
34
+ - Fix path to README and package.json
35
+
36
+ ## 1.0.0
37
+
38
+ - Initial release
@@ -23,9 +23,8 @@ const readline = require('readline');
23
23
  const os = require('os');
24
24
  const crypto = require('crypto');
25
25
 
26
- const repoRoot = path.resolve(__dirname, '..');
27
- const readmePath = path.join(repoRoot, 'README.md');
28
- const packageJsonPath = path.join(repoRoot, 'package.json');
26
+ const readmePath = path.join(process.cwd(), 'README.md');
27
+ const packageJsonPath = path.join(process.cwd(), 'package.json');
29
28
 
30
29
  function run(cmd, opts = {}) {
31
30
  return execSync(cmd, { stdio: 'pipe', encoding: 'utf8', ...opts });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-with-ease",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A script to bump the version of an npm library and update release notes. Uses OpenAI to analyze commits.",
5
5
  "main": "index.js",
6
6
  "bin": {