Skip to content

Commit f0e9b87

Browse files
committed
Revert "feat: package is now ESM (#716)"
This reverts commit 6c5bafb.
1 parent 8a45428 commit f0e9b87

12 files changed

+122
-523
lines changed

.github/workflows/update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
token: ${{ secrets.OCTOKITBOT_PAT }}
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 20
21+
node-version: 16
2222
cache: npm
2323
- run: git checkout routes-update || true
2424
- run: npm install @octokit/types@latest

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ Node
3030
Install with `npm install @octokit/core @octokit/plugin-rest-endpoint-methods`. Optionally replace `@octokit/core` with a compatible module
3131

3232
```js
33-
import { Octokit } from "@octokit/core";
34-
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
33+
const { Octokit } = require("@octokit/core");
34+
const {
35+
restEndpointMethods,
36+
} = require("@octokit/plugin-rest-endpoint-methods");
3537
```
3638

3739
</td></tr>

0 commit comments

Comments
 (0)