improve package.json files and exports

This commit is contained in:
Andre Staltz 2023-04-21 14:51:44 +03:00
parent 10e74ea8da
commit a5574b7133
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
4 changed files with 3 additions and 5 deletions

View File

@ -1 +0,0 @@
module.exports = require('./lib/plugin')

View File

@ -1,7 +1,7 @@
const FeedV1 = require('./feed-v1') const FeedV1 = require('./feed-v1')
/** /**
* @typedef {import('./plugin').Rec} Rec * @typedef {import('./index').Rec} Rec
*/ */
function ciphertextStrToBuffer(str) { function ciphertextStrToBuffer(str) {

View File

@ -5,15 +5,14 @@
"main": "index.js", "main": "index.js",
"files": [ "files": [
"*.js", "*.js",
"lib/**/*.js", "lib/**/*.js"
"compat/*.js"
], ],
"engines": { "engines": {
"node": ">=16" "node": ">=16"
}, },
"exports": { "exports": {
".": { ".": {
"require": "./index.js" "require": "./lib/index.js"
}, },
"./feed-v1": { "./feed-v1": {
"require": "./lib/feed-v1/index.js" "require": "./lib/feed-v1/index.js"