Update package.json

This commit is contained in:
Paul Miller 2022-12-28 06:57:42 +00:00
parent f1ab259941
commit 1bfab42620
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B
2 changed files with 10 additions and 5 deletions

@ -1 +0,0 @@
throw new Error('Incorrect usage. Import submodules instead');

@ -3,9 +3,7 @@
"version": "0.4.0", "version": "0.4.0",
"description": "Minimal, auditable JS implementation of elliptic curve cryptography", "description": "Minimal, auditable JS implementation of elliptic curve cryptography",
"files": [ "files": [
"index.js", "lib"
"lib",
"lib/esm"
], ],
"scripts": { "scripts": {
"bench": "node benchmark/index.js", "bench": "node benchmark/index.js",
@ -23,7 +21,7 @@
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@noble/hashes": "~1.1.5" "@noble/hashes": "1.1.5"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-node-resolve": "13.3.0", "@rollup/plugin-node-resolve": "13.3.0",
@ -40,6 +38,11 @@
}, },
"main": "index.js", "main": "index.js",
"exports": { "exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/esm/index.js",
"default": "./lib/index.js"
},
"./abstract/edwards": { "./abstract/edwards": {
"types": "./lib/abstract/edwards.d.ts", "types": "./lib/abstract/edwards.d.ts",
"import": "./lib/esm/abstract/edwards.js", "import": "./lib/esm/abstract/edwards.js",
@ -168,8 +171,11 @@
"p521", "p521",
"secp256r1", "secp256r1",
"secp256k1", "secp256k1",
"ed25519",
"ed448",
"bls12-381", "bls12-381",
"bn254", "bn254",
"pasta",
"bls", "bls",
"nist", "nist",
"ecc", "ecc",