aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-16 20:22:15 +0800
committerFabio Berger <me@fabioberger.com>2018-10-16 20:22:15 +0800
commit8cffe65047ed193b52ccacc346ce8ad1983f02f4 (patch)
tree335bf536a5c00448b05284741ece40a82c97ac5d /packages/monorepo-scripts/src
parent5bdfad9b415fc183102d5f5a7f3a08782921f003 (diff)
downloaddexon-sol-tools-8cffe65047ed193b52ccacc346ce8ad1983f02f4.tar
dexon-sol-tools-8cffe65047ed193b52ccacc346ce8ad1983f02f4.tar.gz
dexon-sol-tools-8cffe65047ed193b52ccacc346ce8ad1983f02f4.tar.bz2
dexon-sol-tools-8cffe65047ed193b52ccacc346ce8ad1983f02f4.tar.lz
dexon-sol-tools-8cffe65047ed193b52ccacc346ce8ad1983f02f4.tar.xz
dexon-sol-tools-8cffe65047ed193b52ccacc346ce8ad1983f02f4.tar.zst
dexon-sol-tools-8cffe65047ed193b52ccacc346ce8ad1983f02f4.zip
fix(monorepo-scripts): Move the creation of the `.installation-test` directory OUTSIDE of the monorepo root, so that the installed packages can't reference the hoisted node_modules folder
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r--packages/monorepo-scripts/src/test_installation.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/monorepo-scripts/src/test_installation.ts b/packages/monorepo-scripts/src/test_installation.ts
index f272c9292..9ef9e829b 100644
--- a/packages/monorepo-scripts/src/test_installation.ts
+++ b/packages/monorepo-scripts/src/test_installation.ts
@@ -104,13 +104,7 @@ async function testInstallPackageAsync(
const packageName = installablePackage.packageJson.name;
utils.log(`Testing ${packageName}@${lastChangelogVersion}`);
const packageDirName = path.join(...(packageName + '-test').split('/'));
- const testDirectory = path.join(
- monorepoRootPath,
- 'packages',
- 'monorepo-scripts',
- '.installation-test',
- packageDirName,
- );
+ const testDirectory = path.join(monorepoRootPath, '..', '.installation-test', packageDirName);
await rimrafAsync(testDirectory);
await mkdirpAsync(testDirectory);
await execAsync('yarn init --yes', { cwd: testDirectory });