Skip to content

Commit

Permalink
fix(voice): re-add accidental removal of postbuild script
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Jun 4, 2022
1 parent f2ae1f9 commit f8739bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/voice/scripts/postbuild.mjs
Original file line number Diff line number Diff line change
@@ -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}`,
);

0 comments on commit f8739bd

Please sign in to comment.