diff --git a/build.js b/build.js index 8300721..c0d8cdb 100644 --- a/build.js +++ b/build.js @@ -1,5 +1,4 @@ -const child_process = require("child_process"); -const spawn = child_process.spawn; +import { spawn } from 'child_process'; // TODO: promisify cmd function cmd(program, args) { diff --git a/package.json b/package.json index 05149f7..5e87f1f 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "description": "Simple website that generates animated BTTV emotes from static images", "main": "index.js", + "type": "module", "scripts": { "build": "node build.js", "watch": "node build.js watch",