writeToURL*() function to save a document which for some reason doesn't trigger Versions file updates. If you replace it with
document.sketchObject.saveToURL_ofType_forSaveOperation_delegate_didSaveSelector_contextInfo(newFileURL, "com.bohemiancoding.sketch.drawing", NSSaveAsOperation, nil, nil, nil);
https://github.com/ingrammicro/puzzle-tokens/blob/620e16abfb2497d9ecd5f8acb8933be134ed8866/PuzzleTokens.sketchplugin/Contents/Sketch/cmdline-functions.js#L38-L39
writeToURL*() function to save a document which for some reason doesn't trigger Versions file updates. If you replace it with document.sketchObject.saveToURL_ofType_forSaveOperation_delegate_didSaveSelector_contextInfo(newFileURL, "com.bohemiancoding.sketch.drawing", NSSaveAsOperation, nil, nil, nil);