зеркало из https://github.com/microsoft/backfill.git
Update devDependency prettier to v3 (#496)
This commit is contained in:
Родитель
9f7772ed80
Коммит
42a59ed8eb
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"endOfLine": "auto",
|
||||
"trailingComma": "es5",
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.md",
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"type": "none",
|
||||
"comment": "Update formatting",
|
||||
"packageName": "backfill-hasher",
|
||||
"email": "elcraig@microsoft.com",
|
||||
"dependentChangeType": "none"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -43,7 +43,7 @@
|
|||
"lerna": "^7.0.0",
|
||||
"lint-staged": "^12.5.0",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"prettier": "~2.8.4",
|
||||
"prettier": "~3.0.0",
|
||||
"prettier-package-json": "^2.8.0",
|
||||
"resolve-from": "^5.0.0",
|
||||
"syncpack": "8.4.11",
|
||||
|
|
|
@ -83,7 +83,10 @@ describe("getCacheStorageProvider", () => {
|
|||
|
||||
test("can get a custom storage provider as a class", () => {
|
||||
const TestProvider = class implements ICacheStorage {
|
||||
constructor(private logger: Logger, private cwd: string) {}
|
||||
constructor(
|
||||
private logger: Logger,
|
||||
private cwd: string
|
||||
) {}
|
||||
|
||||
fetch(hash: string) {
|
||||
this.logger.silly(`fetching ${this.cwd} ${hash}`);
|
||||
|
|
|
@ -47,10 +47,9 @@ export async function getPackageHash(
|
|||
return memoization[memoizationKey];
|
||||
}
|
||||
|
||||
const { name, dependencies, devDependencies } = require(path.join(
|
||||
packageRoot,
|
||||
"package.json"
|
||||
));
|
||||
const { name, dependencies, devDependencies } = require(
|
||||
path.join(packageRoot, "package.json")
|
||||
);
|
||||
|
||||
const allDependencies: Dependencies = {
|
||||
...dependencies,
|
||||
|
|
|
@ -44,10 +44,13 @@ export async function getRepoInfoNoCache(cwd: string) {
|
|||
// Sorting repoHash by key because we want to consistent hashing based on the order of the files
|
||||
const repoHashes = Object.keys(unorderedRepoHashes)
|
||||
.sort((a, b) => a.localeCompare(b))
|
||||
.reduce((obj, key) => {
|
||||
obj[key] = unorderedRepoHashes[key];
|
||||
return obj;
|
||||
}, {} as Record<string, string>);
|
||||
.reduce(
|
||||
(obj, key) => {
|
||||
obj[key] = unorderedRepoHashes[key];
|
||||
return obj;
|
||||
},
|
||||
{} as Record<string, string>
|
||||
);
|
||||
|
||||
const workspaceInfo = getWorkspaces(root);
|
||||
const parsedLock = await parseLockFile(root);
|
||||
|
|
|
@ -83,7 +83,7 @@ async function updateTSConfig({ filePath, content }, mergeConfig) {
|
|||
|
||||
fs.writeFileSync(
|
||||
filePath,
|
||||
prettier.format(newContent, {
|
||||
await prettier.format(newContent, {
|
||||
...prettierOptions,
|
||||
parser: "json",
|
||||
})
|
||||
|
|
|
@ -5665,10 +5665,10 @@ prettier-package-json@^2.8.0:
|
|||
sort-object-keys "^1.1.3"
|
||||
sort-order "^1.0.1"
|
||||
|
||||
prettier@~2.8.4:
|
||||
version "2.8.8"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
|
||||
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
|
||||
prettier@~3.0.0:
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643"
|
||||
integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==
|
||||
|
||||
pretty-format@^29.0.0, pretty-format@^29.6.3:
|
||||
version "29.6.3"
|
||||
|
|
Загрузка…
Ссылка в новой задаче