fix: correctly change working dir to projectPath

This commit is contained in:
Jonas Kruckenberg 2022-05-08 14:56:34 +02:00
parent 2d849ab665
commit 8864b18928
No known key found for this signature in database
GPG Key ID: 21AD3B3C266BDE3D
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Correctly change working dir to projectPath when configured.

View File

@ -13,7 +13,7 @@ interface BuildOptions {
}
export async function buildProject(options: BuildOptions): Promise<string[]> {
const projectPath = options.configPath || process.cwd()
const projectPath = options.projectPath || process.cwd()
let args: string[] = options.args || []