UNPKG

@atlassian/wrm-troubleshooting

Version:

A tool that can help you with troubleshooting the configuration of webpack and Atlassian P2 project.

12 lines 549 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isSubDirectory = exports.getRelativePath = void 0; const path = require("path"); const getRelativePath = (location) => path.relative(process.cwd(), location); exports.getRelativePath = getRelativePath; const isSubDirectory = (parent, child) => { const relative = path.relative(parent, child); return Boolean(relative && !relative.startsWith('..') && !path.isAbsolute(relative)); }; exports.isSubDirectory = isSubDirectory; //# sourceMappingURL=paths.js.map