Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from js-sha3 to audited noble-hashes #416

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rework config to ensure nested modules are external
  • Loading branch information
phated committed Sep 24, 2023
commit 14591f9d444f465a2a42c72a218855695b9609e9
10 changes: 6 additions & 4 deletions config/rollup.cjs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import { builtinModules as builtin } from "module";

const pkg = JSON.parse(fs.readFileSync("./package.json"));

let externals = [
...Object.keys(pkg.dependencies),
...builtin,
];

export default {
input: "main.js",
output: {
file: "build/main.cjs",
format: "cjs",
},
external: [
...Object.keys(pkg.dependencies),
...builtin,
]
external: (id) => externals.some((pkg) => id.startsWith(pkg))
};
10 changes: 6 additions & 4 deletions config/rollup.cli.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ import { builtinModules as builtin } from "module";

const pkg = JSON.parse(fs.readFileSync("./package.json"));

let externals = [
...Object.keys(pkg.dependencies),
...builtin,
];

export default {
input: "cli.js",
output: {
file: "build/cli.cjs",
format: "cjs",
banner: "#! /usr/bin/env node\n",
},
external: [
...Object.keys(pkg.dependencies),
...builtin,
]
external: (id) => externals.some((pkg) => id.startsWith(pkg))
};