Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
manual fixups for .hack migration
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Feb 7, 2019
1 parent b52be67 commit 07def87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/hh-autoload.hack
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ final class GenerateScript {
->setFailureHandler(/* HH_IGNORE_ERROR[4110] */ $handler)
->setIsDev($options['dev'])
->writeToDirectory(\getcwd().'/vendor/');
print(\getcwd().'/vendor/autoload.hack');
print(\getcwd()."/vendor/autoload.hack\n");
}

private static function printUsage(
Expand Down
5 changes: 3 additions & 2 deletions src/Writer.hack
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Facebook\AutoloadMap;

/** Class to write `hh_autoload.php`.
/** Class to write `autoload.hack`.
*
* This includes:
* - the autoload map
Expand Down Expand Up @@ -181,7 +181,8 @@ final class Writer {
|> \str_replace(')', ']', $$);

if ($this->relativeAutoloadRoot) {
$autoload_map_typedef = '__DIR__.\'/../\'.'.\var_export($this->relativePath(__DIR__.'/AutoloadMap.php'), true);
$autoload_map_typedef =
'__DIR__.\'/../\'.'.\var_export($this->relativePath(__DIR__.'/AutoloadMap.hack'), true);
} else {
$autoload_map_typedef = \var_export(__DIR__.'/AutoloadMap.php', true);
}
Expand Down

0 comments on commit 07def87

Please sign in to comment.