Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(engine): use alwatr exit hook #186

Merged
merged 1 commit into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
"clean": "rm -rfv dist *.tsbuildinfo"
},
"dependencies": {
"@alwatr/exit-hook": "^1.0.1",
"@alwatr/flat-string": "^1.0.10",
"@alwatr/logger": "^2.4.1",
"@alwatr/store-reference": "workspace:^",
"@alwatr/store-types": "workspace:^",
"@alwatr/wait": "^1.1.1",
"exit-hook": "^4.0.0"
"@alwatr/wait": "^1.1.1"
},
"devDependencies": {
"@alwatr/nano-build": "^1.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/src/alwatr-store.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {exitHook} from '@alwatr/exit-hook';
import {CollectionReference, DocumentReference, getStoreId, getStorePath} from '@alwatr/store-reference';
import {
StoreFileType,
Expand All @@ -11,7 +12,6 @@ import {
} from '@alwatr/store-types';
import {Dictionary} from '@alwatr/type-helper';
import {waitForTimeout} from '@alwatr/wait';
import exitHook from 'exit-hook';

import {WriteFileMode, existsSync, readJsonFile, resolve, unlink, writeJsonFile} from './lib/node-fs.js';
import {logger} from './logger.js';
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ __metadata:
languageName: node
linkType: hard

"@alwatr/exit-hook@npm:^1.0.1":
version: 1.0.1
resolution: "@alwatr/exit-hook@npm:1.0.1"
checksum: 1ebb2d3fb6e764bf08c9dec89dcf622139253b35a8a08cca8bb9488c0d6ac25f198747d25bd55b76a5aeb8464405813b8f95303842cfdb4e2acb92eb39c63283
languageName: node
linkType: hard

"@alwatr/flat-string@npm:^1.0.10":
version: 1.0.10
resolution: "@alwatr/flat-string@npm:1.0.10"
Expand Down Expand Up @@ -70,6 +77,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@alwatr/store-engine@workspace:packages/engine"
dependencies:
"@alwatr/exit-hook": "npm:^1.0.1"
"@alwatr/flat-string": "npm:^1.0.10"
"@alwatr/logger": "npm:^2.4.1"
"@alwatr/nano-build": "npm:^1.2.2"
Expand All @@ -80,7 +88,6 @@ __metadata:
"@alwatr/type-helper": "npm:^1.0.1"
"@alwatr/wait": "npm:^1.1.1"
"@types/node": "npm:^20.10.6"
exit-hook: "npm:^4.0.0"
typescript: "npm:^5.3.3"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -2658,13 +2665,6 @@ __metadata:
languageName: node
linkType: hard

"exit-hook@npm:^4.0.0":
version: 4.0.0
resolution: "exit-hook@npm:4.0.0"
checksum: 7fb33eaeb9050aee9479da9c93d42b796fb409c40e1d2b6ea2f40786ae7d7db6dc6a0f6ecc7bc24e479f957b7844bcb880044ded73320334743c64e3ecef48d7
languageName: node
linkType: hard

"exponential-backoff@npm:^3.1.1":
version: 3.1.1
resolution: "exponential-backoff@npm:3.1.1"
Expand Down