@travetto/model 2.2.2 → 2.2.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/bin/cli-model_export.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseModelCommand } from './lib/base-command';
|
|
2
2
|
import { ModelExportUtil } from './lib/export';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* CLI Entry point for exporting model schemas
|
|
6
6
|
*/
|
|
7
|
-
export class
|
|
7
|
+
export class ModelExportCommand extends BaseModelCommand {
|
|
8
8
|
name = 'model:export';
|
|
9
9
|
op = 'exportModel' as const;
|
|
10
10
|
|
package/bin/cli-model_install.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { color } from '@travetto/cli/src/color';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { BaseModelCommand } from './lib/base-command';
|
|
4
4
|
import { ModelInstallUtil } from './lib/install';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* CLI Entry point for installing models
|
|
8
8
|
*/
|
|
9
|
-
export class
|
|
9
|
+
export class ModelInstallCommand extends BaseModelCommand {
|
|
10
10
|
name = 'model:install';
|
|
11
11
|
op = 'createModel' as const;
|
|
12
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CliCommand, OptionConfig } from '@travetto/cli/src/command';
|
|
2
2
|
import { color } from '@travetto/cli/src/color';
|
|
3
3
|
import { EnvInit } from '@travetto/base/bin/init';
|
|
4
4
|
import type { ModelStorageSupport } from '@travetto/model/src/service/storage';
|
|
@@ -12,7 +12,7 @@ type Options = {
|
|
|
12
12
|
/**
|
|
13
13
|
* CLI Entry point for exporting model schemas
|
|
14
14
|
*/
|
|
15
|
-
export abstract class
|
|
15
|
+
export abstract class BaseModelCommand extends CliCommand<Options> {
|
|
16
16
|
|
|
17
17
|
restoreEnv?: (err: Error) => unknown;
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model",
|
|
3
3
|
"displayName": "Data Modeling Support",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.3",
|
|
5
5
|
"description": "Datastore abstraction for core operations.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"datastore",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"directory": "module/model"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@travetto/di": "^2.2.
|
|
32
|
-
"@travetto/config": "^2.2.
|
|
33
|
-
"@travetto/registry": "^2.2.
|
|
34
|
-
"@travetto/schema": "^2.2.
|
|
31
|
+
"@travetto/di": "^2.2.3",
|
|
32
|
+
"@travetto/config": "^2.2.3",
|
|
33
|
+
"@travetto/registry": "^2.2.3",
|
|
34
|
+
"@travetto/schema": "^2.2.3"
|
|
35
35
|
},
|
|
36
36
|
"optionalPeerDependencies": {
|
|
37
|
-
"@travetto/cli": "^2.2.
|
|
37
|
+
"@travetto/cli": "^2.2.3"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|