@diplodoc/cli-tests 4.59.4 → 4.59.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const MODULE_PATH = require.resolve('../../../');
|
|
2
|
-
|
|
3
1
|
export class SourceRunner {
|
|
2
|
+
readonly MODULE_PATH = require.resolve('../../../');
|
|
3
|
+
|
|
4
4
|
async runYfmDocs(argv: string[]): Promise<void> {
|
|
5
|
-
const {run} = await import(MODULE_PATH);
|
|
5
|
+
const {run} = await import(this.MODULE_PATH);
|
|
6
6
|
|
|
7
|
-
const baseArgs = ['node', MODULE_PATH, ...argv];
|
|
7
|
+
const baseArgs = ['node', this.MODULE_PATH, ...argv];
|
|
8
8
|
|
|
9
9
|
const exitCode = await run(baseArgs);
|
|
10
10
|
|