tsconfig: change module to Node16, copy noble-ciphers change

This commit is contained in:
Paul Miller 2024-02-14 01:10:32 +00:00
parent a1a7dc9cbf
commit 8c39a6ac5a
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B
2 changed files with 6 additions and 3 deletions

3
src/package.json Normal file

@ -0,0 +1,3 @@
{
"type": "module"
}

@ -14,11 +14,11 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@noble/hashes/crypto": ["src/crypto"] "@noble/hashes/crypto": ["src/crypto.ts"]
}, },
"module": "es2020", "module": "Node16",
"outDir": "esm", "outDir": "esm",
"moduleResolution": "bundler" "moduleResolution": "Node16"
}, },
"include": ["src"], "include": ["src"],
"exclude": ["node_modules", "lib"] "exclude": ["node_modules", "lib"]