From a9077aeff62c8c06ad2ac9eed1f2e637a1ba0b9b Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Sun, 8 Sep 2024 12:48:17 +0330 Subject: [PATCH] feat(reference): add @alwatr/store-helper package --- packages/reference/package.json | 1 + packages/reference/src/collection-reference.ts | 2 +- packages/reference/src/document-reference.ts | 2 +- packages/reference/src/main.ts | 1 - packages/reference/tsconfig.json | 2 +- yarn.lock | 1 + 6 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/reference/package.json b/packages/reference/package.json index ae28245b..bac1a1a7 100644 --- a/packages/reference/package.json +++ b/packages/reference/package.json @@ -62,6 +62,7 @@ "dependencies": { "@alwatr/flat-string": "^1.0.21", "@alwatr/logger": "^3.2.12", + "@alwatr/store-helper": "workspace:^", "@alwatr/store-types": "workspace:^", "@alwatr/wait": "^1.1.14" }, diff --git a/packages/reference/src/collection-reference.ts b/packages/reference/src/collection-reference.ts index 4943ee33..2a4563a9 100644 --- a/packages/reference/src/collection-reference.ts +++ b/packages/reference/src/collection-reference.ts @@ -1,4 +1,5 @@ import {createLogger} from '@alwatr/logger'; +import {getStoreId, getStorePath} from '@alwatr/store-helper'; import { StoreFileType, StoreFileExtension, @@ -11,7 +12,6 @@ import { import {waitForImmediate, waitForTimeout} from '@alwatr/wait'; import {logger} from './logger.js'; -import {getStoreId, getStorePath} from './util.js'; import type {Dictionary, JsonObject} from '@alwatr/type-helper'; diff --git a/packages/reference/src/document-reference.ts b/packages/reference/src/document-reference.ts index 11815fff..31f24e65 100644 --- a/packages/reference/src/document-reference.ts +++ b/packages/reference/src/document-reference.ts @@ -1,9 +1,9 @@ import {createLogger} from '@alwatr/logger'; +import {getStoreId, getStorePath} from '@alwatr/store-helper'; import {StoreFileType, StoreFileExtension, type StoreFileId, type DocumentContext, type StoreFileMeta} from '@alwatr/store-types'; import {waitForImmediate, waitForTimeout} from '@alwatr/wait'; import {logger} from './logger.js'; -import {getStoreId, getStorePath} from './util.js'; import type {Dictionary, JsonObject} from '@alwatr/type-helper'; diff --git a/packages/reference/src/main.ts b/packages/reference/src/main.ts index 028474cf..84cea46c 100644 --- a/packages/reference/src/main.ts +++ b/packages/reference/src/main.ts @@ -1,3 +1,2 @@ export * from './collection-reference.js'; export * from './document-reference.js'; -export * from './util.js'; diff --git a/packages/reference/tsconfig.json b/packages/reference/tsconfig.json index b6fdbb0c..7367de35 100644 --- a/packages/reference/tsconfig.json +++ b/packages/reference/tsconfig.json @@ -7,5 +7,5 @@ "composite": true }, "include": ["src/**/*.ts", "src/util.ts"], - "references": [{"path": "../types"}] + "references": [{"path": "../types"}, {"path": "../helper"}] } diff --git a/yarn.lock b/yarn.lock index 15f878ea..6ef46478 100644 --- a/yarn.lock +++ b/yarn.lock @@ -164,6 +164,7 @@ __metadata: "@alwatr/logger": "npm:^3.2.12" "@alwatr/nano-build": "npm:^1.3.8" "@alwatr/prettier-config": "npm:^1.0.4" + "@alwatr/store-helper": "workspace:^" "@alwatr/store-types": "workspace:^" "@alwatr/tsconfig-base": "npm:^1.2.0" "@alwatr/type-helper": "npm:^1.2.5"