Delete any remenants of test-env dir before creating a new one

This commit is contained in:
Fabio Berger
2018-07-26 14:23:45 +02:00
parent 9947e643d0
commit af4071e119

View File

@@ -25,6 +25,7 @@ import { utils } from './utils/utils';
const packageName = installablePackage.packageJson.name;
utils.log(`Testing ${packageName}@${lastChangelogVersion}`);
const testDirectory = path.join(monorepoRootPath, '../test-env');
rimraf.sync(testDirectory);
fs.mkdirSync(testDirectory);
await execAsync('yarn init --yes', { cwd: testDirectory });
const npmrcFilePath = path.join(testDirectory, '.npmrc');