Skip to content

Commit

Permalink
Fixed location of patch-package script
Browse files Browse the repository at this point in the history
Renamed `node:fs` namespace import in streams.ts
  • Loading branch information
james-pre committed Dec 2, 2024
1 parent a0a1d87 commit e9baee9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"build:docs": "typedoc",
"dev": "npm run build -- --watch",
"prepublishOnly": "npm run build",
"postinstall": "patch-package"
"install": "patch-package"
},
"lint-staged": {
"*": [
Expand Down
6 changes: 3 additions & 3 deletions src/emulation/streams.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type * as Node from 'node:fs';
import type * as fs from 'node:fs';
import { Readable, Writable } from 'readable-stream';
import type { Callback } from '../utils.js';
import { ErrnoError, Errno } from '../error.js';

export class ReadStream extends Readable implements Node.ReadStream {
export class ReadStream extends Readable implements fs.ReadStream {
close(callback: Callback<[void], null> = () => null): void {
try {
super.destroy();
Expand All @@ -22,7 +22,7 @@ export class ReadStream extends Readable implements Node.ReadStream {
declare pending: boolean;
}

export class WriteStream extends Writable implements Node.WriteStream {
export class WriteStream extends Writable implements fs.WriteStream {
close(callback: Callback<[void], null> = () => null): void {
try {
super.destroy();
Expand Down

0 comments on commit e9baee9

Please sign in to comment.