Skip to content

Commit

Permalink
feat(poseidon-cipher-ts): convert poseidon constants to ts and remove…
Browse files Browse the repository at this point in the history
… fs/path deps
  • Loading branch information
ctrlc03 committed Dec 28, 2023
1 parent 6e8fdbf commit 8767dac
Show file tree
Hide file tree
Showing 4 changed files with 13,014 additions and 13,031 deletions.
14 changes: 0 additions & 14 deletions packages/poseidon-cipher/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import typescript from "rollup-plugin-typescript2"
import fs from "fs"
import cleanup from "rollup-plugin-cleanup"
import { terser } from "rollup-plugin-terser"

const pkg = JSON.parse(fs.readFileSync("./package.json", "utf8"))
const banner = `/**
Expand All @@ -12,23 +11,10 @@ const banner = `/**
* @license ${pkg.license}
* @see [Github]{@link ${pkg.homepage}}
*/`
const name = pkg.name.substr(1).replace(/[-/]./g, (x: string) => x.toUpperCase()[1])

export default {
input: "src/index.ts",
output: [
{
file: pkg.iife,
name,
format: "iife",
banner
},
{
file: pkg.unpkg,
name,
format: "iife",
plugins: [terser({ output: { preamble: banner } })]
},
{ file: pkg.exports.require, format: "cjs", banner },
{ file: pkg.exports.import, format: "es", banner }
],
Expand Down
Loading

0 comments on commit 8767dac

Please sign in to comment.