text: const packageConfig = require("../../package/packageConfig");
  
  /**
   * @method getClioDependencies
   * @returns {string[]}
   * @description Get Clio dependencies listed in the
   *              Packge.json file.
   */
  
  function getClioDependencies() {
    return packageConfig.getPackageDependencies();
  }
  
  /**
   * @method hasClioDependencies
   * @returns {bool}
   * @description Returns true if the project has at least one dependency listed
   *              in the Package.json file.
   */
  
  function hasClioDependencies() {
    const dependencies = packageConfig.getPackageDependencies();
    return (
      !!dependencies &&
      !!Object.keys(dependencies) &&
      !!Object.keys(dependencies).length
    );
  }
  
  /**
   * @method updatePackageJsonDependencies
   * @param {string} dependency
   * @returns {Promise}
   * @description updates Package.json file with the desidered dependency.
   */
  
  async function updatePackageJsonDependencies(dependency) {
    packageConfig.addDependency([dependency, "latest"]);
  }
  
  module.exports = {
    getClioDependencies,
    hasClioDependencies,
    updatePackageJsonDependencies
  };
  