balena-deploy-request 0.8.1-remove-codeowners-f08bf84f2fd9f17f1242e7e056330b953113cf98 → 0.8.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.
- package/CHANGELOG.md +5 -0
- package/package.json +2 -2
- package/src/index.js +10 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
# v0.8.2
|
|
8
|
+
## (2022-04-21)
|
|
9
|
+
|
|
10
|
+
* Allow specifying a package name for when there is no package.json [Pagan Gazzard]
|
|
11
|
+
|
|
7
12
|
# v0.8.1
|
|
8
13
|
## (2021-07-06)
|
|
9
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-deploy-request",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "A simple script for generating deploy requests along with release notes",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"prettier": "^1.17.1"
|
|
36
36
|
},
|
|
37
37
|
"versionist": {
|
|
38
|
-
"publishedAt": "
|
|
38
|
+
"publishedAt": "2022-04-21T15:25:45.091Z"
|
|
39
39
|
}
|
|
40
40
|
}
|
package/src/index.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const { git, gitMultilineResults, toTitleCase } = require('./utils');
|
|
3
3
|
|
|
4
|
-
let packageName;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
let packageName = process.argv[2];
|
|
5
|
+
if (!packageName) {
|
|
6
|
+
try {
|
|
7
|
+
packageName = JSON.parse(fs.readFileSync('./package.json').toString()).name;
|
|
8
|
+
} catch (e) {
|
|
9
|
+
console.error(
|
|
10
|
+
`No 'package.json' found, you can manually specify a package name as the first argument`,
|
|
11
|
+
);
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
const packageNameAliases = {
|