Skip to content

Commit

Permalink
feat: provide types
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Feb 9, 2024
1 parent 9acedb0 commit 8404420
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
"provenance": true
},
"exports": {
".": "./src/loglevel-mixin.mjs"
".": {
"types": "./dist/loglevel-mixin.d.mts",
"default": "./src/loglevel-mixin.mjs"
}
},
"types": "./dist/loglevel-mixin.d.mts",
"description": "mixin to declare logging methods named after a set of log levels",
"keywords": [
"logging",
Expand All @@ -21,6 +25,7 @@
],
"license": "BSD-2-Clause",
"scripts": {
"prepare": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir dist -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
"test": "npm run test:browser-ava && npm run test:ava",
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
"test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
Expand Down

0 comments on commit 8404420

Please sign in to comment.