[ACA-3593] fix library builds (#1593)

* upgrade to solution style tsconfig

* remove missing path

* add e2e config to the solution

* fix config path
This commit is contained in:
Denys Vuika
2020-08-11 17:13:22 +01:00
committed by GitHub
parent cf4af3bab5
commit b86db21e93
11 changed files with 94 additions and 84 deletions

View File

@@ -1,20 +1,20 @@
#!/usr/bin/env node
const path = require('path');
const tsConfigPath = path.resolve(__dirname, 'tsconfig.json');
const tsConfigPath = path.resolve(__dirname, 'tsconfig.base.json');
const tsConfig = require(tsConfigPath);
require('ts-node').register({ project: tsConfigPath });
require('tsconfig-paths').register({
project: tsConfigPath,
baseUrl: path.resolve(__dirname),
paths: tsConfig.compilerOptions.paths
project: tsConfigPath,
baseUrl: path.resolve(__dirname),
paths: tsConfig.compilerOptions.paths
});
const handlerParam = process.argv[2];
const RunnerClass = require(`./npm/${handlerParam}.ts`).default;
const runnerArgs = [ ...process.argv ];
const runnerArgs = [...process.argv];
runnerArgs.splice(2, 1);
const runner = new RunnerClass(runnerArgs);
runner.run();