Skip to content

[diff] Add ESM entrypoint#69537

Merged
typescript-bot merged 2 commits intoDefinitelyTyped:masterfrom
andrewbranch:attw/diff
May 6, 2024
Merged

[diff] Add ESM entrypoint#69537
typescript-bot merged 2 commits intoDefinitelyTyped:masterfrom
andrewbranch:attw/diff

Conversation

@andrewbranch
Copy link
Member

Please fill in this template.

@typescript-bot
Copy link
Contributor

typescript-bot commented May 6, 2024

@andrewbranch Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners or DT maintainers

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 69537,
  "author": "andrewbranch",
  "headCommitOid": "4c9b00b5e7a47c70691a6f101ac07ee903aafc8f",
  "mergeBaseOid": "ce432dd83521beac5e46b4e82cdc1d86d963518a",
  "lastPushDate": "2024-05-06T18:17:53.000Z",
  "lastActivityDate": "2024-05-06T18:58:26.000Z",
  "mergeOfferDate": "2024-05-06T18:23:06.000Z",
  "mergeRequestDate": "2024-05-06T18:58:26.000Z",
  "mergeRequestUser": "andrewbranch",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": null,
      "kind": "edit",
      "files": [
        {
          "path": "attw.json",
          "kind": "infrastructure"
        }
      ],
      "owners": [],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical",
      "isSafeInfrastructureEdit": true
    },
    {
      "name": "diff",
      "kind": "edit",
      "files": [
        {
          "path": "types/diff/diff-tests.mts",
          "kind": "test"
        },
        {
          "path": "types/diff/index.d.mts",
          "kind": "definition"
        },
        {
          "path": "types/diff/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/diff/tsconfig.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "vvakame",
        "szdc",
        "BendingBender",
        "peterblazejewicz"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "jakebailey",
      "date": "2024-05-06T18:22:28.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 2096639421,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label May 6, 2024
@typescript-bot
Copy link
Contributor

🔔 @vvakame @szdc @BendingBender @peterblazejewicz — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@@ -0,0 +1 @@
export * from "./index.js";
Copy link
Member Author

Choose a reason for hiding this comment

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

index.mjs is actually a duplicated bundle, but re-exporting instead of duplicating types is the better tradeoff for now

"import": "./index.d.mts",
"require": "./index.d.ts"
},
"./package.json": "./package.json"
Copy link
Member Author

Choose a reason for hiding this comment

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

diff also exposes "./*", but I didn’t handle that for now since the types have never exposed individual files.

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels May 6, 2024
@typescript-bot
Copy link
Contributor

@andrewbranch: Everything looks good here. I am ready to merge this PR (at 4c9b00b) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@vvakame, @szdc, @BendingBender, @peterblazejewicz: you can do this too.)

@andrewbranch
Copy link
Member Author

Ready to merge

@typescript-bot typescript-bot merged commit 8a39fd7 into DefinitelyTyped:master May 6, 2024
@andrewbranch andrewbranch deleted the attw/diff branch May 6, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintainer Approved Popular package This PR affects a popular package (as counted by NPM download counts). Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants