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

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

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