UNPKG

ui-particle

Version:

Components cli for REACTJS and NEXTJS :)

13 lines (12 loc) 471 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPkgInfo = getPkgInfo; const fs_extra_1 = require("fs-extra"); const path_1 = __importDefault(require("path")); function getPkgInfo() { const pkgPath = path_1.default.join("package.json"); return (0, fs_extra_1.readJSONSync)(pkgPath); }