mirror of
https://github.com/privacy-scaling-explorations/zk-kit.git
synced 2026-04-22 03:00:15 -04:00
added rollup config
Former-commit-id: 8f00006ca801143c0ffbf01aa7870ee96e4be7c4 [formerly e5249e5b9c]
Former-commit-id: f7117017ceafc8659d00ae329c917442e0e9b11e
This commit is contained in:
@@ -10,6 +10,6 @@
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-explicit-any": "off"
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
16
.github/workflows/npm-publish.yml
vendored
16
.github/workflows/npm-publish.yml
vendored
@@ -4,22 +4,6 @@ on:
|
||||
branches:
|
||||
- master
|
||||
|
||||
# jobs:
|
||||
# build:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# # Setup .npmrc file to publish to npm
|
||||
# - uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: '16.x'
|
||||
# registry-url: 'https://registry.npmjs.org'
|
||||
# - run: npm install
|
||||
# - run: npm publish
|
||||
# env:
|
||||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
873
packages/identity/package-lock.json
generated
873
packages/identity/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,17 +1,25 @@
|
||||
{
|
||||
"name": "@libsem/identity",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"description": "work with zk identites",
|
||||
"main": "dist/identity/src/index.js",
|
||||
"types": "dist/types/index.d.ts",
|
||||
"exports": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.node.js"
|
||||
},
|
||||
"scripts": {
|
||||
"tsc": "npx tsc src/index.ts",
|
||||
"build": "npm run clean && tsc -p .",
|
||||
"clean": "rimraf ./dist"
|
||||
"clean": "rimraf ./dist",
|
||||
"build:watch": "rollup -c rollup.config.ts -w",
|
||||
"build": "rimraf dist && rollup -c rollup.config.ts"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"author": {
|
||||
"name": "Andrija Novakovic",
|
||||
"email": "akinovak@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/appliedzkp/libsemaphore/identity",
|
||||
"dependencies": {
|
||||
"bigint-conversion": "^2.1.12",
|
||||
"circomlibjs": "^0.0.8",
|
||||
@@ -21,6 +29,9 @@
|
||||
"devDependencies": {
|
||||
"@types/node": "^16.10.8",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.58.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"rollup-plugin-typescript2": "^0.30.0",
|
||||
"ts-node": "^10.3.0",
|
||||
"typescript": "^4.4.4"
|
||||
}
|
||||
|
||||
22
packages/identity/rollup.config.ts
Normal file
22
packages/identity/rollup.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import typescript from "rollup-plugin-typescript2"
|
||||
import * as fs from 'fs';
|
||||
const pkg = JSON.parse(fs.readFileSync("./package.json", "utf-8"));
|
||||
|
||||
const banner = `/**
|
||||
* @module ${pkg.name}
|
||||
* @version ${pkg.version}
|
||||
* @file ${pkg.description}
|
||||
* @copyright ${pkg.author.name} ${new Date().getFullYear()}
|
||||
* @license ${pkg.license}
|
||||
* @see [Github]{@link ${pkg.homepage}}
|
||||
*/`
|
||||
|
||||
export default {
|
||||
input: "src/index.ts",
|
||||
output: [
|
||||
{ file: pkg.exports.require, format: "cjs", banner, exports: "auto" },
|
||||
{ file: pkg.exports.import, format: "es", banner }
|
||||
],
|
||||
external: Object.keys(pkg.dependencies),
|
||||
plugins: [typescript({ useTsconfigDeclarationDir: true })]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
c347864d137b0a499fda793f02b114d183adafae
|
||||
46fb2207c2069382fda548794873c78dc0f49c8d
|
||||
@@ -4,14 +4,21 @@
|
||||
"description": "",
|
||||
"main": "dist/protocols/src/index.js",
|
||||
"types": "dist/types/index.d.ts",
|
||||
"exports": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.node.js"
|
||||
},
|
||||
"scripts": {
|
||||
"tsc": "npx tsc src/index.ts",
|
||||
"build": "npm run clean && tsc -p .",
|
||||
"clean": "rimraf ./dist"
|
||||
"build": "rimraf dist && rollup -c rollup.config.ts"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"author": {
|
||||
"name": "Andrija Novakovic",
|
||||
"email": "akinovak@gmail.com"
|
||||
},
|
||||
"homepage": "https://github.com/appliedzkp/libsemaphore/protocols",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"circomlibjs": "^0.0.8",
|
||||
"ethers": "^5.4.7",
|
||||
@@ -20,6 +27,9 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^16.10.8",
|
||||
"rollup": "^2.58.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"rollup-plugin-typescript2": "^0.30.0",
|
||||
"ts-jest": "^27.0.6",
|
||||
"ts-node": "^10.3.0",
|
||||
"typescript": "^4.4.4"
|
||||
|
||||
22
packages/protocols/rollup.config.ts
Normal file
22
packages/protocols/rollup.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import typescript from "rollup-plugin-typescript2"
|
||||
import * as fs from 'fs';
|
||||
const pkg = JSON.parse(fs.readFileSync("./package.json", "utf-8"));
|
||||
|
||||
const banner = `/**
|
||||
* @module ${pkg.name}
|
||||
* @version ${pkg.version}
|
||||
* @file ${pkg.description}
|
||||
* @copyright ${pkg.author.name} ${new Date().getFullYear()}
|
||||
* @license ${pkg.license}
|
||||
* @see [Github]{@link ${pkg.homepage}}
|
||||
*/`;
|
||||
|
||||
export default {
|
||||
input: "src/index.ts",
|
||||
output: [
|
||||
{ file: pkg.exports.require, format: "cjs", banner, exports: "auto" },
|
||||
{ file: pkg.exports.import, format: "es", banner }
|
||||
],
|
||||
external: Object.keys(pkg.dependencies),
|
||||
plugins: [typescript({ useTsconfigDeclarationDir: true })]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user