Skip to content

Commit

Permalink
chore(node-fs): review and test
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Jan 8, 2024
1 parent 58fd97c commit c4c81b1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/node-fs/demo/make-file-bench.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {mkdir, rm} from 'node:fs/promises';
console.log('start bench');

console.time('bench');
for (let i = 0; i < 10; i++) {
for (let i = 0; i < 10_000; i++) {
await makeEmptyFile(`${temp}/file-${i}.asn`);
}
console.timeEnd('bench');
Expand Down
2 changes: 1 addition & 1 deletion packages/node-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@alwatr/type-helper": "workspace:^",
"@types/node": "^20.10.6",
"@types/node": "^20.10.7",
"typescript": "^5.3.3"
}
}
1 change: 1 addition & 0 deletions packages/node-fs/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './read-file';
export * from './write-file';
export * from './write-json';
export * from './make-file';

export {resolve} from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/node-fs/src/make-file.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {open} from 'node:fs/promises';

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

/**
* Make empty file.
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ __metadata:
"@alwatr/prettier-config": "workspace:^"
"@alwatr/tsconfig-base": "workspace:^"
"@alwatr/type-helper": "workspace:^"
"@types/node": "npm:^20.10.6"
"@types/node": "npm:^20.10.7"
typescript: "npm:^5.3.3"
languageName: unknown
linkType: soft
Expand Down

0 comments on commit c4c81b1

Please sign in to comment.