diff --git a/package.json b/package.json index 917fe48..2090d46 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,13 @@ "version": "1.0.0", "description": "", "main": "dist/server.js", + "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node .", "dev": "nodemon .", - "build": "esbuild ./src --bundle --minify --platform=node --target=node18 --outfile=dist/server.js" + "build": "npm run clean && esbuild ./src --bundle --minify --platform=node --target=node18 --outfile=dist/server.js", + "clean": "rm -rf dist && mkdir dist" }, "engines": { "node": "18.x"