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!: publish as esm-only #71

Merged
merged 4 commits into from
Oct 19, 2022
Merged

feat!: publish as esm-only #71

merged 4 commits into from
Oct 19, 2022

Conversation

achingbrain
Copy link
Member

Following on from the conversation in ipld/ipld#224 this converts this repo to use the latest aegir with Unified CI.

  1. Remove all build related dev deps apart from aegir
  2. Run the npx aegir check-project command to update project config
  3. Remove non-Unified-CI github actions
  4. Update imports to import from src/index.js instead of @ipld/dag-pb
  5. Rename test/*.js to test/*.spec.js so aegir can find them
  6. Update tsconfig.json to extend config from aegir
  7. Remove "main" and other unused fields from package.json
  8. Use chai from aegir pre-configured with plugins we use
  9. Fixes everything the linter complains about

This will need a follow up PR to protocol/.github to add this repo to the Unified CI config file so it'll get automated config updates in the future.

Apologies that this PR is so noisy, most of it is from the check-project command

Following on from the conversation in ipld/ipld#224 this converts this repo to use the latest aegir with Unified CI.

1. Remove all build related dev deps apart from `aegir`
1. Run the `npx aegir check-project` command to update project config
1. Remove non-Unified-CI github actions
1. Update imports to import from `src/index.js` instead of `@ipld/dag-pb`
1. Rename `test/*.js` to `test/*.spec.js` so aegir can find them
1. Update `tsconfig.json` to extend config from `aegir`
1. Remove `"main"` and other unused fields from `package.json`
1. Use `chai` from `aegir` pre-configured with plugins we use
1. Fixes everything the linter complains about

This will need a follow up PR to `protocol/.github` to add this repo to the Unified CI [config file](https://github.com/protocol/.github/blob/master/configs/js.json) so it'll get automated config
updates in the future.

Apologies that this PR is so noisy, most of it is from the `check-project` command
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

👌 nice work

@achingbrain
Copy link
Member Author

achingbrain commented Oct 18, 2022

src/index.js Outdated Show resolved Hide resolved
Co-authored-by: Rod Vagg <rod@vagg.org>
@achingbrain achingbrain merged commit 807fdd4 into master Oct 19, 2022
@achingbrain achingbrain deleted the feat/publish-as-esm-only branch October 19, 2022 09:49
github-actions bot pushed a commit that referenced this pull request Oct 19, 2022
## [8.0.0](v7.0.3...v8.0.0) (2022-10-19)

### ⚠ BREAKING CHANGES

* publish as esm-only (#71)

### Features

* publish as esm-only ([#71](#71)) ([807fdd4](807fdd4))

### Trivial Changes

* **no-release:** bump actions/setup-node from 3.4.1 to 3.5.0 ([#68](#68)) ([4716850](4716850))
* **no-release:** bump actions/setup-node from 3.5.0 to 3.5.1 ([#70](#70)) ([14f9cdc](14f9cdc))
@github-actions
Copy link

🎉 This PR is included in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants