mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
feat: upgrade prettier dependencies (#51830)
This commit is contained in:
@@ -2,10 +2,9 @@ import { existsSync } from 'fs';
|
||||
import fs from 'fs/promises';
|
||||
import path from 'path';
|
||||
import { prompt } from 'inquirer';
|
||||
|
||||
import { format } from 'prettier';
|
||||
|
||||
import ObjectID from 'bson-objectid';
|
||||
|
||||
import { SuperBlocks } from '../../shared/config/superblocks';
|
||||
import { createStepFile } from './utils';
|
||||
import { getSuperBlockSubPath } from './fs-utils';
|
||||
@@ -79,7 +78,7 @@ async function updateIntroJson(
|
||||
void withTrace(
|
||||
fs.writeFile,
|
||||
introJsonPath,
|
||||
format(JSON.stringify(newIntro), { parser: 'json' })
|
||||
await format(JSON.stringify(newIntro), { parser: 'json' })
|
||||
);
|
||||
}
|
||||
|
||||
@@ -108,7 +107,7 @@ async function createMetaJson(
|
||||
void withTrace(
|
||||
fs.writeFile,
|
||||
path.resolve(metaDir, `${block}/meta.json`),
|
||||
format(JSON.stringify(newMeta), { parser: 'json' })
|
||||
await format(JSON.stringify(newMeta), { parser: 'json' })
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user