@magek/cli 0.0.2 → 0.0.4

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/run CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- require('@oclif/core').run()
3
+ require('../dist/index.js').run()
4
4
  .then(require('@oclif/core/flush'))
5
5
  .catch(require('@oclif/core/handle'))
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COMMANDS = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const clean_js_1 = tslib_1.__importDefault(require("./clean.js"));
6
+ const projection_js_1 = tslib_1.__importDefault(require("./add/projection.js"));
7
+ const reducer_js_1 = tslib_1.__importDefault(require("./add/reducer.js"));
8
+ const command_js_1 = tslib_1.__importDefault(require("./new/command.js"));
9
+ const entity_js_1 = tslib_1.__importDefault(require("./new/entity.js"));
10
+ const event_handler_js_1 = tslib_1.__importDefault(require("./new/event-handler.js"));
11
+ const event_js_1 = tslib_1.__importDefault(require("./new/event.js"));
12
+ const query_js_1 = tslib_1.__importDefault(require("./new/query.js"));
13
+ const read_model_js_1 = tslib_1.__importDefault(require("./new/read-model.js"));
14
+ const scheduled_command_js_1 = tslib_1.__importDefault(require("./new/scheduled-command.js"));
15
+ const type_js_1 = tslib_1.__importDefault(require("./new/type.js"));
16
+ const publish_js_1 = tslib_1.__importDefault(require("./stub/publish.js"));
17
+ exports.COMMANDS = {
18
+ clean: clean_js_1.default,
19
+ 'add:projection': projection_js_1.default,
20
+ 'add:reducer': reducer_js_1.default,
21
+ 'new:command': command_js_1.default,
22
+ 'new:entity': entity_js_1.default,
23
+ 'new:event-handler': event_handler_js_1.default,
24
+ 'new:event': event_js_1.default,
25
+ 'new:query': query_js_1.default,
26
+ 'new:read-model': read_model_js_1.default,
27
+ 'new:scheduled-command': scheduled_command_js_1.default,
28
+ 'new:type': type_js_1.default,
29
+ 'stub:publish': publish_js_1.default,
30
+ };
package/dist/index.js CHANGED
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var core_1 = require("@oclif/core");
4
- Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
3
+ exports.run = exports.COMMANDS = void 0;
4
+ const core_1 = require("@oclif/core");
5
+ var index_js_1 = require("./commands/index.js");
6
+ Object.defineProperty(exports, "COMMANDS", { enumerable: true, get: function () { return index_js_1.COMMANDS; } });
7
+ const run = async (argv) => {
8
+ return (0, core_1.run)(argv);
9
+ };
10
+ exports.run = run;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magek/cli",
3
3
  "description": "CLI of the Magek Framework, the next level of abstraction for cloud-native applications",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "author": "Boosterin Labs SLU",
6
6
  "homepage": "https://magek.ai",
7
7
  "publishConfig": {
@@ -12,23 +12,23 @@
12
12
  },
13
13
  "bugs": "https://github.com/theam/magek/issues",
14
14
  "dependencies": {
15
- "@magek/core": "^0.0.2",
16
- "@magek/common": "^0.0.2",
15
+ "@magek/common": "^0.0.4",
17
16
  "@oclif/core": "4.8.0",
18
17
  "@oclif/plugin-help": "6.2.36",
18
+ "@oclif/plugin-plugins": "5.4.54",
19
19
  "chalk": "5.6.2",
20
20
  "execa": "9.6.1",
21
21
  "fp-ts": "2.16.11",
22
22
  "fs-extra": "11.3.3",
23
23
  "inflected": "2.1.0",
24
- "inquirer": "13.1.0",
24
+ "inquirer": "13.2.0",
25
25
  "mustache": "4.2.0",
26
26
  "ora": "9.0.0",
27
27
  "ts-morph": "27.0.2",
28
28
  "tslib": "2.8.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@magek/eslint-config": "^0.0.2",
31
+ "@magek/eslint-config": "^0.0.4",
32
32
  "@oclif/test": "4.1.15",
33
33
  "@types/chai": "5.2.3",
34
34
  "@types/chai-as-promised": "8.0.2",
@@ -36,7 +36,7 @@
36
36
  "@types/inflected": "2.1.3",
37
37
  "@types/mocha": "10.0.10",
38
38
  "@types/mustache": "4.2.6",
39
- "@types/node": "22.19.3",
39
+ "@types/node": "22.19.7",
40
40
  "@types/sinon": "21.0.0",
41
41
  "@types/sinon-chai": "4.0.0",
42
42
  "chai": "6.2.2",
@@ -65,11 +65,19 @@
65
65
  "license": "Apache-2.0",
66
66
  "main": "dist/index.js",
67
67
  "oclif": {
68
- "commands": "./dist/commands",
68
+ "commands": {
69
+ "strategy": "explicit",
70
+ "target": "./dist/commands/index.js",
71
+ "identifier": "COMMANDS"
72
+ },
69
73
  "bin": "magek",
70
74
  "plugins": [
71
- "@oclif/plugin-help"
75
+ "@oclif/plugin-help",
76
+ "@oclif/plugin-plugins"
72
77
  ],
78
+ "jitPlugins": {
79
+ "@magek/adapter-nedb": "^0.0.2"
80
+ },
73
81
  "hooks": {
74
82
  "command_not_found": "./dist/hooks/command_not_found/custom-parse"
75
83
  }