From 1bfab42620a35fc86769ab44f79849e842ae8b3e Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 28 Dec 2022 06:57:42 +0000 Subject: [PATCH] Update package.json --- index.js | 1 - package.json | 14 ++++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 index.js diff --git a/index.js b/index.js deleted file mode 100644 index efc396f..0000000 --- a/index.js +++ /dev/null @@ -1 +0,0 @@ -throw new Error('Incorrect usage. Import submodules instead'); \ No newline at end of file diff --git a/package.json b/package.json index aa25ff1..1e294a2 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,7 @@ "version": "0.4.0", "description": "Minimal, auditable JS implementation of elliptic curve cryptography", "files": [ - "index.js", - "lib", - "lib/esm" + "lib" ], "scripts": { "bench": "node benchmark/index.js", @@ -23,7 +21,7 @@ }, "license": "MIT", "dependencies": { - "@noble/hashes": "~1.1.5" + "@noble/hashes": "1.1.5" }, "devDependencies": { "@rollup/plugin-node-resolve": "13.3.0", @@ -40,6 +38,11 @@ }, "main": "index.js", "exports": { + ".": { + "types": "./lib/index.d.ts", + "import": "./lib/esm/index.js", + "default": "./lib/index.js" + }, "./abstract/edwards": { "types": "./lib/abstract/edwards.d.ts", "import": "./lib/esm/abstract/edwards.js", @@ -168,8 +171,11 @@ "p521", "secp256r1", "secp256k1", + "ed25519", + "ed448", "bls12-381", "bn254", + "pasta", "bls", "nist", "ecc",