* Returns true if the given path points to a YAML file (integrations env file).
(filePath: string)
| 41 | * Returns true if the given path points to a YAML file (integrations env file). |
| 42 | */ |
| 43 | function isYamlPath(filePath: string): boolean { |
| 44 | const ext = extname(filePath).toLowerCase() |
| 45 | return ext === '.yaml' || ext === '.yml' |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Run `fn` with a snapshot of `process.env` taken beforehand, restoring the original environment |