(rootDir: string)
| 168 | |
| 169 | /** Check if a package is allowed to define custom commands via package.json */ |
| 170 | function isCustomCommandAllowed(pkgName: string, config: BumpyConfig): boolean { |
| 171 | const { allowCustomCommands } = config; |
| 172 | if (allowCustomCommands === true) return true; |
| 173 | if (Array.isArray(allowCustomCommands)) { |
| 174 | return allowCustomCommands.some((pattern) => matchGlob(pkgName, pattern)); |
| 175 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…