@coding-with-hassan/devkit 1.0.0-next.2 → 1.0.0-next.3
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coding-with-hassan/devkit",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.3",
|
|
4
4
|
"description": "CLI for the developer workflow shared across Hassan's client projects: docker compose orchestration, db helpers, and husky hook installation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hassan Khousheish",
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { join } from 'node:path';
|
|
1
|
+
import { join, resolve } from 'node:path';
|
|
2
2
|
import { requireConfig, requireSection } from '../core/config.js';
|
|
3
3
|
import { generate } from '../core/test-cases/generate.js';
|
|
4
4
|
import { exitOnFailure } from '../util/run.js';
|
|
5
5
|
|
|
6
|
+
/** Pure: `--testers` accepts a path relative to the cwd or an absolute one. */
|
|
7
|
+
export function resolveTestersPath(cwd, arg) {
|
|
8
|
+
return resolve(cwd, arg);
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
12
|
* `test-cases:generate` — the acceptance-case workbooks from `<testCases.dir>/tc-data-*.ts`.
|
|
8
13
|
* Languages come from `testCases.languages`, the title from `testCases.title` (default: the
|
|
@@ -23,7 +28,7 @@ export function registerTestCases(cli) {
|
|
|
23
28
|
languages: tc.languages,
|
|
24
29
|
project: tc.title ?? loaded.pkg.name ?? loaded.rootName,
|
|
25
30
|
onlyLang: opts.lang ?? null,
|
|
26
|
-
testersFile: opts.testers ?
|
|
31
|
+
testersFile: opts.testers ? resolveTestersPath(process.cwd(), opts.testers) : null,
|
|
27
32
|
});
|
|
28
33
|
}),
|
|
29
34
|
),
|