Skip to content

Commit d6af864

Browse files
committed
feat(info): native-run and cordova-res versions
1 parent e1cf74e commit d6af864

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/ionic/src/commands/info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CommandLineInputs, CommandLineOptions, CommandMetadata, InfoItem, InfoI
66
import { input, strong, weak } from '../lib/color';
77
import { Command } from '../lib/command';
88

9-
const INFO_GROUPS: readonly InfoItemGroup[] = ['ionic', 'capacitor', 'cordova', 'system', 'environment'];
9+
const INFO_GROUPS: readonly InfoItemGroup[] = ['ionic', 'capacitor', 'cordova', 'utility', 'system', 'environment'];
1010

1111
export class InfoCommand extends Command {
1212
async getMetadata(): Promise<CommandMetadata> {

packages/ionic/src/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ export interface PaginatorDeps<T extends Response<object[]>, S = PaginatorState>
513513
readonly max?: number;
514514
}
515515

516-
export type InfoItemGroup = 'ionic' | 'capacitor' | 'cordova' | 'system' | 'environment';
516+
export type InfoItemGroup = 'ionic' | 'capacitor' | 'cordova' | 'utility' | 'system' | 'environment';
517517

518518
export interface InfoItem {
519519
group: InfoItemGroup;

packages/ionic/src/lib/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export async function generateIonicEnvironment(ctx: IonicContext, pargv: string[
5353
const os = osName();
5454

5555
const npm = await shell.cmdinfo('npm', ['-v']);
56+
const nativeRun = await shell.cmdinfo('native-run', ['--version']);
57+
const cordovaRes = await shell.cmdinfo('cordova-res', ['--version']);
5658

5759
const info: InfoItem[] = [
5860
{
@@ -65,6 +67,8 @@ export async function generateIonicEnvironment(ctx: IonicContext, pargv: string[
6567
{ group: 'system', key: 'NodeJS', value: process.version, path: process.execPath },
6668
{ group: 'system', key: 'npm', value: npm || 'not installed' },
6769
{ group: 'system', key: 'OS', value: os },
70+
{ group: 'utility', key: 'native-run', value: nativeRun || 'not installed' },
71+
{ group: 'utility', key: 'cordova-res', value: cordovaRes || 'not installed' },
6872
];
6973

7074
info.push(...proxyVars.map(([e, v]): InfoItem => ({ group: 'environment', key: e, value: v || 'not set' })));

0 commit comments

Comments
 (0)