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 12, 2024
1 parent bd50130 commit baa029f
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 @@ -5,8 +5,12 @@
"access": "public",
"provenance": true
},
"types": "./types/statetransition-mixin.d.mts",
"exports": {
".": "./src/statetransition-mixin.mjs"
".": {
"types": "./types/statetransition-mixin.d.mts",
"default": "./src/statetransition-mixin.mjs"
}
},
"description": "mixin to declare state transition methods like start & stop",
"keywords": [
Expand All @@ -22,6 +26,7 @@
],
"license": "BSD-2-Clause",
"scripts": {
"prepare": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -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 baa029f

Please sign in to comment.