@nxext/stencil
Version:
Nx plugin for stenciljs
22 lines • 533 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRelativePath = getRelativePath;
exports.getDistDir = getDistDir;
exports.deleteFile = deleteFile;
const path = require("path");
const fs = require("fs");
function getRelativePath(from, to) {
return path.relative(from, to);
}
function getDistDir(rootDir) {
return `dist/${rootDir}`;
}
function deleteFile(path) {
try {
fs.unlinkSync(path);
}
catch (err) {
// empty
}
}
//# sourceMappingURL=fileutils.js.map