Skip to content

Commit

Permalink
feat(node-fs): definePackage and logger
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Jan 8, 2024
1 parent 31f3740 commit 3880703
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/node-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
},
"dependencies": {
"@alwatr/async-queue": "workspace:^",
"@alwatr/dedupe": "workspace:^",
"@alwatr/flat-string": "workspace:^",
"@alwatr/logger": "workspace:^"
},
Expand Down
6 changes: 4 additions & 2 deletions packages/node-fs/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import {copyFile, mkdir, readFile as readFile_, rename, writeFile as writeFile_,
import {dirname} from 'node:path';

import {flatString} from '@alwatr/flat-string';
import {definePackage} from '@alwatr/logger';

import {logger} from '../logger.js';

import type {} from '@alwatr/nano-build'
import type {MaybePromise} from '@alwatr/type-helper';

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

const logger = definePackage('@alwatr/node-fs', __package_version__)

/**
* Parse json string.
*
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ __metadata:
resolution: "@alwatr/node-fs@workspace:packages/node-fs"
dependencies:
"@alwatr/async-queue": "workspace:^"
"@alwatr/dedupe": "workspace:^"
"@alwatr/flat-string": "workspace:^"
"@alwatr/logger": "workspace:^"
"@alwatr/nano-build": "workspace:^"
Expand Down

0 comments on commit 3880703

Please sign in to comment.