Enabling shorter import paths [automatic]
This commit is contained in:
10
bin/tools/isInside.js
Normal file
10
bin/tools/isInside.js
Normal file
@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isInside = void 0;
|
||||
var path_1 = require("path");
|
||||
function isInside(params) {
|
||||
var dirPath = params.dirPath, filePath = params.filePath;
|
||||
return !path_1.relative(dirPath, filePath).startsWith("..");
|
||||
}
|
||||
exports.isInside = isInside;
|
||||
//# sourceMappingURL=isInside.js.map
|
Reference in New Issue
Block a user