Skip to content

Commit

Permalink
create cache folder in temp 'cwd ' folder (#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
superxp1412 authored and bestander committed Dec 5, 2016
1 parent d98ec45 commit eb66b9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __tests__/commands/_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export async function run<T, R>(
await fs.mkdirp(path.join(cwd, '.yarn-cache'));
await fs.mkdirp(path.join(cwd, 'node_modules'));

// make sure the cache folder been created in temp folder
if (flags.cacheFolder) {
flags.cacheFolder = path.join(cwd, flags.cacheFolder);
}

try {
const config = new Config(reporter);
await config.init({
Expand Down

0 comments on commit eb66b9c

Please sign in to comment.