flightAlias

tcmts.cli.flight.flightAlias · #mjaeg2an · term · runs anywhere

The alias of the Flight package beside React jsx (npm:react@19), as flightPackage installs it

import { FLIGHT_PACKAGE } from "#codebase/tcmts/cli/flight";
import { npmAlias } from "#codebase/tcmts/loader/packages";

export function flightAlias(jsx: string): string {
  return npmAlias(`npm:${FLIGHT_PACKAGE}@${jsx.slice(jsx.lastIndexOf("@") + 1)}`);
}

uses

used by