Commit 2f8066c
Changed files (3)
src/core.ts
@@ -544,16 +544,15 @@ export class ProcessPromise extends Promise<ProcessOutput> {
.once('finish', () => _res(res()))
)
}
- if (key === 'pipe') {
- const pipe = Reflect.get(target, key)
- if (typeof pipe === 'function')
- return function (...args: any) {
- return ProcessPromise.promisifyStream(
- pipe.apply(target, args) as S
- )
- }
+ const value = Reflect.get(target, key)
+ if (key === 'pipe' && typeof value === 'function') {
+ return function (...args: any) {
+ return ProcessPromise.promisifyStream(
+ value.apply(target, args) as S
+ )
+ }
}
- return Reflect.get(target, key)
+ return value
},
})
}
package-lock.json
@@ -33,7 +33,6 @@
"esbuild-plugin-transform-hook": "^0.1.1",
"esbuild-plugin-utils": "^0.1.0",
"fs-extra": "^11.2.0",
- "fx": "*",
"globby": "^14.0.2",
"madge": "^8.0.0",
"minimist": "^1.2.8",
@@ -2553,16 +2552,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/fx": {
- "version": "35.0.0",
- "resolved": "https://registry.npmjs.org/fx/-/fx-35.0.0.tgz",
- "integrity": "sha512-O07q+Lknrom5RUX/u53tjo2KTTLUnL0K703JbqMYb19ORijfJNvijzFqqYXEjdk25T9R14S6t6wHD8fCWXCM0g==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "fx": "index.js"
- }
- },
"node_modules/get-amd-module-type": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/get-amd-module-type/-/get-amd-module-type-6.0.0.tgz",
package.json
@@ -84,8 +84,7 @@
"test:smoke:win32": "node ./test/smoke/win32.test.js",
"test:smoke:cjs": "node ./test/smoke/node.test.cjs",
"test:smoke:mjs": "node ./test/smoke/node.test.mjs",
- "test:smoke:deno": "deno test ./test/smoke/deno.test.js --allow-read --allow-sys --allow-env --allow-run",
- "version": "cat package.json | fx .version"
+ "test:smoke:deno": "deno test ./test/smoke/deno.test.js --allow-read --allow-sys --allow-env --allow-run"
},
"optionalDependencies": {
"@types/fs-extra": ">=11",
@@ -113,7 +112,6 @@
"esbuild-plugin-transform-hook": "^0.1.1",
"esbuild-plugin-utils": "^0.1.0",
"fs-extra": "^11.2.0",
- "fx": "*",
"globby": "^14.0.2",
"madge": "^8.0.0",
"minimist": "^1.2.8",