aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-26 20:23:45 +0800
committerFabio Berger <me@fabioberger.com>2018-07-26 20:23:45 +0800
commitaf4071e119b4cb651ae311ea1200fdd76f8123e7 (patch)
tree3a372122c44cb5592c51e5d39d5d00876044baaf /packages/monorepo-scripts
parent9947e643d0b201a0dad122fbe1a6f4a226469944 (diff)
downloaddexon-sol-tools-af4071e119b4cb651ae311ea1200fdd76f8123e7.tar
dexon-sol-tools-af4071e119b4cb651ae311ea1200fdd76f8123e7.tar.gz
dexon-sol-tools-af4071e119b4cb651ae311ea1200fdd76f8123e7.tar.bz2
dexon-sol-tools-af4071e119b4cb651ae311ea1200fdd76f8123e7.tar.lz
dexon-sol-tools-af4071e119b4cb651ae311ea1200fdd76f8123e7.tar.xz
dexon-sol-tools-af4071e119b4cb651ae311ea1200fdd76f8123e7.tar.zst
dexon-sol-tools-af4071e119b4cb651ae311ea1200fdd76f8123e7.zip
Delete any remenants of test-env dir before creating a new one
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/test_installation.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/test_installation.ts b/packages/monorepo-scripts/src/test_installation.ts
index 1d9e3569d..b10db5a06 100644
--- a/packages/monorepo-scripts/src/test_installation.ts
+++ b/packages/monorepo-scripts/src/test_installation.ts
@@ -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');