Skip to content

Commit

Permalink
chore(cloudformation-include): build fails on .DS_Store (#13595)
Browse files Browse the repository at this point in the history
The build script was assuming everything in the package directory
was itself a directory; not necessarily true on macOS machines.


----

*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 authored Mar 16, 2021
1 parent 8c6b3eb commit f15d249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@aws-cdk/cloudformation-include/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ async function main() {

for (const constructLibraryDir of constructLibrariesDirs) {
const absConstructLibraryDir = path.resolve(constructLibrariesRoot, constructLibraryDir);
if (!fs.statSync(absConstructLibraryDir).isDirectory()) { continue; } // .DS_Store

const libraryPackageJson = require(path.join(absConstructLibraryDir, 'package.json'));

const libraryDependencyVersion = dependencies[libraryPackageJson.name];
Expand Down

0 comments on commit f15d249

Please sign in to comment.