Skip to content

Commit

Permalink
fix: provide types in types dir
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Feb 9, 2024
1 parent c1317bb commit 96e7881
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
bun.lockb
build
.DS_Store
dist
types
/node_modules/**
*.log
*.dump
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"access": "public",
"provenance": true
},
"types": "./dist/one-time-execution-method.d.mts",
"types": "./types/one-time-execution-method.d.mts",
"exports": {
".": {
"types": "./dist/one-time-execution-method.d.mts",
"types": "./types/one-time-execution-method.d.mts",
"default": "./src/one-time-execution-method.mjs"
}
},
Expand All @@ -29,7 +29,7 @@
],
"license": "BSD-2-Clause",
"scripts": {
"prepare": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir dist -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
"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 96e7881

Please sign in to comment.