tt icon indicating copy to clipboard operation
tt copied to clipboard

``tt build`` command in cartridge app deleted user's ``doc`` directory

Open Satbek opened this issue 1 year ago • 3 comments

I had cartridge app and wanted to switch to tt instead of cartridge. I ran tt build, it had built, but removed my doc dir.

Satbek avatar Nov 03 '23 08:11 Satbek

This issue is due to post-build script invocation. It must be invoked in the pack command after building an app and use temporary app directory as a working dir for the commands in a post-build script.

psergee avatar Nov 03 '23 08:11 psergee

cartridge build does not run post-build script, and nothing was deleted after cartridge build

Satbek avatar Nov 03 '23 08:11 Satbek

I met the same behaviour and was surprised

ArtDu avatar Nov 08 '23 08:11 ArtDu