mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
fix(voice): re-add accidental removal of postbuild script
This commit is contained in:
7
packages/voice/scripts/postbuild.mjs
Normal file
7
packages/voice/scripts/postbuild.mjs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { readFile, writeFile } from 'node:fs/promises';
|
||||||
|
|
||||||
|
const data = await readFile('./dist/index.mjs', 'utf-8');
|
||||||
|
await writeFile(
|
||||||
|
'./dist/index.mjs',
|
||||||
|
`import{createRequire as topLevelCreateRequire}from"module";const require=topLevelCreateRequire(import.meta.url);${data}`,
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user