Skip to content

Commit d558388

Browse files
committed
Replace require with import for Octokit
1 parent 92de755 commit d558388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/get_contributors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require('dotenv').config()
2-
const { Octokit } = require("@octokit/core")
3-
const { throttling } = require("@octokit/plugin-throttling")
2+
import { Octokit } from "@octokit/core";
3+
import { throttling } from "@octokit/plugin-throttling"
44

55
module.exports = async function (filepath) {
66
const unixStyleFilepath = filepath.replace(/\\/g, "/")

0 commit comments

Comments
 (0)