nxext / nx-extensions

Nx Extension for StencilJs, SvelteJS, SolidJS, Ionic and VueJs
MIT License
454 stars 99 forks source link

Capacitor: Running any command leads to a build being triggered #981

Closed owehmer closed 1 year ago

owehmer commented 1 year ago

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:

=> 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.