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

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @push.rocks/commitinfo
*/
export const commitinfo = {
name: '@push.rocks/smartfuzzy',
version: '1.1.7',
description: 'A library for fuzzy matching strings against word dictionaries or arrays, with support for object and article searching.'
}

View File

@ -1,3 +1,3 @@
export * from './smartfuzzy.articlesearch';
export * from './smartfuzzy.classes.smartfuzzy';
export * from './smartfuzzy.classes.objectsorter';
export * from './smartfuzzy.articlesearch.js';
export * from './smartfuzzy.classes.smartfuzzy.js';
export * from './smartfuzzy.classes.objectsorter.js';

View File

@ -1,4 +1,4 @@
import * as plugins from './smartfuzzy.plugins';
import * as plugins from './smartfuzzy.plugins.js';
/**
* an article search that searches articles in a weighted manner

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,

View File

@ -1,4 +1,4 @@
import * as plugins from './smartfuzzy.plugins';
import * as plugins from './smartfuzzy.plugins.js';
export let standardExport = 'Hi there! :) This is an exported string';

View File

@ -1,5 +1,5 @@
// @pushrocks scope
import * as smartpromise from '@pushrocks/smartpromise';
import * as smartpromise from '@push.rocks/smartpromise';
export { smartpromise };