Description
We are currently in the process of developing a website for our client, and we are utilizing the cool --convertFields
feature for shared fields. To take advantage of the ES6 syntax, I am using the .mjs format, which has been working well overall.
However, I have encountered a particular issue with the --convertFields
feature when using the hs upload <src> <dest> --convertFields
CLI command. The problem is that it uploads all files except for the fields.mjs ones, so we are missing our fields across all modules.
The workaround is to simply use hs watch <src> <dest> --convertFields
command and manually save each .mjs file individually, then the converted files are getting successfully uploaded to Hubspot.
I am curious to know if this issue is a known bug or if there is an alternative command that allows for uploading the entire project seamlessly.
It clearly says that we can use hs upload
in documentation - https://developers.hubspot.com/docs/cms/building-blocks/modules/write-fields-using-javascript#hs_cos...