Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: octokit/plugin-throttling.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.0.2
Choose a base ref
...
head repository: octokit/plugin-throttling.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.0.3
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 1, 2024

  1. fix(pkg): add main field (#678)

    * fix(pkg): add `main` field
    
    Some tools don't play well with only having the `exports` field present.
    See octokit/core.js#662
    
    * maint: add comment
    wolfy1339 authored Mar 1, 2024
    Copy the full SHA
    f151af4 View commit details
Showing with 5 additions and 0 deletions.
  1. +5 −0 scripts/build.mjs
5 changes: 5 additions & 0 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
@@ -61,6 +61,11 @@ async function main() {
{
...pkg,
files: ["dist-*/**", "bin/**"],
// Tooling currently are having issues with the "exports" field, ex: TypeScript, eslint
// We add a `main` and `types` field to the package.json for the time being
// See https://github.com/octokit/core.js/pulls/662
main: "dist-bundle/index.js",
types: "dist-types/index.d.ts",
exports: {
".": {
types: "./dist-types/index.d.ts",