playcanvas / playcanvas-sync

Real-time synchronization of files between PlayCanvas and your local machine
https://playcanvas.com/
MIT License
75 stars 18 forks source link

Implement support for PLAYCANVAS_TARGET_SUBDIR config variable #35

Closed zachpeterpaul closed 2 years ago

zachpeterpaul commented 2 years ago

Fixes: https://github.com/playcanvas/playcanvas-sync/issues/34

For some workflows, it may be necessary to keep the pcconfig.json file at the top level in the target directory, but treat one of its subdirectories as the root of the local file hierarchy. In such cases PLAYCANVAS_TARGET_SUBDIR needs to be provided