Capacitor: Running any command leads to a build being triggered
owehmer opened this issue · comments
Oliver commented
Describe the bug
Ever since this commit every capacitor call leads to a build being triggered for us (Running build first...
). The problem is, that this line requires that {root}/dist/path/to/app
exists. We changed the default dist
folder, so that our build will be in another folder. The "correct" output folder should be read from the path/to/app/project.json
at targets.build.options.outputPath
.
To Reproduce
Steps to reproduce the behavior:
- change the
outputPath
in yourproject.json
- build your app and run any capacitor command OR
- run any capacitor command twice
=> both times a build will be triggered
Expected behavior
The second command should check if there is already a built app folder and therefore not run the build a second time.