diff --git a/scripts/notify/index.js b/scripts/notify/index.js index ea911f61a7..e5e9f08c58 100755 --- a/scripts/notify/index.js +++ b/scripts/notify/index.js @@ -1,4 +1,6 @@ -const path = require('path'); +import path from 'path'; +import { createRequire } from 'module'; +const require = createRequire(import.meta.url); const baseUrl = new URL('https://github.com/withastro/astro/blob/main/'); async function run() {