From f9e1576f92edf1afc6951d23dac2d31c4b02123f Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 21 Aug 2023 18:23:55 -0400 Subject: [PATCH] chore: update api-examples script folder filter (#5119) --- scripts/api-examples/merge-examples.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/api-examples/merge-examples.js b/scripts/api-examples/merge-examples.js index 70ed9dbef303..ec0905b9dabd 100644 --- a/scripts/api-examples/merge-examples.js +++ b/scripts/api-examples/merge-examples.js @@ -43,7 +43,7 @@ module.exports = { console.error(`${folder} does not have a Smithy model.`); continue; } - const modelFolders = readdirSync(join(location, folder)); + const modelFolders = readdirSync(join(location, folder)).filter(name => !name.startsWith(".")); for (const c2jFolder of modelFolders.filter((name) => name !== "smithy")) { const c2jFiles = readdirSync(join(location, folder, c2jFolder)); for (const examples of c2jFiles.filter((file) => file.includes("examples"))) {