massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / eslint / lib / init / npm-utils.js
index 28c198fc8ada675d392aff6384a55085f4bba963..b91a824b1260ab6e440a8cb50d0769135f56858a 100644 (file)
@@ -50,8 +50,7 @@ function findPackageJson(startDir) {
  */
 function installSyncSaveDev(packages) {
     const packageList = Array.isArray(packages) ? packages : [packages];
-    const npmProcess = spawn.sync("npm", ["i", "--save-dev"].concat(packageList),
-        { stdio: "inherit" });
+    const npmProcess = spawn.sync("npm", ["i", "--save-dev"].concat(packageList), { stdio: "inherit" });
     const error = npmProcess.error;
 
     if (error && error.code === "ENOENT") {
@@ -135,7 +134,7 @@ function check(packages, opt) {
  *
  * Convenience wrapper around check().
  * @param   {string[]} packages  Array of node modules to check.
- * @param   {string}   rootDir   The directory contianing a package.json
+ * @param   {string}   rootDir   The directory containing a package.json
  * @returns {Object}             An object whose keys are the module names
  *                               and values are booleans indicating installation.
  */
@@ -172,6 +171,7 @@ function checkPackageJson(startDir) {
 module.exports = {
     installSyncSaveDev,
     fetchPeerDependencies,
+    findPackageJson,
     checkDeps,
     checkDevDeps,
     checkPackageJson