Reproduce (pullAll):
- Follow the instruction on: https://github.com/playcanvas/playcanvas-sync or https://forum.playcanvas.com/t/tutorial-how-to-setup-playcanvas-sync-from-first-step-to-the-last-step/27455
- pull project with:
pcsync.js pullAll
- Change a file remotely
- pull project again with:
pcsync.js pullAll
We only get a change on the pcconfig.json file, which we did not change either locally or remotely.
It should also not be pulled or pushed as its in the pcignore.txt file. However, that is a separate issue.
pcignore.txt:
Reproduce (pushAll):
- Follow the instruction on: https://github.com/playcanvas/playcanvas-sync or https://forum.playcanvas.com/t/tutorial-how-to-setup-playcanvas-sync-from-first-step-to-the-last-step/27455
- pull project with:
pcsync.js pullAll
- Change a file locally
- push project with:
pcsync.js pushAll
Same issue as pullAll, no changed files are being pushed or synced to/with remote.
It seems not to be an issue with the pcconfig.json or .pcconfig files as the project is pulling the first time correctly. adding all the files to the local directory we indicated. Its only when we make a change and try to sync local with remote or vise versa.
We made a small change to the type-utils.js file by adding support for typescript sync.
We are adding the binary asset type to TEXTUAL_ASSET_TYPES
in type-utils.js
and we also added 'binary':['.ts']
, to TYPE_TO_EXT
.
We find it a little bit weird that .ts files are being seen as binary files, however, I don’t believe that should break anything either locally or remotely in the project. Its just for making sure across developers we have the same files.
type-utils.js:
line 4 and 14.
Nevertheless, when we tried it with just Javascript files, not changing the type-utils.js code in any way, we still run into the indicated issue.
.pcconfig:
pcconfig.json in our project dir:
Any help would be appreciated