release-it 17.4.1 → 17.4.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/lib/plugin/factory.js +2 -0
- package/lib/plugin/github/GitHub.js +4 -4
- package/lib/shell.js +5 -5
- package/package.json +5 -1
- package/types/config.d.ts +1 -1
package/lib/plugin/factory.js
CHANGED
|
@@ -27,10 +27,12 @@ const load = async pluginName => {
|
|
|
27
27
|
const module = await import(pluginName);
|
|
28
28
|
plugin = module.default;
|
|
29
29
|
} catch (err) {
|
|
30
|
+
debug(err);
|
|
30
31
|
try {
|
|
31
32
|
const module = await import(path.join(process.cwd(), pluginName));
|
|
32
33
|
plugin = module.default;
|
|
33
34
|
} catch (err) {
|
|
35
|
+
debug(err);
|
|
34
36
|
// In some cases or tests we might need to support legacy `require.resolve`
|
|
35
37
|
const require = createRequire(process.cwd());
|
|
36
38
|
const module = await import(url.pathToFileURL(require.resolve(pluginName, { paths: [process.cwd()] })));
|
|
@@ -105,8 +105,8 @@ class GitHub extends Release {
|
|
|
105
105
|
const { data } = await this.client.users.getAuthenticated();
|
|
106
106
|
this.setContext({ username: data.login });
|
|
107
107
|
return true;
|
|
108
|
-
} catch (
|
|
109
|
-
this.debug(
|
|
108
|
+
} catch (err) {
|
|
109
|
+
this.debug(err);
|
|
110
110
|
return false;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -120,8 +120,8 @@ class GitHub extends Release {
|
|
|
120
120
|
this.log.verbose(`octokit repos#checkCollaborator (${username})`);
|
|
121
121
|
await this.client.repos.checkCollaborator(options);
|
|
122
122
|
return true;
|
|
123
|
-
} catch (
|
|
124
|
-
this.debug(
|
|
123
|
+
} catch (err) {
|
|
124
|
+
this.debug(err);
|
|
125
125
|
return false;
|
|
126
126
|
}
|
|
127
127
|
}
|
package/lib/shell.js
CHANGED
|
@@ -78,12 +78,12 @@ class Shell {
|
|
|
78
78
|
this.log.verbose(stdout, { isExternal });
|
|
79
79
|
debug({ command, options, stdout, stderr });
|
|
80
80
|
return Promise.resolve(stdout || stderr);
|
|
81
|
-
} catch (
|
|
82
|
-
if (
|
|
83
|
-
this.log.log(`\n${
|
|
81
|
+
} catch (err) {
|
|
82
|
+
if (err.stdout) {
|
|
83
|
+
this.log.log(`\n${err.stdout}`);
|
|
84
84
|
}
|
|
85
|
-
debug(
|
|
86
|
-
return Promise.reject(new Error(
|
|
85
|
+
debug(err);
|
|
86
|
+
return Promise.reject(new Error(err.stderr || err.message));
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-it",
|
|
3
|
-
"version": "17.4.
|
|
3
|
+
"version": "17.4.2",
|
|
4
4
|
"description": "Generic CLI tool to automate versioning and package publishing-related tasks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -131,6 +131,10 @@
|
|
|
131
131
|
"strip-ansi": "7.1.0",
|
|
132
132
|
"typescript": "5.5.2"
|
|
133
133
|
},
|
|
134
|
+
"overrides": {
|
|
135
|
+
"pac-resolver": "7.0.1",
|
|
136
|
+
"socks": "2.8.3"
|
|
137
|
+
},
|
|
134
138
|
"engines": {
|
|
135
139
|
"node": "^18.18.0 || ^20.9.0 || ^22.0.0"
|
|
136
140
|
},
|