Skip to content

Commit 3880703

Browse files
njfamirmalimd
authored andcommitted
feat(node-fs): definePackage and logger
1 parent 31f3740 commit 3880703

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/node-fs/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
},
6868
"dependencies": {
6969
"@alwatr/async-queue": "workspace:^",
70-
"@alwatr/dedupe": "workspace:^",
7170
"@alwatr/flat-string": "workspace:^",
7271
"@alwatr/logger": "workspace:^"
7372
},

packages/node-fs/src/main.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ import {copyFile, mkdir, readFile as readFile_, rename, writeFile as writeFile_,
33
import {dirname} from 'node:path';
44

55
import {flatString} from '@alwatr/flat-string';
6+
import {definePackage} from '@alwatr/logger';
67

7-
import {logger} from '../logger.js';
8-
8+
import type {} from '@alwatr/nano-build'
99
import type {MaybePromise} from '@alwatr/type-helper';
1010

1111
export {resolve} from 'node:path';
1212
export {unlink, existsSync};
1313

14+
const logger = definePackage('@alwatr/node-fs', __package_version__)
15+
1416
/**
1517
* Parse json string.
1618
*

yarn.lock

-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ __metadata:
151151
resolution: "@alwatr/node-fs@workspace:packages/node-fs"
152152
dependencies:
153153
"@alwatr/async-queue": "workspace:^"
154-
"@alwatr/dedupe": "workspace:^"
155154
"@alwatr/flat-string": "workspace:^"
156155
"@alwatr/logger": "workspace:^"
157156
"@alwatr/nano-build": "workspace:^"

0 commit comments

Comments
 (0)