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.
@@ -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);
@@ -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
- // See https://github.com/mysticatea/eslint-plugin-node/issues/250
56
- // eslint-disable-next-line node/no-unsupported-features/es-syntax
57
- return isFunction(name) ? name : (await import(resolveFrom.silent(basePath, name) || resolveFrom(cwd, name))).default;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "semantic-release",
3
3
  "description": "Automated semver compliant package publishing",
4
- "version": "20.0.3",
4
+ "version": "20.0.4",
5
5
  "type": "module",
6
6
  "author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
7
7
  "ava": {