Skip to content

Commit

Permalink
Create .haste_cache directory before baseCacheDir
Browse files Browse the repository at this point in the history
Summary: Closes jestjs#648

Reviewed By: svcscm

Differential Revision: D2757209

fb-gh-sync-id: da43e73b9ac8780a10a0516b20d40dc9c18319e9
  • Loading branch information
shayne authored and facebook-github-bot-2 committed Dec 14, 2015
1 parent 2df8b34 commit 34052d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ module.exports = (filePath, config) => {
cacheDir,
path.basename(filePath, path.extname(filePath)) + '_' + cacheKey
);


createDirectory(config.cacheDirectory);
createDirectory(baseCacheDir);
createDirectory(cacheDir);
const cachedData = readCacheFile(filePath, cachePath);
Expand Down

0 comments on commit 34052d4

Please sign in to comment.