Skip to content

Conversation

@ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Dec 14, 2021

Part of #3742

This switches git-utils from CommonJS to pure ES modules.


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅
@ehmicky ehmicky added the type: chore work needed to keep the product and development running smoothly label Dec 14, 2021
@ehmicky ehmicky self-assigned this Dec 14, 2021
@@ -1,10 +1,8 @@
'use strict'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file must be .mjs due to ava not working well in monorepos mixing CommonJS and ESM packages. Once all packages of this monorepos are switched to ESM, this file can be renamed to .js and this comment can be removed.


test('Should define all its methods and properties', (t) => {
const git = getGitUtils(DEFAULT_OPTS)
// eslint-disable-next-line fp/no-mutating-methods
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ehmicky ehmicky force-pushed the chore/git-utils-esm branch 2 times, most recently from 307f157 to d7ad013 Compare December 15, 2021 15:25
@ehmicky ehmicky force-pushed the chore/git-utils-esm branch from d7ad013 to 7237b00 Compare December 15, 2021 17:13
@kodiakhq kodiakhq bot merged commit 59a9189 into main Dec 15, 2021
@kodiakhq kodiakhq bot deleted the chore/git-utils-esm branch December 15, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge type: chore work needed to keep the product and development running smoothly

3 participants