@whoz-oss/coday-web 0.0.0-workstream-setup.8 → 0.0.0-workstream-setup.9
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/launcher.js +7 -4
- package/package.json +4 -4
package/launcher.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Tested with `node --test` (see launcher.test.js, run by the `web:test` Nx target).
|
|
4
4
|
*/
|
|
5
5
|
import { homedir } from 'os';
|
|
6
|
-
import { join } from 'path';
|
|
6
|
+
import { join, resolve } from 'path';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Decide how to run: `nx` (generated workspace, one pane per process) or `managed` (everything in the
|
|
@@ -19,13 +19,16 @@ export function chooseMode({ argv, env, isTTY }) {
|
|
|
19
19
|
return { mode: 'nx', reason: 'interactive terminal' };
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* `--configDir <dir>` / `--configDir=<dir>` / `--coday_config_dir ...`, default `~/.coday`. Always absolute: Nx and
|
|
24
|
+
* its tasks run from `<configDir>/runtime`, where a relative directory would point somewhere else.
|
|
25
|
+
*/
|
|
23
26
|
export function resolveConfigDir(argv, home = homedir()) {
|
|
24
27
|
for (let i = 0; i < argv.length; i++) {
|
|
25
28
|
const arg = argv[i];
|
|
26
29
|
for (const flag of ['--configDir', '--coday_config_dir']) {
|
|
27
|
-
if (arg === flag && argv[i + 1]) return argv[i + 1];
|
|
28
|
-
if (arg.startsWith(`${flag}=`)) return arg.slice(flag.length + 1);
|
|
30
|
+
if (arg === flag && argv[i + 1]) return resolve(argv[i + 1]);
|
|
31
|
+
if (arg.startsWith(`${flag}=`)) return resolve(arg.slice(flag.length + 1));
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
return join(home, '.coday');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whoz-oss/coday-web",
|
|
3
|
-
"version": "0.0.0-workstream-setup.
|
|
3
|
+
"version": "0.0.0-workstream-setup.9",
|
|
4
4
|
"repository": "https://github.com/whoz-oss/coday",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"nx": "23.1.1",
|
|
16
|
-
"@whoz-oss/coday-
|
|
17
|
-
"@whoz-oss/coday-
|
|
18
|
-
"@whoz-oss/coday-
|
|
16
|
+
"@whoz-oss/coday-client": "0.0.0-workstream-setup.9",
|
|
17
|
+
"@whoz-oss/coday-factory-cockpit": "0.0.0-workstream-setup.9",
|
|
18
|
+
"@whoz-oss/coday-server": "0.0.0-workstream-setup.9"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|