Created
April 17, 2019 19:14
-
-
Save tofran/949060c7e385c66bfb76efa043479028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a workaround for storybookjs/storybook#6194