Skip to content

Commit

Permalink
Fix: esm duplicate import bug in jest (#420)
Browse files Browse the repository at this point in the history
Closes #418
Closes #426
  • Loading branch information
eryue0220 authored May 31, 2024
1 parent 9c014bc commit 782fb3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions javascript/usearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,15 +609,6 @@ function exactSearch(
}
}

module.exports = {
Index,
MetricKind,
ScalarKind,
Matches,
BatchMatches,
exactSearch,
};

// utility functions to help find native builds

function getBuildDir(dir: string) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"prebuild-single": "prebuildify --napi --strip",
"prebuild-arm64": "prebuildify --arch arm64 --napi",
"prebuild-darwin-x64+arm64": "prebuildify --arch arm64+x64 --napi --strip",
"build-js": "rm -fr javascript/dist/* && tsc -p javascript/tsconfig-esm.json && tsc -p javascript/tsconfig-cjs.json && cp javascript/dist-package-esm.json javascript/dist/esm/package.json && cp javascript/dist-package-cjs.json javascript/dist/cjs/package.json"
"build-js": "tsc -p javascript/tsconfig-esm.json && tsc -p javascript/tsconfig-cjs.json && cp javascript/dist-package-esm.json javascript/dist/esm/package.json && cp javascript/dist-package-cjs.json javascript/dist/cjs/package.json"
},
"devDependencies": {
"@types/bindings": "^1.5.5",
Expand Down

0 comments on commit 782fb3d

Please sign in to comment.