File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/runtime/src/helpers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ export interface ApiRouteConfig {
35
35
const checkForPackage = async ( packageDir : string , nodeModule : boolean ) => {
36
36
const packagePlugin = existsSync ( packageDir ) ? await readJSON ( packageDir ) : null
37
37
const nextPlugin =
38
- packagePlugin ? .dependencies [ NEXT_PLUGIN ] && ! nodeModule ? packagePlugin . dependencies [ NEXT_PLUGIN ] : null
39
- const checkModule = packagePlugin ?. version && nodeModule ? packagePlugin . version : null
38
+ ! nodeModule && packagePlugin . dependencies [ NEXT_PLUGIN ] ? packagePlugin . dependencies [ NEXT_PLUGIN ] : null
39
+ const checkModule = nodeModule && packagePlugin ?. version ? packagePlugin . version : null
40
40
41
41
return checkModule || nextPlugin
42
42
}
You can’t perform that action at this time.
0 commit comments