@keber/qa-framework 1.1.0 → 1.1.1
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 +1 -1
- package/scripts/init.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keber/qa-framework",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Reusable spec-driven QA framework for IDE-agent-assisted automated testing. Installable as an npm package. Provides structure, templates, agent instructions, and optional integrations for Playwright and Azure DevOps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"qa",
|
package/scripts/init.js
CHANGED
|
@@ -25,7 +25,9 @@ if (configFlag !== -1 && !args[configFlag + 1]) {
|
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
// When run as postinstall, process.cwd() points to node_modules/@keber/qa-framework.
|
|
29
|
+
// INIT_CWD is set by npm to the directory where `npm install` was invoked (the project root).
|
|
30
|
+
const cwd = process.env.INIT_CWD || process.cwd();
|
|
29
31
|
const explicitConfigPath = configFlag !== -1 ? path.resolve(cwd, args[configFlag + 1]) : null;
|
|
30
32
|
const rootConfigPath = path.resolve(cwd, 'qa-framework.config.json');
|
|
31
33
|
const qaConfigPath = path.resolve(cwd, 'qa', 'qa-framework.config.json');
|