Skip to content

Commit

Permalink
Merge pull request #4792 from alex-fournier/fix-cache-directory
Browse files Browse the repository at this point in the history
Fixes #4665: set correct cache directory path
  • Loading branch information
ndelangen authored and shilman committed Nov 25, 2018
1 parent 8d3ec44 commit 453740f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/core/src/server/build-dev.js
Expand Up @@ -8,6 +8,7 @@ import chalk from 'chalk';
import { logger } from '@storybook/node-logger';
import fetch from 'node-fetch';
import Cache from 'file-system-cache';
import findCacheDir from 'find-cache-dir';
import opn from 'opn';
import boxen from 'boxen';
import semver from 'semver';
Expand All @@ -20,6 +21,7 @@ import { getDevCli } from './cli';
const defaultFavIcon = require.resolve('./public/favicon.ico');

const cache = Cache({
basePath: findCacheDir({ name: 'storybook' }),
ns: 'storybook', // Optional. A grouping namespace for items.
});

Expand Down

0 comments on commit 453740f

Please sign in to comment.