@h3ravel/console 11.0.1 → 11.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/bin/run.cjs +882 -0
- package/bin/run.js +874 -0
- package/dist/chunk-CTQ6DUT2.js +8 -0
- package/dist/index.cjs +33 -0
- package/dist/index.js +1 -1
- package/dist/run.cjs +931 -0
- package/dist/run.js +14 -1
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -913,6 +913,39 @@ var ConsoleServiceProvider = class extends import_core.ServiceProvider {
|
|
|
913
913
|
Kernel.init(this.app);
|
|
914
914
|
}
|
|
915
915
|
};
|
|
916
|
+
|
|
917
|
+
// src/IO/providers.ts
|
|
918
|
+
var providers_default = [
|
|
919
|
+
import_config.ConfigServiceProvider,
|
|
920
|
+
import_database.DatabaseServiceProvider,
|
|
921
|
+
ConsoleServiceProvider
|
|
922
|
+
];
|
|
923
|
+
|
|
924
|
+
// src/IO/app.ts
|
|
925
|
+
var app_default = class {
|
|
926
|
+
static {
|
|
927
|
+
__name(this, "default");
|
|
928
|
+
}
|
|
929
|
+
async bootstrap() {
|
|
930
|
+
const app = new import_core2.Application(process.cwd());
|
|
931
|
+
app.registerProviders(providers_default);
|
|
932
|
+
await app.registerConfiguredProviders();
|
|
933
|
+
await app.boot();
|
|
934
|
+
new Kernel(app);
|
|
935
|
+
new import_node_events.EventEmitter().once("SIGINT", () => process.exit(0));
|
|
936
|
+
process.on("SIGINT", () => {
|
|
937
|
+
process.exit(0);
|
|
938
|
+
});
|
|
939
|
+
process.on("SIGTERM", () => {
|
|
940
|
+
process.exit(0);
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
// src/run.ts
|
|
946
|
+
var import_node_events2 = require("events");
|
|
947
|
+
new app_default().bootstrap();
|
|
948
|
+
new import_node_events2.EventEmitter().once("SIGINT", () => process.exit(0));
|
|
916
949
|
// Annotate the CommonJS export names for ESM import in node:
|
|
917
950
|
0 && (module.exports = {
|
|
918
951
|
Command,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./chunk-NADN2PHB.js";
|
|
2
|
+
import "./chunk-CTQ6DUT2.js";
|
|
2
3
|
import "./chunk-XSL373TG.js";
|
|
3
4
|
import "./chunk-KMIFCLXG.js";
|
|
4
5
|
import {
|
|
@@ -19,7 +20,6 @@ import {
|
|
|
19
20
|
import {
|
|
20
21
|
Signature
|
|
21
22
|
} from "./chunk-3FVPHQCH.js";
|
|
22
|
-
import "./chunk-UCOXL3OM.js";
|
|
23
23
|
import {
|
|
24
24
|
MakeCommand
|
|
25
25
|
} from "./chunk-PMV4TMFS.js";
|