occam-open-cli 5.0.115 → 5.0.117
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/bin/actions.js +5 -0
- package/bin/main.js +10 -14
- package/package.json +2 -2
package/bin/actions.js
CHANGED
|
@@ -58,6 +58,11 @@ function actions(command, argument, options) {
|
|
|
58
58
|
case SET_OPTIONS_COMMAND : setOptionsAction(); break;
|
|
59
59
|
case CREATE_ACCOUNT_COMMAND : createAccountAction(argument); break;
|
|
60
60
|
case RESET_PASSWORD_COMMAND : resetPasswordAction(argument); break;
|
|
61
|
+
|
|
62
|
+
default:
|
|
63
|
+
argument = command; ///
|
|
64
|
+
|
|
65
|
+
openAction(argument, quietly);
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
|
package/bin/main.js
CHANGED
|
@@ -6,32 +6,28 @@ const actions = require("./actions");
|
|
|
6
6
|
|
|
7
7
|
const { DOUBLE_DOTS } = require("./constants"),
|
|
8
8
|
{ PUBLISH_COMMAND } = require("./commands"),
|
|
9
|
-
{ DEFAULT_HELP, DEFAULT_VERSION } = require("./defaults"),
|
|
10
9
|
{ checkConfigurationFileExists, migrateConfigurationFile } = require("./configuration");
|
|
11
10
|
|
|
12
11
|
const { bottommostNameFromPath } = pathUtilities;
|
|
13
12
|
|
|
14
13
|
function main(command, argument, options) {
|
|
15
|
-
const commandExists = (command !== null),
|
|
16
|
-
{ help = DEFAULT_HELP, version = DEFAULT_VERSION } = options;
|
|
17
|
-
|
|
18
14
|
let configurationFileExists = checkConfigurationFileExists();
|
|
19
15
|
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
process.chdir(DOUBLE_DOTS);
|
|
16
|
+
if (command === PUBLISH_COMMAND) { ///
|
|
17
|
+
if (argument === null) {
|
|
18
|
+
const currentWorkingDirectoryPath = process.cwd(); ///
|
|
24
19
|
|
|
25
|
-
|
|
20
|
+
process.chdir(DOUBLE_DOTS);
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
const oldCurrentWorkingDirectoryPath = currentWorkingDirectoryPath; ///
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
const bottommostOldCurrentWorkingDirectoryName = bottommostNameFromPath(oldCurrentWorkingDirectoryPath);
|
|
24
|
+
configurationFileExists = checkConfigurationFileExists();
|
|
31
25
|
|
|
32
|
-
|
|
26
|
+
if (configurationFileExists) {
|
|
27
|
+
const bottommostOldCurrentWorkingDirectoryName = bottommostNameFromPath(oldCurrentWorkingDirectoryPath);
|
|
33
28
|
|
|
34
|
-
|
|
29
|
+
argument = bottommostOldCurrentWorkingDirectoryName; ///
|
|
30
|
+
}
|
|
35
31
|
}
|
|
36
32
|
}
|
|
37
33
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "occam-open-cli",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.117",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/occam-open-cli",
|
|
7
7
|
"description": "Occam's command line package management tool.",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"argumentative": "^2.0.21",
|
|
14
14
|
"necessary": "^11.1.4",
|
|
15
|
-
"occam-file-system": "^5.0.
|
|
15
|
+
"occam-file-system": "^5.0.80"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {},
|
|
18
18
|
"bin": {
|