File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ node_modules/
2
2
js /data.json
3
3
package-lock.json
4
4
data.json
5
- dist
6
5
coverage
7
6
test.js
8
7
bench.js
8
+ mod.d.ts
9
+ mod.js
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/no-var-requires */
2
2
/* eslint-disable no-console */
3
3
const Benchmark = require ( "benchmark" ) ;
4
- import { distance } from "./dist " ;
4
+ import { distance } from "./mod.js " ;
5
5
import { get as fastLevenshtein } from "fast-levenshtein" ;
6
6
const fs = require ( "fs" ) ;
7
7
const jslevenshtein = require ( "js-levenshtein" ) ;
Original file line number Diff line number Diff line change 2
2
"name" : " fastest-levenshtein" ,
3
3
"version" : " 1.0.12" ,
4
4
"description" : " Fastest Levenshtein distance implementation in JS." ,
5
- "main" : " dist/index .js" ,
6
- "types" : " dist/index .d.ts" ,
5
+ "main" : " mod .js" ,
6
+ "types" : " mod .d.ts" ,
7
7
"repository" : {
8
8
"type" : " git" ,
9
9
"url" : " git+https://github.com/ka-weihe/fastest-levenshtein.git"
34
34
},
35
35
"homepage" : " https://github.com/ka-weihe/fastest-levenshtein#README" ,
36
36
"scripts" : {
37
- "build" : " rm -rf dist && tsc && for i in dist/ mod.*; do mv $i \" ${i/mod/index} \" ; done " ,
37
+ "build" : " tsc mod.ts --declaration " ,
38
38
"prepare" : " npm run build" ,
39
39
"bench" : " npm run build && tsc bench.ts && node bench.js" ,
40
40
"test" : " npm run build && tsc test.ts && jest test.js" ,
Original file line number Diff line number Diff line change 1
- import { closest , distance } from "./dist " ;
1
+ import { closest , distance } from "./mod.js " ;
2
2
3
3
const levenshtein = ( a , b ) => {
4
4
if ( a . length === 0 ) {
Original file line number Diff line number Diff line change 4
4
"module" : " commonjs" ,
5
5
"declaration" : true ,
6
6
"declarationMap" : true ,
7
- "outDir" : " ./dist" ,
8
7
"strict" : true ,
9
8
"esModuleInterop" : true ,
10
9
"skipLibCheck" : true ,
You can’t perform that action at this time.
0 commit comments