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 0cb27be commit 70b9f86
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
16 changes: 15 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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/one-time-execution-method.mjs"
".": {
"types": "./dist/one-time-execution-method.d.mts",
"default": "./src/one-time-execution-method.mjs"
}
},
"types": "./dist/one-time-execution-method.d.mts",
"description": "define a method that will be executed only once",
"keywords": [
"async",
Expand All @@ -25,6 +29,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 70b9f86

Please sign in to comment.