diff --git a/curve-definitions/package.json b/curve-definitions/package.json index c837c8d..e50b185 100644 --- a/curve-definitions/package.json +++ b/curve-definitions/package.json @@ -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": [ diff --git a/curve-definitions/src/index.ts b/curve-definitions/src/index.ts new file mode 100644 index 0000000..0ffab52 --- /dev/null +++ b/curve-definitions/src/index.ts @@ -0,0 +1 @@ +throw new Error('Incorrect usage. Import submodules instead'); diff --git a/package.json b/package.json index 731f429..0726ae6 100644 --- a/package.json +++ b/package.json @@ -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}'",