From 6c00390ca9509f1d42dfbb73532b47656b459775 Mon Sep 17 00:00:00 2001 From: hubvue Date: Mon, 18 Apr 2022 00:47:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=A7=E8=A1=8C=E4=BA=8C=E8=BF=9B?= =?UTF-8?q?=E5=88=B6=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/index.js b/bin/index.js index c8df20f..b939f9a 100644 --- a/bin/index.js +++ b/bin/index.js @@ -1,11 +1,12 @@ #!/usr/bin/env node const { spawn } = require('child_process') +const { resolve } = require('path') const executeBinary = async () => { const [, , ...args] = process.argv const options = { cwd: process.cwd(), stdio: "inherit" } - return spawn('./camer', args, options) + return spawn(resolve(__dirname, './camer'), args, options) } executeBinary().catch((e) => console.error(e))