@nestjs/cli
Version:
Nest - modern, fast, powerful node.js web framework (@cli)
10 lines (9 loc) • 357 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCompilableExtension = void 0;
const path_1 = require("path");
function isCompilableExtension(filename, allowedExtension) {
const ext = (0, path_1.extname)(filename);
return allowedExtension.includes(ext);
}
exports.isCompilableExtension = isCompilableExtension;