MCPcopy Create free account
hub / github.com/firebase/firebase-tools / isPathInside

Function isPathInside

src/appUtils.ts:165–168  ·  view source on GitHub ↗
(parent: string, child: string)

Source from the content-addressed store, hash-verified

163}
164
165function isPathInside(parent: string, child: string): boolean {
166 const relativePath = path.relative(parent, child);
167 return !relativePath.startsWith(`..`);
168}
169
170export function getAllDepsFromPackageJson(packageJson: PackageJSON) {
171 const devDependencies = Object.keys(packageJson.devDependencies ?? {});

Callers 1

detectAppsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…