diff --git a/package.json b/package.json index a7337c8..8d1687d 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,9 @@ "dist/*" ], "scripts": { - "build": "esbuild src/index.js --minify --bundle --format=esm --target=esnext --outfile=dist/index.js", - "build:es6": "esbuild src/index.js --minify --bundle --format=esm --target=es6 --outfile=dist/index.es6.js" + "build:next": "esbuild src/index.js --minify --bundle --format=esm --target=esnext --outfile=dist/index.js", + "build:es6": "esbuild src/index.js --minify --bundle --format=esm --target=es6 --outfile=dist/index.es6.js", + "build": "npm run build:next && npm run build:es6" }, "repository": { "type": "git",