(config: IRcFileConfig)
| 238 | } |
| 239 | |
| 240 | function hasNpmVariables(config: IRcFileConfig): boolean { |
| 241 | return ( |
| 242 | hasNpmVariable(config.sourcepath) || |
| 243 | hasNpmVariable(config.outputfile) || |
| 244 | hasNpmVariable(config.espmethod) || |
| 245 | hasNpmVariable(config.define) || |
| 246 | hasNpmVariable(config.version) || |
| 247 | hasNpmVariable(config.basepath) || |
| 248 | (Array.isArray(config.exclude) && config.exclude.some((pattern) => hasNpmVariable(pattern))) |
| 249 | ); |
| 250 | } |
| 251 | |
| 252 | function interpolateNpmVariables(config: IRcFileConfig, rcFilePath: string): IRcFileConfig { |
| 253 | // Quick check - return unchanged if no variables |
no test coverage detected