Yuki Takei 1 vuosi sitten
vanhempi
sitoutus
179ba25069
1 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 6 6
      apps/app/src/utils/next.config.utils.js

+ 6 - 6
apps/app/src/utils/next.config.utils.js

@@ -35,12 +35,12 @@ exports.listScopedPackages = (scopes, opts = defaultOpts) => {
               folderName,
               folderName,
               'package.json',
               'package.json',
             );
             );
-          if (fs.existsSync(packageJsonPath)) {
-            const { name } = require(packageJsonPath);
+            if (fs.existsSync(packageJsonPath)) {
+              const { name } = require(packageJsonPath);
               if (!opts.ignorePackageNames.includes(name)) {
               if (!opts.ignorePackageNames.includes(name)) {
                 scopedPackages.push(name);
                 scopedPackages.push(name);
               }
               }
-          }
+            }
           });
           });
       });
       });
   });
   });
@@ -65,12 +65,12 @@ exports.listPrefixedPackages = (prefixes, opts = defaultOpts) => {
           folderName,
           folderName,
           'package.json',
           'package.json',
         );
         );
-      if (fs.existsSync(packageJsonPath)) {
-        const { name } = require(packageJsonPath);
+        if (fs.existsSync(packageJsonPath)) {
+          const { name } = require(packageJsonPath);
           if (!opts.ignorePackageNames.includes(name)) {
           if (!opts.ignorePackageNames.includes(name)) {
             prefixedPackages.push(name);
             prefixedPackages.push(name);
           }
           }
-      }
+        }
       });
       });
   });
   });