diff --git a/src/package.json b/src/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/src/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/tsconfig.esm.json b/tsconfig.esm.json index 0222cfa..ec6b547 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -14,11 +14,11 @@ "noUnusedParameters": true, "baseUrl": ".", "paths": { - "@noble/hashes/crypto": ["src/crypto"] + "@noble/hashes/crypto": ["src/crypto.ts"] }, - "module": "es2020", + "module": "Node16", "outDir": "esm", - "moduleResolution": "bundler" + "moduleResolution": "Node16" }, "include": ["src"], "exclude": ["node_modules", "lib"]