fix(build): Fix import paths, update CI workflows and upgrade dependencies for ESM compliance

This commit is contained in:
2025-05-12 13:37:34 +00:00
parent d647706881
commit 4fc2eb6ece
20 changed files with 9474 additions and 28835 deletions

View File

@@ -1,4 +1,4 @@
import * as plugins from './smartfuzzy.plugins';
import * as plugins from './smartfuzzy.plugins.js';
export class ObjectSorter<T> {
public objectDictionary: T[];
@@ -7,7 +7,7 @@ export class ObjectSorter<T> {
this.objectDictionary = objectDictionaryArg;
}
sort(stringArg: string, objectKeysArg: string[]): plugins.fuseJs.FuseResult<T>[] {
sort(stringArg: string, objectKeysArg: string[]): Array<{ item: T; refIndex: number; score?: number }> {
const fuseOptions = {
shouldSort: true,
threshold: 0.6,