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
const fs = require("fs"); | |
const path = require("path"); | |
const chalk = require("chalk"); | |
/** | |
ARGUMENTS: | |
(-P | --paths): Comma-separated list of base paths. All files under these paths will be fixed. | |
(-I | --import-paths): Comma-separated list of import paths. All files under these paths will be used when searching for imports. | |
If not provided, the paths from (-P | --paths) will be used. | |
(-D | --dry-run): Prints the results but doesn't actually write them to the files. |