Enabling shorter import paths [automatic]

This commit is contained in:
ts_ci
2021-03-19 21:43:39 +00:00
parent e16192b416
commit c8e58adb41
139 changed files with 23049 additions and 223 deletions

10
bin/tools/isInside.js Normal file
View 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