wip: trying different things

This commit is contained in:
Marcus Eide
2020-04-16 15:49:18 +02:00
parent 60d6392e41
commit fb42fd490b
2 changed files with 8 additions and 6 deletions
+1 -4
View File
@@ -20,10 +20,7 @@ const path = require('path');
// Figure out whether we're running inside the backstage repo or as an installed dependency
const isLocal = require('fs').existsSync(path.resolve(__dirname, '../src'));
// This is used for e2e-tests where we create a new app in a tmp folder
const isTemp = path.resolve(__dirname).includes(require('os').tmpdir());
if (!isLocal || isTemp || process.env.BACKSTAGE_E2E_CLI_TEST) {
if (!isLocal || process.env.BACKSTAGE_E2E_CLI_TEST) {
// src-relative imports are a pain to get to work with plain tsc compilation, as the
// transpiled code will maintain the imports as they are in the source. Which means an
// import for `helpers/paths` will start like that in the output, which won't work in NodeJS.