doc-detective 3.0.1 → 3.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils.js +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-detective",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Treat doc content as testable assertions to validate doc accuracy and product UX.",
5
5
  "bin": {
6
6
  "doc-detective": "src/index.js"
package/src/utils.js CHANGED
@@ -77,12 +77,14 @@ async function setConfig(config, args, configPath) {
77
77
  }
78
78
  // Override config values
79
79
  if (args.input) {
80
- config.input = args.input;
80
+ config.input = path.resolve(args.input);
81
81
  }
82
82
  if (args.output) {
83
- config.output = args.output;
83
+ config.output = path.resolve(args.output);
84
+ }
85
+ if (args.logLevel) {
86
+ config.logLevel = args.logLevel;
84
87
  }
85
- if (args.logLevel) config.logLevel = args.logLevel;
86
88
  // Resolve paths
87
89
  config = await resolvePaths({
88
90
  config: config,