fix(misc): add missing format files call (#22137)

This commit is contained in:
Craigory Coppola 2024-03-04 16:54:04 -05:00 committed by GitHub
parent dd666baa6e
commit 58d8f4cc13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
import { readNxJson, updateNxJson } from '../../generators/utils/nx-json';
import { Tree } from '../../generators/tree';
import { NxJsonConfiguration } from '../../config/nx-json';
import { formatChangedFilesWithPrettierIfAvailable } from '../../generators/internal-utils/format-changed-files-with-prettier-if-available';
/**
* Updates existing workspaces to move nx.json's affected.defaultBase to nx.json's base.
@ -18,4 +19,5 @@ export default function update(host: Tree) {
}
updateNxJson(host, nxJson);
}
formatChangedFilesWithPrettierIfAvailable(host);
}