hunk.code_window: import * as path from "path";
   export async function installMagicExports(
     sourceDir: string,
     dependencies: { [name: string]: string }
   ): Promise<void> {
     let remixDir = path.dirname(require.resolve("remix"));
     let packageJsonFile = path.resolve(remixDir, "package.json");
  
hunk.labels: keep keep keep replace replace keep keep keep
hunk.after_edit:   dependencies: { [name: string]: string },
     filesDir: string
  
hunk.file_path: packages/remix/magic.ts
hunk.type: replace
file: const alreadyWarned: { [message: string]: boolean } = {};
  
  export function warnOnce(condition: boolean, message: string): void {
    if (!condition && !alreadyWarned[message]) {
      alreadyWarned[message] = true;
      console.warn(message);
    }
  }
  