mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
fix(tools): insert step with appropriate challenge type (#62179)
This commit is contained in:
committed by
GitHub
parent
fbf6bf2bcd
commit
054d2448fa
@@ -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 + '/',
|
||||
|
||||
Reference in New Issue
Block a user