MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / isCustomCommandAllowed

Function isCustomCommandAllowed

packages/bumpy/src/core/config.ts:161–168  ·  view source on GitHub ↗

Check if a package is allowed to define custom commands via package.json

(pkgName: string, config: BumpyConfig)

Source from the content-addressed store, hash-verified

159 if (cfg.cascadeFrom) {
160 result.cascadeFrom = {
161 ...(result.cascadeFrom ? normalizeCascadeConfig(result.cascadeFrom) : {}),
162 ...normalizeCascadeConfig(cfg.cascadeFrom),
163 };
164 }
165 }
166 return result;
167}
168
169/** Check if a package is allowed to define custom commands via package.json */
170function isCustomCommandAllowed(pkgName: string, config: BumpyConfig): boolean {
171 const { allowCustomCommands } = config;

Callers 1

loadPackageConfigFunction · 0.85

Calls 1

matchGlobFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…