Skip to content

Commit

Permalink
fix: installed modules added to layers
Browse files Browse the repository at this point in the history
  • Loading branch information
adhamfarrag committed Jan 24, 2024
1 parent ede4266 commit 7e09b3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Nuxtr",
"description": "An extension for Nuxt offering commands and tools to make your experience more pleasant.",
"version": "0.2.14",
"packageManager": "[email protected].2",
"packageManager": "[email protected].3",
"engines": {
"vscode": "^1.85.0"
},
Expand Down
13 changes: 3 additions & 10 deletions src/utils/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ const isLayer = async (module: any) => {
if (existsSync(modulePath)) {
let nuxtConfigPath = `${modulePath}/nuxt.config.ts`;
const result = pathExistsSync(nuxtConfigPath)
console.log('result', result);


if (result !== undefined) {
return true;
} else {
return false;
}
return result ? true : false;
}
};

Expand Down Expand Up @@ -174,7 +167,7 @@ const fetchNuxtAlias = async () => {
}

} catch (error) {
console.error('Error fetching Nuxt alias:', error);
throw new Error('Error fetching Nuxt alias: ' + error);
}
};

Expand Down Expand Up @@ -241,7 +234,7 @@ const scanNuxtDirectories = async () => {
}
}
} catch (error) {
console.error('Error scanning Nuxt directories:', error);
throw new Error('Error scanning Nuxt directories: ' + error);
}

}
Expand Down

0 comments on commit 7e09b3c

Please sign in to comment.