Skip to content

Commit

Permalink
fix(demo): build
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 27, 2023
1 parent 7e0d238 commit 80735fd
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 11 deletions.
11 changes: 8 additions & 3 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@
"author": "S. Ali Mihandoost <[email protected]> (https://ali.mihandoost.com)",
"type": "module",
"private": true,
"scripts": {
"b": "yarn run build",
"build": "tsc --build"
},
"dependencies": {
"@alwatr/logger": "^2.3.0",
"@alwatr/math": "^1.2.1",
"@alwatr/signal": "^2.0.3",
"@alwatr/storage-engine": "workspace:^",
"@alwatr/storage-sdk": "workspace:^",
"@alwatr/type": "^1.2.1",
"@alwatr/util": "^1.3.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^20.10.0"
"@alwatr/type": "^1.2.1",
"@types/node": "^20.10.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.3.2"
}
}
4 changes: 2 additions & 2 deletions demo/storage-client/benchmark.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {random} from '@alwatr/math';
import {AlwatrStorageClient} from '@alwatr/storage-sdk';
import {AlwatrStorage} from '@alwatr/storage-sdk';

import type {AlwatrDocumentObject} from '@alwatr/type';

Expand All @@ -12,7 +12,7 @@ type User = AlwatrDocumentObject & {

const token = process.env.TOKEN ?? 'YOUR_SECRET_TOKEN';

const db = new AlwatrStorageClient<User>({
const db = new AlwatrStorage<User>({
name: 'junk-data',
host: '127.0.0.1',
port: 9000,
Expand Down
4 changes: 2 additions & 2 deletions demo/storage-client/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AlwatrStorageClient} from '@alwatr/storage-sdk';
import {AlwatrStorage} from '@alwatr/storage-sdk';

import type {AlwatrDocumentObject} from '@alwatr/type';

Expand All @@ -11,7 +11,7 @@ type User = AlwatrDocumentObject & {

const token = process.env.TOKEN ?? 'YOUR_SECRET_TOKEN';

const db = new AlwatrStorageClient<User>({
const db = new AlwatrStorage<User>({
name: 'user-list',
host: '127.0.0.1',
port: 9000,
Expand Down
3 changes: 2 additions & 1 deletion demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": ".",
"outDir": "."
"outDir": ".",
"declarationMap": false,
},

"include": ["**/*.ts"],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"yarn": ">=4.0.0"
},
"workspaces": [
"packages/*"
"packages/*",
"demo"
],
"scripts": {
"b": "yarn run build",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
{"path": "./packages/engine"},
{"path": "./packages/sdk"},
{"path": "./packages/api"},
// {"path": "./demo"}
{"path": "./demo"}
]
}
19 changes: 18 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ __metadata:
languageName: node
linkType: hard

"@alwatr/demo@workspace:demo":
version: 0.0.0-use.local
resolution: "@alwatr/demo@workspace:demo"
dependencies:
"@alwatr/logger": "npm:^2.3.0"
"@alwatr/math": "npm:^1.2.1"
"@alwatr/storage-engine": "workspace:^"
"@alwatr/storage-sdk": "workspace:^"
"@alwatr/type": "npm:^1.2.1"
"@alwatr/util": "npm:^1.3.1"
"@types/node": "npm:^20.10.0"
npm-run-all: "npm:^4.1.5"
tslib: "npm:^2.6.2"
typescript: "npm:^5.3.2"
languageName: unknown
linkType: soft

"@alwatr/fetch@npm:^2.1.1":
version: 2.1.1
resolution: "@alwatr/fetch@npm:2.1.1"
Expand Down Expand Up @@ -87,7 +104,7 @@ __metadata:
languageName: unknown
linkType: soft

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

0 comments on commit 80735fd

Please sign in to comment.