@jrc03c/js-math-tools
Version:
some math tools for JS
25 lines (19 loc) • 515 B
JavaScript
import { execSync } from "node:child_process"
function rebuild() {
console.log("-----")
console.log(`\nRebuilding... (${new Date().toLocaleString()})`)
try {
execSync(
`npx esbuild src/iife.mjs --bundle --outfile=dist/js-math-tools.js`,
{ encoding: "utf8" },
)
execSync(
`npx esbuild src/iife.mjs --bundle --minify --outfile=dist/js-math-tools.min.js`,
{ encoding: "utf8" },
)
console.log("\nDone! 🎉\n")
} catch (e) {
console.error(e)
}
}
rebuild()