"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isLocalDev = void 0;
var _fs = require("fs");
var _path = require("path");
const root = (0, _path.join)(__dirname, '../../../');
const rootPkg = (0, _path.join)(root, './package.json');

/**
 * Check whether it is development in local
 */
const isLocalDev = () => {
  const isLocal = (0, _fs.existsSync)(rootPkg) && require(rootPkg)._local;
  return isLocal ? root : false;
};
exports.isLocalDev = isLocalDev;