Skip to content

Commit

Permalink
feat(engine5): import from workspace package
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and alimd committed Dec 26, 2023
1 parent 58f458a commit 6e74e9e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 2 additions & 0 deletions packages/engine5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
"devDependencies": {
"@alwatr/nano-build": "^1.2.1",
"@alwatr/prettier-config": "^1.0.4",
"@alwatr/store-reference": "workspace:^",
"@alwatr/store-types": "workspace:^",
"@alwatr/tsconfig-base": "^1.0.5",
"@alwatr/type": "^1.2.4",
"@types/node": "^20.10.5",
Expand Down
15 changes: 6 additions & 9 deletions packages/engine5/src/alwatr-store.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import {CollectionReference} from './lib/collection-reference.js';
import {DocumentReference} from './lib/document-reference.js';
import {WriteFileMode, existsSync, readJsonFile, resolve, unlink, writeJsonFile} from './lib/util.js';
import {logger} from './logger.js';
import {CollectionReference, DocumentReference} from '@alwatr/store-reference';
import {
StoreFileType,
StoreFileExtension,
Region,
StoreFileTTL,
type StoreFileStat,
type AlwatrStoreConfig,
type StoreFileContext,
type CollectionContext,
type DocumentContext,
} from './type.js';
DocumentContext,
} from '@alwatr/store-types';

export {Region, StoreFileTTL};
import {StoreFileStatModel} from './lib/store-file-stat.js'
import {WriteFileMode, existsSync, readJsonFile, resolve, unlink, writeJsonFile} from './lib/util.js';
import {logger} from './logger.js';

logger.logModule?.('alwatr-store');

Expand Down
2 changes: 1 addition & 1 deletion packages/engine5/src/lib/store-file-stat.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {flatString} from '@alwatr/flat-string';

import {StoreFileStat} from '../type';
import type {StoreFileStat} from '@alwatr/store-types';

export class StoreFileStatModel {
public readonly id: string;
Expand Down
4 changes: 3 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ __metadata:
"@alwatr/logger": "npm:^2.4.1"
"@alwatr/nano-build": "npm:^1.2.1"
"@alwatr/prettier-config": "npm:^1.0.4"
"@alwatr/store-reference": "workspace:^"
"@alwatr/store-types": "workspace:^"
"@alwatr/tsconfig-base": "npm:^1.0.5"
"@alwatr/type": "npm:^1.2.4"
"@alwatr/util": "npm:^1.4.1"
Expand All @@ -181,7 +183,7 @@ __metadata:
languageName: unknown
linkType: soft

"@alwatr/store-reference@workspace:packages/store-reference":
"@alwatr/store-reference@workspace:^, @alwatr/store-reference@workspace:packages/store-reference":
version: 0.0.0-use.local
resolution: "@alwatr/store-reference@workspace:packages/store-reference"
dependencies:
Expand Down

0 comments on commit 6e74e9e

Please sign in to comment.