8 lines
327 B
JavaScript
8 lines
327 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
const path = require("path");
|
||
|
exports.isParentDir = function (parent, dir) {
|
||
|
const relative = path.relative(parent, dir);
|
||
|
return !!relative && !relative.startsWith('..') && !path.isAbsolute(relative);
|
||
|
};
|
||
|
//# sourceMappingURL=path-utils.js.map
|