diff --git a/package.json b/package.json index ada92bf2..b9928d15 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,10 @@ "default": "./dist/feathers-pinia.js" }, "require": "./dist/feathers-pinia.umd.cjs" + }, + "./ufuzzy": { + "import": "./dist/ufuzzy.js", + "require": "./dist/ufuzzy.cjs" } }, "main": "./dist/feathers-pinia.umd.cjs", diff --git a/src/custom-operators/index.ts b/src/custom-operators/index.ts index fc61faf7..d8ec1142 100644 --- a/src/custom-operators/index.ts +++ b/src/custom-operators/index.ts @@ -1,2 +1 @@ export * from './sql-like.js' -export * from './fuzzy-search-with-ufuzzy.js' diff --git a/src/ufuzzy.ts b/src/ufuzzy.ts new file mode 100644 index 00000000..bd553309 --- /dev/null +++ b/src/ufuzzy.ts @@ -0,0 +1 @@ +export * from './custom-operators/fuzzy-search-with-ufuzzy.js' \ No newline at end of file diff --git a/tests/fixtures/feathers.ts b/tests/fixtures/feathers.ts index 65df9358..8b13d7ac 100644 --- a/tests/fixtures/feathers.ts +++ b/tests/fixtures/feathers.ts @@ -9,7 +9,8 @@ import auth from '@feathersjs/authentication-client' import { computed, ref } from 'vue' import { vi } from 'vitest' import type { AdapterParams } from '@feathersjs/adapter-commons' -import { createPiniaClient, defineGetters, defineSetters, useInstanceDefaults, createUFuzzyOperator } from '../../src' +import { createPiniaClient, defineGetters, defineSetters, useInstanceDefaults } from '../../src' +import { createUFuzzyOperator } from '../../src/ufuzzy' import { timeout } from '../test-utils.js' import { makeContactsData } from './data.js' import type { Comments } from './schemas/comments'