@h3ravel/console 11.0.5 → 11.0.7
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/chunk-6Z5DP356.js +1 -0
- package/bin/lexer-DQCqS3nf-XQPNMZG6.js +4 -0
- package/bin/run.cjs +6 -6
- package/bin/run.js +6 -6
- package/dist/Commands/MigrateCommand.cjs +0 -2
- package/dist/Commands/MigrateCommand.js +1 -1
- package/dist/Commands/ServeCommand.cjs +1 -1
- package/dist/Commands/ServeCommand.js +1 -1
- package/dist/IO/app.cjs +24 -13
- package/dist/IO/app.js +7 -7
- package/dist/IO/providers.cjs +24 -5
- package/dist/IO/providers.js +6 -6
- package/dist/Kernel.cjs +1 -3
- package/dist/Kernel.js +4 -4
- package/dist/Musket.cjs +1 -3
- package/dist/Musket.js +3 -3
- package/dist/Providers/ConsoleServiceProvider.cjs +11 -3
- package/dist/Providers/ConsoleServiceProvider.js +5 -5
- package/dist/chunk-23QH5R54.js +27 -0
- package/dist/chunk-3ASEWMRX.js +37 -0
- package/dist/chunk-3RX6CLNR.js +32 -0
- package/dist/chunk-6OIH6FS4.js +32 -0
- package/dist/chunk-7EWRZPTX.js +63 -0
- package/dist/chunk-7PUQ5ZIN.js +6 -0
- package/dist/chunk-A5AONVOH.js +6 -0
- package/dist/chunk-ADIVRUAJ.js +27 -0
- package/dist/chunk-CCEWV2BR.js +39 -0
- package/dist/chunk-DXQTBFGG.js +31 -0
- package/dist/chunk-E4SSLXFT.js +63 -0
- package/dist/chunk-EIOQKTRM.js +104 -0
- package/dist/chunk-G4OE26TZ.js +33 -0
- package/dist/chunk-K3GOQSS3.js +6 -0
- package/dist/chunk-KCJKQP37.js +133 -0
- package/dist/chunk-KZA3MC77.js +151 -0
- package/dist/chunk-LLL3V7LB.js +6 -0
- package/dist/chunk-LQ6DL2HS.js +68 -0
- package/dist/chunk-MPXPSSLJ.js +133 -0
- package/dist/chunk-NFRXMBRP.js +24 -0
- package/dist/chunk-NVPKTRMT.js +7 -0
- package/dist/chunk-ORPRWIQ2.js +33 -0
- package/dist/chunk-PBNCVQZC.js +6 -0
- package/dist/chunk-PYSJMSNM.js +27 -0
- package/dist/chunk-Q3OMG6YH.js +186 -0
- package/dist/chunk-QCNBVSFO.js +68 -0
- package/dist/chunk-QMEO4OUR.js +151 -0
- package/dist/chunk-QSQNELZQ.js +83 -0
- package/dist/chunk-T6OOKENF.js +6 -0
- package/dist/chunk-TBDROT3I.js +6356 -0
- package/dist/chunk-TH2RWMWA.js +133 -0
- package/dist/chunk-UWCTG2LX.js +24 -0
- package/dist/chunk-WO2BXMBQ.js +6 -0
- package/dist/chunk-XAWZUZVP.js +32 -0
- package/dist/chunk-XD2Q7LWE.js +24 -0
- package/dist/chunk-XUYTJO6X.js +104 -0
- package/dist/chunk-YRUCICBV.js +24 -0
- package/dist/chunk-Z5XE72Q5.js +68 -0
- package/dist/index.cjs +25 -13
- package/dist/index.js +8 -8
- package/dist/lexer-DQCqS3nf-6W2BHF4T.js +68 -0
- package/dist/run.cjs +27 -13
- package/dist/run.js +8 -8
- package/package.json +7 -2
package/dist/run.cjs
CHANGED
|
@@ -24,13 +24,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
mod
|
|
25
25
|
));
|
|
26
26
|
|
|
27
|
+
// src/run.ts
|
|
28
|
+
var import_esm = require("tsx/esm");
|
|
29
|
+
|
|
27
30
|
// src/IO/app.ts
|
|
28
31
|
var import_core2 = require("@h3ravel/core");
|
|
29
|
-
var import_node_events = require("events");
|
|
30
32
|
|
|
31
33
|
// src/IO/providers.ts
|
|
32
|
-
var
|
|
34
|
+
var import_http = require("@h3ravel/http");
|
|
35
|
+
var import_router = require("@h3ravel/router");
|
|
33
36
|
var import_database = require("@h3ravel/database");
|
|
37
|
+
var import_cache = require("@h3ravel/cache");
|
|
38
|
+
var import_queue = require("@h3ravel/queue");
|
|
39
|
+
var import_mail = require("@h3ravel/mail");
|
|
40
|
+
var import_config = require("@h3ravel/config");
|
|
41
|
+
|
|
42
|
+
// src/Providers/ConsoleServiceProvider.ts
|
|
43
|
+
var import_node_events = require("events");
|
|
34
44
|
|
|
35
45
|
// src/Utils.ts
|
|
36
46
|
var import_promises = require("fs/promises");
|
|
@@ -426,7 +436,6 @@ var MakeCommand = class extends Command {
|
|
|
426
436
|
};
|
|
427
437
|
|
|
428
438
|
// src/Commands/MigrateCommand.ts
|
|
429
|
-
var import_arquebus = require("@h3ravel/arquebus");
|
|
430
439
|
var MigrateCommand = class extends Command {
|
|
431
440
|
static {
|
|
432
441
|
__name(this, "MigrateCommand");
|
|
@@ -510,7 +519,6 @@ var MigrateCommand = class extends Command {
|
|
|
510
519
|
*/
|
|
511
520
|
async migrateStatus() {
|
|
512
521
|
const path3 = app_path();
|
|
513
|
-
console.log(import_arquebus.arquebus.connection());
|
|
514
522
|
this.kernel.output.success(`Show the status of each migration.`);
|
|
515
523
|
}
|
|
516
524
|
/**
|
|
@@ -553,7 +561,7 @@ var ServeCommand = class extends Command {
|
|
|
553
561
|
env: Object.assign({}, process.env, {
|
|
554
562
|
NODE_ENV: "development"
|
|
555
563
|
}),
|
|
556
|
-
detached:
|
|
564
|
+
detached: false
|
|
557
565
|
});
|
|
558
566
|
const cleanup = /* @__PURE__ */ __name(() => {
|
|
559
567
|
console.log(111111);
|
|
@@ -892,16 +900,29 @@ var ConsoleServiceProvider = class extends import_core.ServiceProvider {
|
|
|
892
900
|
}
|
|
893
901
|
static priority = 992;
|
|
894
902
|
register() {
|
|
903
|
+
}
|
|
904
|
+
boot() {
|
|
895
905
|
Kernel.init(this.app);
|
|
906
|
+
new import_node_events.EventEmitter().once("SIGINT", () => process.exit(0));
|
|
907
|
+
process.on("SIGINT", () => {
|
|
908
|
+
process.exit(0);
|
|
909
|
+
});
|
|
910
|
+
process.on("SIGTERM", () => {
|
|
911
|
+
process.exit(0);
|
|
912
|
+
});
|
|
896
913
|
}
|
|
897
914
|
};
|
|
898
915
|
|
|
899
916
|
// src/IO/providers.ts
|
|
900
|
-
var import_http = require("@h3ravel/http");
|
|
901
917
|
var providers_default = [
|
|
902
918
|
import_http.HttpServiceProvider,
|
|
903
919
|
import_config.ConfigServiceProvider,
|
|
920
|
+
import_router.RouteServiceProvider,
|
|
921
|
+
import_router.AssetsServiceProvider,
|
|
904
922
|
import_database.DatabaseServiceProvider,
|
|
923
|
+
import_cache.CacheServiceProvider,
|
|
924
|
+
import_queue.QueueServiceProvider,
|
|
925
|
+
import_mail.MailServiceProvider,
|
|
905
926
|
ConsoleServiceProvider
|
|
906
927
|
];
|
|
907
928
|
|
|
@@ -915,13 +936,6 @@ var app_default = class {
|
|
|
915
936
|
app.registerProviders(providers_default);
|
|
916
937
|
await app.registerConfiguredProviders();
|
|
917
938
|
await app.boot();
|
|
918
|
-
new import_node_events.EventEmitter().once("SIGINT", () => process.exit(0));
|
|
919
|
-
process.on("SIGINT", () => {
|
|
920
|
-
process.exit(0);
|
|
921
|
-
});
|
|
922
|
-
process.on("SIGTERM", () => {
|
|
923
|
-
process.exit(0);
|
|
924
|
-
});
|
|
925
939
|
}
|
|
926
940
|
};
|
|
927
941
|
|
package/dist/run.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-NVPKTRMT.js";
|
|
3
|
+
import "./chunk-UWCTG2LX.js";
|
|
4
|
+
import "./chunk-ADIVRUAJ.js";
|
|
5
|
+
import "./chunk-6OIH6FS4.js";
|
|
6
|
+
import "./chunk-QCNBVSFO.js";
|
|
7
|
+
import "./chunk-KCJKQP37.js";
|
|
8
|
+
import "./chunk-EIOQKTRM.js";
|
|
9
|
+
import "./chunk-7EWRZPTX.js";
|
|
10
10
|
import "./chunk-3FVPHQCH.js";
|
|
11
11
|
import "./chunk-PMV4TMFS.js";
|
|
12
12
|
import "./chunk-POF4JGTX.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/console",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.7",
|
|
4
4
|
"description": "CLI utilities for scaffolding, running migrations, tasks and for H3ravel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,15 +48,20 @@
|
|
|
48
48
|
"typescript": "^5.9.2"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
+
"@h3ravel/cache": "^11.0.0",
|
|
51
52
|
"@h3ravel/config": "^1.3.7",
|
|
52
53
|
"@h3ravel/database": "^11.0.0",
|
|
53
54
|
"@h3ravel/http": "^11.0.0",
|
|
55
|
+
"@h3ravel/mail": "^11.0.0",
|
|
56
|
+
"@h3ravel/queue": "^11.0.0",
|
|
57
|
+
"@h3ravel/router": "^1.8.3",
|
|
54
58
|
"@h3ravel/shared": "^0.17.2",
|
|
55
59
|
"chalk": "^5.6.0",
|
|
56
60
|
"commander": "^14.0.0",
|
|
57
61
|
"dayjs": "^1.11.14",
|
|
58
62
|
"radashi": "^12.6.2",
|
|
59
|
-
"resolve-from": "^5.0.0"
|
|
63
|
+
"resolve-from": "^5.0.0",
|
|
64
|
+
"tsx": "^4.20.5"
|
|
60
65
|
},
|
|
61
66
|
"scripts": {
|
|
62
67
|
"barrel": "barrelsby --directory src --delete --singleQuotes",
|