Skip to content

Commit 5043afb

Browse files
committed
add typescript declaration, bump version
1 parent c0ee030 commit 5043afb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
"version": "1.0.3",
44
"type": "module",
55
"description": "Converts JTD into JSON Schema ",
6-
"main": "./dist/bundle.js",
6+
"main": "./dist/src/index.js",
7+
"types": "./dist/src/index.d.ts",
8+
"module": "./dist/src/index.js",
9+
"exports": {
10+
".": {
11+
"types": "./dist/src/index.d.ts",
12+
"import": "./dist/src/index.js",
13+
"require": "./dist/bundle.js"
14+
}
15+
},
716
"scripts": {
817
"preinstall": "git config core.hooksPath .githooks",
918
"build": "npx webpack",
@@ -21,7 +30,8 @@
2130
"access": "public"
2231
},
2332
"files": [
24-
"./dist"
33+
"./dist/src",
34+
"./dist/bundle.js"
2535
],
2636
"keywords": [
2737
"json",

0 commit comments

Comments
 (0)