From 80e30fd728641c40ea8ff985bf725ba1885fc638 Mon Sep 17 00:00:00 2001 From: Adam Zielinski Date: Fri, 13 Nov 2020 15:08:25 +0100 Subject: [PATCH] add artifacts to .gitignore and use process.cwd() instead of __dirname (#26957) --- .gitignore | 1 + packages/e2e-tests/config/setup-debug-artifacts.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a3ebac937fc66c..1abc17c92206b3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ gutenberg.zip phpcs.xml yarn.lock /wordpress +/artifacts playground/dist .cache diff --git a/packages/e2e-tests/config/setup-debug-artifacts.js b/packages/e2e-tests/config/setup-debug-artifacts.js index 577fc0f5130cdb..dc491a74742280 100644 --- a/packages/e2e-tests/config/setup-debug-artifacts.js +++ b/packages/e2e-tests/config/setup-debug-artifacts.js @@ -3,7 +3,7 @@ */ const fs = require( 'fs' ); const util = require( 'util' ); -const root = process.env.GITHUB_WORKSPACE || __dirname + '/../../../'; +const root = process.env.GITHUB_WORKSPACE || process.cwd(); const ARTIFACTS_PATH = root + '/artifacts'; const writeFile = util.promisify( fs.writeFile );