locklift
Version:
Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.
15 lines (14 loc) • 552 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.tryToGetFileChangeTime = void 0;
const fs_extra_1 = __importDefault(require("fs-extra"));
const tryToGetFileChangeTime = (filePath) => {
return fs_extra_1.default
.stat(filePath)
.then(file => file.mtime.getTime())
.catch(() => undefined);
};
exports.tryToGetFileChangeTime = tryToGetFileChangeTime;