From 8864b1892897635a72de9bfce95f395c39c35eb1 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Sun, 8 May 2022 14:56:34 +0200 Subject: [PATCH] fix: correctly change working dir to projectPath --- .changes/fix-project-path.md | 5 +++++ src/build-project.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-project-path.md diff --git a/.changes/fix-project-path.md b/.changes/fix-project-path.md new file mode 100644 index 0000000..be8476c --- /dev/null +++ b/.changes/fix-project-path.md @@ -0,0 +1,5 @@ +--- +"tauri-build": patch +--- + +Correctly change working dir to projectPath when configured. \ No newline at end of file diff --git a/src/build-project.ts b/src/build-project.ts index 1d9a26c..ed1cf24 100644 --- a/src/build-project.ts +++ b/src/build-project.ts @@ -13,7 +13,7 @@ interface BuildOptions { } export async function buildProject(options: BuildOptions): Promise { - const projectPath = options.configPath || process.cwd() + const projectPath = options.projectPath || process.cwd() let args: string[] = options.args || []