From 77b3d1e4c3e49891c205b5ffc7c133818f02011b Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Tue, 6 Apr 2021 14:12:51 +1000 Subject: [PATCH] Fix path --- nodejs/buildnative.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodejs/buildnative.js b/nodejs/buildnative.js index bc196ee..0b96193 100644 --- a/nodejs/buildnative.js +++ b/nodejs/buildnative.js @@ -1,4 +1,5 @@ const cp = require("child_process"); +const path = require("path"); const pkg = require("./package.json"); cp.spawnSync( @@ -6,7 +7,7 @@ cp.spawnSync( [ "build", "--manifest-path", - "native/Cargo.toml", + path.join(__dirname, "native", "Cargo.toml"), "--release", "--features", pkg.name.split("/")[1],