Skip to content

Commit

Permalink
Merge pull request #233 from code-like-a-carpenter/fix-stack-detection
Browse files Browse the repository at this point in the history
fix(tool-stack): include template.json files in stack detection
  • Loading branch information
ianwremmel authored Feb 12, 2024
2 parents a0c5f1c + fba1708 commit fe2b538
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@code-like-a-carpenter/tool-stack/src/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import {
import type {StackListSchema} from './__generated__/list-types.ts';

export async function handler(args: StackListSchema): Promise<void> {
const files = args.test ?? (await glob('**/template.yml'));
const files =
args.test ?? (await glob(['**/template.yml', '**/template.json']));
const strings = files.map((f) => {
assert(typeof f === 'string', 'file must be a string');
return f;
Expand Down

0 comments on commit fe2b538

Please sign in to comment.