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