Skip to content

Commit 821f9d2

Browse files
committedJul 6, 2022
Add esm build
1 parent 6c5236b commit 821f9d2

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ coverage
66
test.js
77
bench.js
88
mod.d.ts
9-
mod.js
9+
mod.js
10+
esm

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Fastest Levenshtein distance implementation in JS.",
55
"main": "mod.js",
66
"types": "mod.d.ts",
7+
"module": "./esm/mod.esm.js",
78
"repository": {
89
"type": "git",
910
"url": "git+https://github.com/ka-weihe/fastest-levenshtein.git"

‎tsconfig.esm.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2015",
4+
"module": "esnext",
5+
"declaration": true,
6+
"declarationMap": true,
7+
"strict": true,
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"outDir": "esm"
12+
},
13+
"include": ["./mod.ts"]
14+
}

0 commit comments

Comments
 (0)
Please sign in to comment.