feat: upgrade prettier dependencies (#51830)

This commit is contained in:
Muhammed Mustafa
2023-10-06 19:35:17 +03:00
committed by GitHub
parent 2a34960415
commit 4494f95803
14 changed files with 620 additions and 140 deletions

View File

@@ -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' })
);
}