feat: defined exports for the package

BREAKING CHANGE: exports prevents access to internal files, but they arent intended for public use anyway
This commit is contained in:
Matt Travi 2023-09-01 21:08:13 -05:00
parent 07a79ea7e9
commit 72ab317bb0
No known key found for this signature in database
GPG Key ID: 8C173646C24FED70

View File

@ -77,6 +77,7 @@
"engines": { "engines": {
"node": ">=18" "node": ">=18"
}, },
"exports": "./index.js",
"files": [ "files": [
"bin", "bin",
"docs", "docs",
@ -98,7 +99,7 @@
"version" "version"
], ],
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "./index.js",
"types": "index.d.ts", "types": "index.d.ts",
"c8": { "c8": {
"include": [ "include": [