2021-02-10 07:42:05 +03:00
|
|
|
import fs from "fs";
|
|
|
|
import { builtinModules as builtin } from "module";
|
|
|
|
|
|
|
|
const pkg = JSON.parse(fs.readFileSync("./package.json"));
|
2020-07-11 11:31:52 +03:00
|
|
|
|
|
|
|
export default {
|
|
|
|
input: "cli.js",
|
|
|
|
output: {
|
|
|
|
file: "build/cli.cjs",
|
|
|
|
format: "cjs",
|
|
|
|
banner: "#! /usr/bin/env node\n",
|
|
|
|
},
|
|
|
|
external: [
|
2021-02-10 07:42:05 +03:00
|
|
|
...Object.keys(pkg.dependencies),
|
|
|
|
...builtin,
|
2020-07-11 11:31:52 +03:00
|
|
|
]
|
|
|
|
};
|