@orxataguy/tyr 1.0.46 → 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 +6 -0
package/package.json
CHANGED
package/src/core/Kernel.ts
CHANGED
|
@@ -41,6 +41,7 @@ export class Kernel {
|
|
|
41
41
|
private config: TyrConfig | null;
|
|
42
42
|
private frameworkRoot: string;
|
|
43
43
|
private userRoot: string;
|
|
44
|
+
private isDebug: boolean = false;
|
|
44
45
|
|
|
45
46
|
constructor() {
|
|
46
47
|
this.container = new Container();
|
|
@@ -247,6 +248,11 @@ export class Kernel {
|
|
|
247
248
|
|
|
248
249
|
const commandFactory: CommandFactory = module.default;
|
|
249
250
|
const command = commandFactory(context);
|
|
251
|
+
|
|
252
|
+
if (args.includes('--debug')) {
|
|
253
|
+
args.splice(args.indexOf('--debug'), 1);
|
|
254
|
+
}
|
|
255
|
+
|
|
250
256
|
await command(args.slice(1));
|
|
251
257
|
|
|
252
258
|
} catch (error: any) {
|