mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-10-31 23:35:40 +01:00
18 lines
376 B
JavaScript
18 lines
376 B
JavaScript
import fs from "fs";
|
|
import { builtinModules as builtin } from "module";
|
|
|
|
const pkg = JSON.parse(fs.readFileSync("./package.json"));
|
|
|
|
export default {
|
|
input: "cli.js",
|
|
output: {
|
|
file: "build/cli.cjs",
|
|
format: "cjs",
|
|
banner: "#! /usr/bin/env node\n",
|
|
},
|
|
external: [
|
|
...Object.keys(pkg.dependencies),
|
|
...builtin,
|
|
]
|
|
};
|