Skip to content

Commit

Permalink
fix(esm): convert the entrypoint to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jul 19, 2024
1 parent 7ce4507 commit 36df562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/github/webhooks/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { createNodeMiddleware, createProbot } = require('probot')
import { createNodeMiddleware, createProbot } from 'probot'

const app = require('../../../')
import app from '../../../index.js'

module.exports = createNodeMiddleware(app, {
export default createNodeMiddleware(app, {
probot: createProbot(),
webhooksPath: '/api/github/webhooks'
})

0 comments on commit 36df562

Please sign in to comment.