semantic-release 22.0.6 → 22.0.7
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/get-config.js +12 -4
- package/package.json +4 -4
package/lib/get-config.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { dirname,
|
|
1
|
+
import { dirname, extname } from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
3
|
|
|
5
4
|
import { castArray, isNil, isPlainObject, isString, pickBy } from "lodash-es";
|
|
6
5
|
import { readPackageUp } from "read-pkg-up";
|
|
@@ -14,7 +13,6 @@ import { parseConfig, validatePlugin } from "./plugins/utils.js";
|
|
|
14
13
|
|
|
15
14
|
const debug = debugConfig("semantic-release:config");
|
|
16
15
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
17
|
-
const require = createRequire(import.meta.url);
|
|
18
16
|
|
|
19
17
|
const CONFIG_NAME = "release";
|
|
20
18
|
|
|
@@ -35,7 +33,17 @@ export default async (context, cliOptions) => {
|
|
|
35
33
|
options = {
|
|
36
34
|
...(await castArray(extendPaths).reduce(async (eventualResult, extendPath) => {
|
|
37
35
|
const result = await eventualResult;
|
|
38
|
-
const
|
|
36
|
+
const resolvedPath = resolveFrom.silent(__dirname, extendPath) || resolveFrom(cwd, extendPath);
|
|
37
|
+
const importAssertions =
|
|
38
|
+
extname(resolvedPath) === ".json"
|
|
39
|
+
? {
|
|
40
|
+
assert: {
|
|
41
|
+
type: "json",
|
|
42
|
+
},
|
|
43
|
+
}
|
|
44
|
+
: undefined;
|
|
45
|
+
|
|
46
|
+
const { default: extendsOptions } = await import(resolvedPath, importAssertions);
|
|
39
47
|
|
|
40
48
|
// For each plugin defined in a shareable config, save in `pluginsPath` the extendable config path,
|
|
41
49
|
// so those plugin will be loaded relative to the config file
|
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": "22.0.
|
|
4
|
+
"version": "22.0.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
|
|
7
7
|
"ava": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"micromatch": "^4.0.2",
|
|
50
50
|
"p-each-series": "^3.0.0",
|
|
51
51
|
"p-reduce": "^3.0.0",
|
|
52
|
-
"read-pkg-up": "^
|
|
52
|
+
"read-pkg-up": "^11.0.0",
|
|
53
53
|
"resolve-from": "^5.0.0",
|
|
54
54
|
"semver": "^7.3.2",
|
|
55
55
|
"semver-diff": "^4.0.0",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"lockfile-lint": "4.12.1",
|
|
71
71
|
"ls-engines": "0.9.0",
|
|
72
72
|
"mockserver-client": "5.15.0",
|
|
73
|
-
"nock": "13.3.
|
|
73
|
+
"nock": "13.3.8",
|
|
74
74
|
"npm-run-all2": "6.1.1",
|
|
75
75
|
"p-retry": "6.1.0",
|
|
76
76
|
"prettier": "3.0.3",
|
|
77
77
|
"publint": "0.2.5",
|
|
78
|
-
"sinon": "17.0.
|
|
78
|
+
"sinon": "17.0.1",
|
|
79
79
|
"stream-buffers": "3.0.2",
|
|
80
80
|
"tempy": "3.1.0",
|
|
81
81
|
"testdouble": "3.20.0"
|