feat(package): Update package.json to use exports field for dual entry points
This commit is contained in:
@ -3,8 +3,10 @@
|
||||
"version": "3.1.0",
|
||||
"private": false,
|
||||
"description": "Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
"exports": {
|
||||
".": "./dist_ts/index.js",
|
||||
"./web":"./dist_ts_web/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "(tstest test/ --web)",
|
||||
"build": "(tsbuild tsfolders --allowimplicitany)",
|
||||
|
Reference in New Issue
Block a user