Update libs (#28)

* added prompt context library

* updated libs, except chalk that should not be updated

* updated libs and fixed speed
This commit is contained in:
Arwid Thornström
2025-06-17 10:12:48 +02:00
committed by GitHub
parent 90b9ccc454
commit 5c43d166ba
27 changed files with 2429 additions and 3457 deletions
+6 -6
View File
@@ -10,12 +10,12 @@ export type Stack = {
};
export const getTestStacksInfo = async (
toolbox: GluegunMenuToolbox
toolbox: GluegunMenuToolbox,
): Promise<Stack[]> => {
const { strings, system } = toolbox;
const stacks = JSON.parse(
strings.trim(await system.run(`aws cloudformation list-stacks`))
strings.trim(await system.run(`aws cloudformation list-stacks`)),
);
const allStacks = (await Promise.all(
@@ -37,9 +37,9 @@ export const getTestStacksInfo = async (
const pipeline = JSON.parse(
strings.trim(
await system.run(
`aws codepipeline get-pipeline --name ${item.StackName}Pipeline`
)
)
`aws codepipeline get-pipeline --name ${item.StackName}Pipeline`,
),
),
);
const sourceStage = pipeline.pipeline.stages.filter((stage) => {
return stage.name === 'Source';
@@ -68,7 +68,7 @@ export const getTestStacksInfo = async (
}
}
return Promise.resolve(null);
})
}),
)) as Stack[] | null;
return allStacks.filter(Boolean);
};