From 87ca814360746ba1d405fd760eec3490a4b28d76 Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 22 Nov 2023 09:12:03 +0700 Subject: [PATCH] [package.json] "type": "module" --- build.js | 3 +-- package.json | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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",