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 || []