Skip to content

Instantly share code, notes, and snippets.

@tofran
Created April 17, 2019 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tofran/949060c7e385c66bfb76efa043479028 to your computer and use it in GitHub Desktop.
Save tofran/949060c7e385c66bfb76efa043479028 to your computer and use it in GitHub Desktop.
const findCacheDir = require('find-cache-dir');
const Cache = require("file-system-cache").default;
const cache = Cache({
basePath: findCacheDir({ name: 'storybook' }),
ns: 'storybook'
});
const cache_data = {
success: true,
time: 3155760000000,
data: {
"latest": { "version": "0", "info": null},
"next": { "version": "0", "info": null},
},
};
cache.set('lastUpdateCheck', cache_data).then(
() => console.log("Saved lastUpdateCheck to storybook's cache")
);
@tofran
Copy link
Author

tofran commented Apr 17, 2019

This is a workaround for storybookjs/storybook#6194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment