Skip to content

Commit 17e7f5d

Browse files
authoredAug 2, 2022
Merge pull request #20 from RoXuS/addESMBuild
Add build:esm
2 parents 37bd091 + e421046 commit 17e7f5d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ data.json
88
bench.ts
99
mod.ts
1010
tsconfig.json
11+
tsconfig.esm.json

‎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.