(baseFilename)
| 50 | * The file name may be different depending on the stage. |
| 51 | */ |
| 52 | const getRcFileName = (baseFilename) => { |
| 53 | if ( |
| 54 | process.env.SERVERLESS_PLATFORM_STAGE && |
| 55 | process.env.SERVERLESS_PLATFORM_STAGE !== 'prod' |
| 56 | ) { |
| 57 | baseFilename = `${baseFilename}${process.env.SERVERLESS_PLATFORM_STAGE.toLowerCase()}` |
| 58 | baseFilename = baseFilename.trim() |
| 59 | } |
| 60 | return `.${baseFilename}rc` |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Get various possible .{baseFilename}rc file paths |
no outgoing calls
no test coverage detected