You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is a bug or maybe a future feature: using a config that is in the ESM format leads to errors:
❯ npm run release
> @davidsneighbour/kollitsch-dev@2024.1.32 release
> npm run release:patch
> @davidsneighbour/kollitsch-dev@2024.1.32 release:patch
> commit-and-tag-version --release-as patch --sign -a -t "v" --releaseCommitMessageFormat "chore(release): v{{currentTag}}"&& ./bin/repo/hooks/postrelease
/home/patrick/github.com/davidsneighbour/kollitsch.dev/node_modules/commit-and-tag-version/lib/configuration.js:20
const jsConfiguration = require(configPath);
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/patrick/github.com/davidsneighbour/kollitsch.dev/.versionrc.js from /home/patrick/github.com/davidsneighbour/kollitsch.dev/node_modules/commit-and-tag-version/lib/configuration.js not supported.
Instead change the require of .versionrc.js in /home/patrick/github.com/davidsneighbour/kollitsch.dev/node_modules/commit-and-tag-version/lib/configuration.js to a dynamic import() which is available in all CommonJS modules.
at module.exports.getConfiguration (/home/patrick/github.com/davidsneighbour/kollitsch.dev/node_modules/commit-and-tag-version/lib/configuration.js:20:29)
at Object.<anonymous> (/home/patrick/github.com/davidsneighbour/kollitsch.dev/node_modules/commit-and-tag-version/command.js:153:11) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v20.12.2
Does the package understand the config in ESM format and if not is it possible to add this as a feature?
The text was updated successfully, but these errors were encountered:
I don't know if this is a bug or maybe a future feature: using a config that is in the ESM format leads to errors:
Does the package understand the config in ESM format and if not is it possible to add this as a feature?
The text was updated successfully, but these errors were encountered: