Skip to content

Commit

Permalink
chore: add exports for package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab1o0107 committed Dec 21, 2023
1 parent 6252de1 commit abac84c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "icelink",
"version": "1.0.0-dev",
"description": "Icelink outshines Lavalink with its superior stability, frequent updates, and extended capabilities. Featuring new handling mechanisms, support for ESM and CommonJS, and efficient Redis caching, Icelink offers an enhanced and reliable music streaming experience.",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc --noEmit && tsup --config tsup-config.json",
"build:docs": "typedoc --theme default --readme README.md --out docs/ --entryPointStrategy expand src/.",
Expand Down Expand Up @@ -45,5 +45,17 @@
"ioredis": "^5.3.2",
"undici": "^6.0.1",
"ws": "^8.14.2"
},
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
}
}

0 comments on commit abac84c

Please sign in to comment.