different type of package.json exports

This commit is contained in:
Andre Staltz 2023-04-21 14:37:26 +03:00
parent cea1483d3c
commit dcab315fe5
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 6 additions and 2 deletions

View File

@ -12,8 +12,12 @@
"node": ">=16" "node": ">=16"
}, },
"exports": { "exports": {
".": "./index.js", ".": {
"./feed-v1": "./lib/feed-v1/index.js" "require": "./index.js"
},
"./feed-v1": {
"require": "./lib/feed-v1/index.js"
}
}, },
"author": "Andre Staltz <contact@staltz.com>", "author": "Andre Staltz <contact@staltz.com>",
"license": "MIT", "license": "MIT",