diff --git a/examples-testing/index.js b/examples-testing/index.js index f7075b72c..5315d836a 100644 --- a/examples-testing/index.js +++ b/examples-testing/index.js @@ -468,7 +468,7 @@ for (const section of Object.values(files)) { }); const results = re.exec(fileContents); const options = await prettier.resolveConfig(file); - const formattedFile = prettier.format(results[1], { ...options, parser: 'babel' }); + const formattedFile = await prettier.format(results[1], { ...options, parser: 'babel' }); fs.writeFileSync(path.join(outDir, `${file}.ts`), formattedFile); } } diff --git a/examples-testing/package.json b/examples-testing/package.json index 260c37df1..916012c7b 100644 --- a/examples-testing/package.json +++ b/examples-testing/package.json @@ -14,7 +14,7 @@ "license": "ISC", "dependencies": { "@types/three": "file:../types/three", - "prettier": "^2.8.8", + "prettier": "^3.2.5", "typescript": "latest" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b5d17bc34..71c8b5ec6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,8 +54,8 @@ importers: specifier: file:../types/three version: file:types/three prettier: - specifier: ^2.8.8 - version: 2.8.8 + specifier: ^3.2.5 + version: 3.2.5 typescript: specifier: latest version: 5.3.3 @@ -2927,9 +2927,9 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} + /prettier@3.2.5: + resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} + engines: {node: '>=14'} hasBin: true dev: false