@opscompass/opscompass-cli 1.3.1 → 1.3.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.
- package/lib/utils.js +3 -3
- package/package.json +2 -2
package/lib/utils.js
CHANGED
|
@@ -205,9 +205,9 @@ function getConfigFilePath(args = []) {
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
// If it's a relative path prepend
|
|
209
|
-
if (!cfgFile.filePath
|
|
210
|
-
cfgFile.filePath =
|
|
208
|
+
// If it's a relative path prepend current working directory
|
|
209
|
+
if (!path.isAbsolute(cfgFile.filePath)) {
|
|
210
|
+
cfgFile.filePath = path.join(process.cwd(), cfgFile.filePath);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
// If it is an explicit directory or missing .json
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opscompass/opscompass-cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Calls OpsCompass's APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "opscompass",
|
|
18
18
|
"license": "SEE LICENSE IN license.txt",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@opscompass/opscompass-api": "^1.
|
|
20
|
+
"@opscompass/opscompass-api": "^1.3.1",
|
|
21
21
|
"adm-zip": "^0.5.16",
|
|
22
22
|
"axios": "^0.28.1",
|
|
23
23
|
"better-sqlite3": "^11.8.0",
|