Skip to content

Commit 45a7627

Browse files
jaslongslevithan
authored andcommitted
Add top-level types field to package.json
Some tools (e.g. tsc) use the top-level types field only
1 parent 5d36db0 commit 45a7627

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
}
1414
},
1515
"browser": "./dist/regex.min.js",
16+
"types": "./types/regex.d.ts",
1617
"scripts": {
1718
"bundle:global": "esbuild src/regex.js --global-name=Regex --bundle --minify --sourcemap --outfile=dist/regex.min.js",
1819
"bundle:esm": "esbuild src/regex.js --format=esm --bundle --sourcemap --outfile=dist/regex.mjs",

0 commit comments

Comments
 (0)