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 507c229 commit 7ac2a36
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
@@ -1,6 +1,6 @@
build
bun.lockb
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/loglevel-mixin.d.mts",
"types": "./types/loglevel-mixin.d.mts",
"exports": {
".": {
"types": "./dist/loglevel-mixin.d.mts",
"types": "./types/loglevel-mixin.d.mts",
"default": "./src/loglevel-mixin.mjs"
}
},
Expand All @@ -25,7 +25,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 7ac2a36

Please sign in to comment.