Skip to content

Commit 39b5cdb

Browse files
committed
export types
1 parent 44b1c71 commit 39b5cdb

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

fixup

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ cat >dist/mjs/package.json <<!EOF
88
{
99
"type": "module"
1010
}
11-
!EOF
11+
!EOF
12+
13+
find src -name '*.d.ts' -exec cp {} dist/mjs \;
14+
find src -name '*.d.ts' -exec cp {} dist/cjs \;

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "urlbox",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Generate screenshots, PDFs and other renders from URLs or HTML using the urlbox.io screenshot as a service API",
55
"scripts": {
6-
"test": "vitest",
7-
"test:watch": "vitest --watch",
6+
"test": "vitest --run",
7+
"test:watch": "vitest",
88
"compile": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && ./fixup",
99
"prepublishOnly": "npm run compile && npm run test"
1010
},
11+
"types": "dist/mjs/index.d.ts",
1112
"main": "dist/cjs/index.js",
1213
"module": "dist/mjs/index.js",
1314
"exports": {

src/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v2.0.1
2+
3+
## Improvements
4+
5+
- Add `types` to package.json
6+
17
# v2.0.0
28

39
## Breaking Changes

0 commit comments

Comments
 (0)