KEMBAR78
Support *.cjs configs · Issue #1814 · semantic-release/semantic-release · GitHub
Skip to content

Support *.cjs configs #1814

@opiation

Description

@opiation

New feature motivation

When attempting to use semantic-release with a ESM-written package ("type": "module") and node with ES modules enabled, a plain release.config.js config fails understandably given the tool is written with require()s. Renaming the config to release.config.cjs does not work as the version of cosmicconfig used by semantic-release does not search for .cjs files. Thus, only the json config options are available.

Updating the cosmicconfig dependency to v7.0.0 would allow one to use semantic-release developing a package implicitly in ES modules (--experimental-modules).

New feature description

Supports *.cjs file extensions like release.config.cjs for configuring semantic-release.

New feature implementation

Update cosmicconfig dependency to v7.0.0 which adds support for *.cjs file extensions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions