-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gatsby) Rewrite requires-writer.js to TypeScript (#24289)
- Mostly just adds TypeScript type annotations - Introduces one assertion for matchPath !== undefined as IGatsbyPage has it as string | undefined, but everything in requires-writer.js assumes that it's a string. It would throw an error anyway, I just made a bit more pretty with reporter.panic() WARNING: - requires-writer uses reporter from gatsby-cli, and not the TS source, but the compiled version. Not sure if it's ok. Maybe we should extract reporter into a separate package if it is used in both gatsby and gasby-cli
- Loading branch information
1 parent
5224347
commit 08709a2
Showing
3 changed files
with
76 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters