Fix curve-definitions exports

This commit is contained in:
Paul Miller 2022-12-15 21:21:04 +00:00
parent cafe51a6e3
commit fbf85ce732
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B
3 changed files with 8 additions and 10 deletions

@ -3,18 +3,15 @@
"version": "0.1.0",
"description": "Curve definitions for @noble/curves",
"files": [
"index.js",
"index.d.ts",
"index.d.ts.map",
"index.ts"
"lib"
],
"type": "module",
"main": "index.js",
"module": "index.js",
"types": "index.d.ts",
"main": "lib/index.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"dependencies": {
"@noble/curves": "file:../",
"@noble/hashes": "1.1.4"
"@noble/hashes": "1.1.5"
},
"devDependencies": {
"@scure/base": "~1.1.0",
@ -35,7 +32,7 @@
},
"scripts": {
"build": "tsc",
"lint": "prettier --check index.ts",
"lint": "prettier --check src",
"test": "node test/index.test.js"
},
"keywords": [

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

@ -8,7 +8,7 @@
"lib/esm"
],
"scripts": {
"bench": "node test/benchmark/index.js",
"bench": "node curve-definitions/benchmark/index.js",
"build": "tsc && tsc -p tsconfig.esm.json",
"build:release": "rollup -c rollup.config.js",
"lint": "prettier --check 'src/**/*.{js,ts}' 'curve-definitions/src/**/*.{js,ts}'",