Skip to content

Commit e421046

Browse files
committedJul 28, 2022
Add build:esm to scripts and add it to prepare
1 parent 7d3b40f commit e421046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"homepage": "https://github.com/ka-weihe/fastest-levenshtein#README",
3737
"scripts": {
3838
"build": "tsc mod.ts --declaration",
39-
"prepare": "npm run build",
39+
"build:esm": "tsc --declaration -p tsconfig.esm.json",
40+
"prepare": "npm run build && npm run build:esm",
4041
"bench": "npm run build && tsc bench.ts && node bench.js",
4142
"test": "npm run build && tsc test.ts && jest test.js",
4243
"test:coverage": "npm run build && jest --coverage",

0 commit comments

Comments
 (0)
Please sign in to comment.