Skip to content

Commit

Permalink
fix: reduce load time of JavaScript library, for real (#27314)
Browse files Browse the repository at this point in the history
This is a follow-up to #27217

The check we needed to perform was inverted 😖


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
rix0rrr committed Sep 29, 2023
1 parent 0aa1096 commit fca5a73
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion tools/@aws-cdk/lazify/bin/lazify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function main() {
}
},
// Skip directories marked as 'custom resource's, so we don't affect asset hashes
async (d) => path.basename(d) !== 'node_modules' && await fs.pathExists(path.join(d, '.is_custom_resource')));
async (d) => path.basename(d) !== 'node_modules' && ! await fs.pathExists(path.join(d, '.is_custom_resource')));
}
}

Expand Down

0 comments on commit fca5a73

Please sign in to comment.