Merge branch 'main' into next

# Conflicts:
#	tests/config/install-prettier.js
#	tests/format/js/cursor/jsfmt.spec.js
#	tests/integration/__tests__/doc-trim.js
#	tests/integration/__tests__/format.js
#	tests/integration/__tests__/line-suffix-boundary.js
#	tests/integration/__tests__/load-toml.js
#	tests/integration/__tests__/stdin-filepath.js
#	tests/integration/__tests__/with-parser-inference.js
This commit is contained in:
fisker Cheung committed 2022-03-17 21:32:14 +08:00
commit c96f148ccf
16 files changed
+131 -108

No files matched your search

+6 -5
View File
@@ -1,5 +1,6 @@
import path from "node:path";
import fs from "node:fs";
import { outdent } from "outdent";
import { execaSync } from "execa";
import tempy from "tempy";
import chalk from "chalk";
@@ -71,12 +72,12 @@ function installPrettier(packageDir) {
const installed = path.join(tmpDir, "node_modules/prettier");
console.log(
chalk.green(
outdent`
Prettier installed
at ${chalk.inverse(installed)}
from ${chalk.inverse(packageDir)}
with ${chalk.inverse(client)}.
`
Prettier installed
at ${chalk.inverse(installed)}
from ${chalk.inverse(packageDir)}
with ${chalk.inverse(client)}.
`.trim()
)
);