code: function getBaseDir(configFilePath) {
  
      // calculates the path of the project including Wist as dependency
      const projectPath = path.resolve(__dirname, '../../../');
  
      if (configFilePath && pathIsInside(configFilePath, projectPath)) {
  
          // be careful of https://github.com/substack/node-resolve/issues/78
          return path.join(path.resolve(configFilePath));
      }
  
      /*
       * default to Wist project path since it's unlikely that plugins will be
       * in this directory
       */
      return path.join(projectPath);
  }
docs: Determines the base directory for node packages referenced in a config file.
  This does not include node_modules in the path so it can be used for all
  references relative to a config file.
  @param {string} configFilePath The config file referencing the file.
  @returns {string} The base directory for the file path.
  @private