mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-08 06:14:06 -05:00
* chore(proof): bump `@zk-kit/utils` dep * refactor(proof): use `maybeGetSemaphoreSnarkArtifacts` from `@zk-kit/utils` Delete logic related to fetching snark artifacts (wasm and zkey files) that was moved to `@zk-kit/utils` * revert(proof): add back `requireObject(snarkArtifacts)` check * chore(proof): update rollup.browser.config.ts * docs(proof): update README * chore(proof): remove unused import in rollup.browser.config.ts * Update packages/proof/package.json Co-authored-by: Cedoor <me@cedoor.dev> * docs(proof): add links to other repos in proof README * chore: bump `yarn.lock` * docs(proof): add punctuation --------- Co-authored-by: Cedoor <me@cedoor.dev>
49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
import json from "@rollup/plugin-json"
|
|
import typescript from "@rollup/plugin-typescript"
|
|
import * as fs from "fs"
|
|
import cleanup from "rollup-plugin-cleanup"
|
|
|
|
const pkg = JSON.parse(fs.readFileSync("./package.json", "utf-8"))
|
|
const banner = `/**
|
|
* @module ${pkg.name}
|
|
* @version ${pkg.version}
|
|
* @file ${pkg.description}
|
|
* @copyright Ethereum Foundation ${new Date().getFullYear()}
|
|
* @license ${pkg.license}
|
|
* @see [Github]{@link ${pkg.homepage}}
|
|
*/`
|
|
|
|
export default {
|
|
input: "src/index.ts",
|
|
output: [
|
|
{
|
|
file: pkg.exports["."].browser,
|
|
format: "es",
|
|
banner
|
|
}
|
|
],
|
|
external: [
|
|
...Object.keys(pkg.dependencies),
|
|
"node:fs",
|
|
"node:fs/promises",
|
|
"node:os",
|
|
"node:path",
|
|
"node:stream",
|
|
"node:stream/promises",
|
|
"ethers/crypto",
|
|
"ethers/utils",
|
|
"ethers/abi",
|
|
"@zk-kit/utils",
|
|
"@zk-kit/utils/error-handlers",
|
|
"@zk-kit/utils/proof-packing",
|
|
"@semaphore-protocol/utils/constants"
|
|
],
|
|
plugins: [
|
|
typescript({
|
|
tsconfig: "./build.tsconfig.json"
|
|
}),
|
|
cleanup({ comments: "jsdoc" }),
|
|
json()
|
|
]
|
|
}
|