npm-update-package 0.20.1 → 0.21.0
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 +0 -27
- package/dist/app.js +1 -1
- package/dist/github/PullRequestBodyCreator.js +9 -2
- package/dist/main.js +1 -1
- package/dist/options/Options.js +0 -1
- package/dist/options/cliOptions.js +0 -14
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -73,33 +73,6 @@ Package manager of your project
|
|
|
73
73
|
- required: false
|
|
74
74
|
- default: `npm`
|
|
75
75
|
|
|
76
|
-
### `--pull-request-body`
|
|
77
|
-
|
|
78
|
-
Pull request body template
|
|
79
|
-
|
|
80
|
-
- type: string
|
|
81
|
-
- variables:
|
|
82
|
-
- `appName`
|
|
83
|
-
- `appVersion`
|
|
84
|
-
- `appWeb`
|
|
85
|
-
- `currentVersion`
|
|
86
|
-
- `newVersion`
|
|
87
|
-
- `packageName`
|
|
88
|
-
- `updateType`
|
|
89
|
-
- required: false
|
|
90
|
-
- default:
|
|
91
|
-
|
|
92
|
-
```
|
|
93
|
-
This PR updates these packages:
|
|
94
|
-
|
|
95
|
-
|package|type|current version|new version|
|
|
96
|
-
|---|---|---|---|
|
|
97
|
-
|[{{{packageName}}}](https://www.npmjs.com/package/{{{packageName}}})|{{updateType}}|\`{{currentVersion}}\`|\`{{newVersion}}\`|
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
This PR has been generated by [{{{appName}}}]({{{appWeb}}}) v{{appVersion}}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
76
|
### `--pull-request-labels`
|
|
104
77
|
|
|
105
78
|
Pull request labels
|
package/dist/app.js
CHANGED
|
@@ -4,8 +4,15 @@ exports.PullRequestBodyCreator = void 0;
|
|
|
4
4
|
const mustache_1 = require("mustache");
|
|
5
5
|
const app_1 = require("../app");
|
|
6
6
|
class PullRequestBodyCreator {
|
|
7
|
-
constructor(
|
|
8
|
-
this.template =
|
|
7
|
+
constructor() {
|
|
8
|
+
this.template = `This PR updates these packages:
|
|
9
|
+
|
|
10
|
+
|package|type|current version|new version|
|
|
11
|
+
|---|---|---|---|
|
|
12
|
+
|[{{{packageName}}}](https://www.npmjs.com/package/{{{packageName}}})|{{updateType}}|\`{{currentVersion}}\`|\`{{newVersion}}\`|
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
This PR has been generated by [{{{appName}}}]({{{appWeb}}}) v{{appVersion}}`;
|
|
9
16
|
}
|
|
10
17
|
create(outdatedPackage) {
|
|
11
18
|
const appName = app_1.app.name;
|
package/dist/main.js
CHANGED
|
@@ -56,7 +56,7 @@ const main = async ({ options, logger }) => {
|
|
|
56
56
|
packageManager: options.packageManager
|
|
57
57
|
});
|
|
58
58
|
const pullRequestTitleCreator = new github_1.PullRequestTitleCreator(options.pullRequestTitle);
|
|
59
|
-
const pullRequestBodyCreator = new github_1.PullRequestBodyCreator(
|
|
59
|
+
const pullRequestBodyCreator = new github_1.PullRequestBodyCreator();
|
|
60
60
|
const pullRequestCreator = new github_1.PullRequestCreator({
|
|
61
61
|
github,
|
|
62
62
|
gitRepo,
|
package/dist/options/Options.js
CHANGED
|
@@ -11,7 +11,6 @@ const Options = (0, io_ts_1.intersection)([
|
|
|
11
11
|
githubToken: io_ts_1.string,
|
|
12
12
|
logLevel: (0, io_ts_1.union)([(0, io_ts_1.literal)(logger_1.LogLevel.Off), (0, io_ts_1.literal)(logger_1.LogLevel.Error), (0, io_ts_1.literal)(logger_1.LogLevel.Info), (0, io_ts_1.literal)(logger_1.LogLevel.Debug)]),
|
|
13
13
|
packageManager: (0, io_ts_1.union)([(0, io_ts_1.literal)(package_manager_1.PackageManagerName.Npm), (0, io_ts_1.literal)(package_manager_1.PackageManagerName.Yarn)]),
|
|
14
|
-
pullRequestBody: io_ts_1.string,
|
|
15
14
|
pullRequestTitle: io_ts_1.string
|
|
16
15
|
}),
|
|
17
16
|
(0, io_ts_1.partial)({
|
|
@@ -49,20 +49,6 @@ exports.cliOptions = [
|
|
|
49
49
|
],
|
|
50
50
|
default: package_manager_1.PackageManagerName.Npm
|
|
51
51
|
},
|
|
52
|
-
{
|
|
53
|
-
name: 'pull-request-body',
|
|
54
|
-
description: 'Pull request body template',
|
|
55
|
-
type: OptionType_1.OptionType.String,
|
|
56
|
-
required: false,
|
|
57
|
-
default: `This PR updates these packages:
|
|
58
|
-
|
|
59
|
-
|package|type|current version|new version|
|
|
60
|
-
|---|---|---|---|
|
|
61
|
-
|[{{{packageName}}}](https://www.npmjs.com/package/{{{packageName}}})|{{updateType}}|\`{{currentVersion}}\`|\`{{newVersion}}\`|
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
This PR has been generated by [{{{appName}}}]({{{appWeb}}}) v{{appVersion}}`
|
|
65
|
-
},
|
|
66
52
|
{
|
|
67
53
|
name: 'pull-request-labels',
|
|
68
54
|
description: 'Pull request labels',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "CLI tool for creating pull request to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@octokit/rest": "18.12.0",
|
|
21
21
|
"commander": "8.3.0",
|
|
22
22
|
"execa": "5.1.1",
|
|
23
|
-
"fp-ts": "2.11.
|
|
23
|
+
"fp-ts": "2.11.6",
|
|
24
24
|
"io-ts": "2.2.16",
|
|
25
25
|
"log4js": "6.3.0",
|
|
26
26
|
"mustache": "4.1.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@types/node": "12.20.40",
|
|
38
38
|
"@types/parse-github-url": "1.0.0",
|
|
39
39
|
"@types/semver": "7.3.9",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
41
|
-
"eslint": "8.
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "5.9.0",
|
|
41
|
+
"eslint": "8.6.0",
|
|
42
42
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
43
43
|
"eslint-plugin-import": "2.25.4",
|
|
44
44
|
"eslint-plugin-jest": "25.3.4",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-promise": "6.0.0",
|
|
47
47
|
"eslint-plugin-tsdoc": "0.2.14",
|
|
48
48
|
"husky": "7.0.4",
|
|
49
|
-
"jest": "27.4.
|
|
49
|
+
"jest": "27.4.6",
|
|
50
50
|
"lint-staged": "12.1.5",
|
|
51
51
|
"npm-run-all": "4.1.5",
|
|
52
52
|
"rimraf": "3.0.2",
|