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,6 +1,6 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import * as tsclass from '@tsclass/tsclass';
import * as smartfuzzy from '../ts/index';
import * as smartfuzzy from '../ts/index.js';
tap.test('should sort objects', async () => {
const articleArray: tsclass.content.IArticle[] = [

View File

@ -1,14 +1,12 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartfuzzy from '../ts/index';
import { expect, tap } from '@push.rocks/tapbundle';
import * as smartfuzzy from '../ts/index.js';
tap.test('should sort objects', async () => {
class Car {
constructor(public brand: string) {}
}
let testObjectSorter: smartfuzzy.ObjectSorter<Car>;
testObjectSorter = new smartfuzzy.ObjectSorter([
const testObjectSorter = new smartfuzzy.ObjectSorter<Car>([
new Car('BMW'),
new Car('Mercedes Benz'),
new Car('Volvo'),

View File

@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartfuzzy from '../ts/index';
import { expect, tap } from '@push.rocks/tapbundle';
import * as smartfuzzy from '../ts/index.js';
let testSmartfuzzy: smartfuzzy.Smartfuzzy;
@ -10,7 +10,7 @@ tap.test('should create an instance of Smartfuzzy', async () => {
'Apple Inc.',
"Trader Joe's",
]);
expect(testSmartfuzzy).to.be.instanceof(smartfuzzy.Smartfuzzy);
expect(testSmartfuzzy).toBeInstanceOf(smartfuzzy.Smartfuzzy);
});
tap.test('should compute a score', async () => {