Skip to content

Commit

Permalink
externals handle no deps in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
delambo committed May 22, 2024
1 parent 9f6ccdd commit 346e076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kyt-core/src/config/externals.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = (allowList = []) => {
// Get all of the dependencies from the package.json
// and filter out the ones that are in the allowList
const packageModules = [];
Object.keys(pkg.dependencies).forEach(module => {
Object.keys(pkg.dependencies || []).forEach(module => {
allowList.forEach(allowedModule => {
if (!allowedModule.test(module)) packageModules.push(module);
});
Expand Down

0 comments on commit 346e076

Please sign in to comment.