@orxataguy/tyr 1.0.47 → 1.0.48
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/package.json +1 -1
- package/src/core/Kernel.ts +5 -4
package/package.json
CHANGED
package/src/core/Kernel.ts
CHANGED
|
@@ -53,10 +53,6 @@ export class Kernel {
|
|
|
53
53
|
public async boot(args: string[]): Promise<void> {
|
|
54
54
|
const isDebug = args.includes('--debug');
|
|
55
55
|
|
|
56
|
-
if (isDebug) {
|
|
57
|
-
args.splice(args.indexOf('--debug'), 1);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
56
|
(dotenv as any).config({ path: path.join(this.userRoot, '.env'), quiet: true });
|
|
61
57
|
|
|
62
58
|
await this.container.init(isDebug);
|
|
@@ -252,6 +248,11 @@ export class Kernel {
|
|
|
252
248
|
|
|
253
249
|
const commandFactory: CommandFactory = module.default;
|
|
254
250
|
const command = commandFactory(context);
|
|
251
|
+
|
|
252
|
+
if (args.includes('--debug')) {
|
|
253
|
+
args.splice(args.indexOf('--debug'), 1);
|
|
254
|
+
}
|
|
255
|
+
|
|
255
256
|
await command(args.slice(1));
|
|
256
257
|
|
|
257
258
|
} catch (error: any) {
|