@travetto/cli 5.0.2 → 5.0.3
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/README.md +1 -1
- package/__index__.ts +1 -1
- package/bin/trv.js +1 -1
- package/package.json +3 -4
- package/src/trv.d.ts +2 -2
package/README.md
CHANGED
|
@@ -500,7 +500,7 @@ export class RunRestCommand implements CliCommandShape {
|
|
|
500
500
|
}
|
|
501
501
|
```
|
|
502
502
|
|
|
503
|
-
As noted in the example above, `fields` is specified in this execution, with support for `module`, and `env`. These env flag is directly tied to the [Runtime](https://github.com/travetto/travetto/tree/main/module/runtime/src/env.ts#
|
|
503
|
+
As noted in the example above, `fields` is specified in this execution, with support for `module`, and `env`. These env flag is directly tied to the [Runtime](https://github.com/travetto/travetto/tree/main/module/runtime/src/env.ts#L111) `name` defined in the [Runtime](https://github.com/travetto/travetto/tree/main/module/runtime#readme "Runtime for travetto applications.") module.
|
|
504
504
|
|
|
505
505
|
The `module` field is slightly more complex, but is geared towards supporting commands within a monorepo context. This flag ensures that a module is specified if running from the root of the monorepo, and that the module provided is real, and can run the desired command. When running from an explicit module folder in the monorepo, the module flag is ignored.
|
|
506
506
|
|
package/__index__.ts
CHANGED
package/bin/trv.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// @ts-check
|
|
4
|
-
|
|
4
|
+
const { getEntry } = require('@travetto/compiler/bin/common.js');
|
|
5
5
|
|
|
6
6
|
getEntry().then(ops => ops.getLoader()).then(load => load('@travetto/cli/support/entry.trv.js'));
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "CLI infrastructure for Travetto framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
7
7
|
"travetto",
|
|
8
8
|
"typescript"
|
|
9
9
|
],
|
|
10
|
-
"type": "module",
|
|
11
10
|
"homepage": "https://travetto.io",
|
|
12
11
|
"license": "MIT",
|
|
13
12
|
"author": {
|
|
@@ -29,8 +28,8 @@
|
|
|
29
28
|
"directory": "module/cli"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
|
-
"@travetto/schema": "^5.0.
|
|
33
|
-
"@travetto/terminal": "^5.0.
|
|
31
|
+
"@travetto/schema": "^5.0.3",
|
|
32
|
+
"@travetto/terminal": "^5.0.3"
|
|
34
33
|
},
|
|
35
34
|
"travetto": {
|
|
36
35
|
"displayName": "Command Line Interface",
|
package/src/trv.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@travetto/runtime';
|
|
2
2
|
|
|
3
|
-
declare
|
|
4
|
-
interface
|
|
3
|
+
declare module '@travetto/runtime' {
|
|
4
|
+
interface EnvData {
|
|
5
5
|
/**
|
|
6
6
|
* Provides an IPC http url for the CLI to communicate with.
|
|
7
7
|
* This facilitates cli-based invocation for external usage.
|