semantic-release 20.0.3 → 20.0.4
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/bin/semantic-release.js +1 -1
- package/lib/plugins/utils.js +8 -3
- package/package.json +1 -1
package/bin/semantic-release.js
CHANGED
|
@@ -25,7 +25,7 @@ See https://github.com/semantic-release/semantic-release/blob/master/docs/suppor
|
|
|
25
25
|
|
|
26
26
|
execa("git", ["--version"])
|
|
27
27
|
.then(({ stdout }) => {
|
|
28
|
-
const gitVersion = findVersions(stdout)[0];
|
|
28
|
+
const gitVersion = findVersions(stdout, { loose: true })[0];
|
|
29
29
|
if (lt(gitVersion, MIN_GIT_VERSION)) {
|
|
30
30
|
console.error(`[semantic-release]: Git version ${MIN_GIT_VERSION} is required. Found ${gitVersion}.`);
|
|
31
31
|
process.exit(1);
|
package/lib/plugins/utils.js
CHANGED
|
@@ -52,9 +52,14 @@ export async function loadPlugin({cwd}, name, pluginsPath) {
|
|
|
52
52
|
? dirname(resolveFrom.silent(__dirname, pluginsPath[name]) || resolveFrom(cwd, pluginsPath[name]))
|
|
53
53
|
: __dirname;
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
if (!isFunction(name)) {
|
|
56
|
+
const file = resolveFrom.silent(basePath, name) || resolveFrom(cwd, name);
|
|
57
|
+
// See https://github.com/mysticatea/eslint-plugin-node/issues/250
|
|
58
|
+
// eslint-disable-next-line node/no-unsupported-features/es-syntax
|
|
59
|
+
name = (await import(`file://${file}`)).default;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return name;
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
export function parseConfig(plugin) {
|
package/package.json
CHANGED