I have a local sketch document used as library.
And i use following codes to get importable symbol references of this library with regard to my current document:
const library = sketch.Library.getLibraryForDocumentAtPath(s);
const symbolReferences = library.getImportableSymbolReferencesForDocument(
Initially, it's working file.
However, when I update components in my local library, the information of importable symbol references with regard to my current document is not updated. I need to manually click 'sync library components' in my sketch. I'm just wondering how to do this programatically in the plugin