Bugfix: keycloak_build that grow and grow in size

This commit is contained in:
Joseph Garrone
2021-03-19 22:39:32 +01:00
parent 0e1d919f7e
commit 5ced0e2809
2 changed files with 29 additions and 3 deletions

14
src/bin/tools/isInside.ts Normal file
View File

@ -0,0 +1,14 @@
import { relative as pathRelative } from "path";
export function isInside(
params: {
dirPath: string;
filePath: string;
}
) {
const { dirPath, filePath } = params;
return !pathRelative(dirPath, filePath).startsWith("..");
}