Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ES Modules #526

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

feat: ES Modules #526

wants to merge 6 commits into from

Conversation

babblebey
Copy link
Member

This PR converts the plugin to ESM only.

Related to semantic-release/semantic-release#2133

BREAKING CHANGE: @semantic-release/git is now a native ES Module. It has named exports for each plugin hook (verifyConditions, prepare)

This commit updates the code to use ES6 module syntax by replacing the `require` statements with `import` statements. This improves the code readability and maintainability.

Refactor the `index.js` file to use ES6 module syntax

Refactor the `lib/definitions/errors.js` file to use ES6 module syntax

Refactor the `lib/get-error.js` file to use ES6 module syntax

Refactor the `lib/git.js` file to use ES6 module syntax

Refactor the `lib/prepare.js` file to use ES6 module syntax

Refactor the `lib/resolve-config.js` file to use ES6 module syntax

Refactor the `lib/verify.js` file to use ES6 module syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant