fix(tools): insert step with appropriate challenge type (#62179)

This commit is contained in:
Oliver Eyton-Williams
2025-09-16 09:50:25 +02:00
committed by GitHub
parent fbf6bf2bcd
commit 054d2448fa
5 changed files with 39 additions and 30 deletions

View File

@@ -205,13 +205,13 @@ async function createFirstChallenge(block: string): Promise<ObjectID> {
// TODO: would be nice if the extension made sense for the challenge, but, at
// least until react I think they're all going to be html anyway.
const challengeSeeds = {
indexhtml: {
const challengeSeeds = [
{
contents: '',
ext: 'html',
editableRegionBoundaries: [0, 2]
}
};
];
// including trailing slash for compatibility with createStepFile
return createStepFile({
projectPath: newChallengeDir + '/',