-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(repo): update semantic-release and related deps
- Loading branch information
Showing
16 changed files
with
1,564 additions
and
849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/node_modules/semantic-release/lib/get-config.js b/node_modules/semantic-release/lib/get-config.js | ||
index 429577e..b75e375 100644 | ||
--- a/node_modules/semantic-release/lib/get-config.js | ||
+++ b/node_modules/semantic-release/lib/get-config.js | ||
@@ -1,6 +1,5 @@ | ||
import { dirname, resolve } from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
-import { createRequire } from "node:module"; | ||
|
||
import { castArray, isNil, isPlainObject, isString, pickBy } from "lodash-es"; | ||
import { readPackageUp } from "read-pkg-up"; | ||
@@ -14,7 +13,6 @@ import { parseConfig, validatePlugin } from "./plugins/utils.js"; | ||
|
||
const debug = debugConfig("semantic-release:config"); | ||
const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
-const require = createRequire(import.meta.url); | ||
|
||
const CONFIG_NAME = "release"; | ||
|
||
@@ -35,7 +33,7 @@ export default async (context, cliOptions) => { | ||
options = { | ||
...(await castArray(extendPaths).reduce(async (eventualResult, extendPath) => { | ||
const result = await eventualResult; | ||
- const extendsOptions = require(resolveFrom.silent(__dirname, extendPath) || resolveFrom(cwd, extendPath)); | ||
+ const extendsOptions = import(resolveFrom.silent(__dirname, extendPath) || resolveFrom(cwd, extendPath)); | ||
|
||
// For each plugin defined in a shareable config, save in `pluginsPath` the extendable config path, | ||
// so those plugin will be loaded relative to the config file |
Oops, something went wrong.