Comparing version 7.1.1 to 7.1.2
@@ -54,3 +54,3 @@ "use strict"; | ||
} | ||
function maybeFormatFile(filePath) { | ||
async function maybeFormatFile(filePath) { | ||
const prettier = resolvePrettier(); | ||
@@ -60,6 +60,7 @@ if (!prettier) { | ||
} | ||
const config = resolvedPrettier.resolveConfig.sync(filePath); | ||
const config = await resolvedPrettier.resolveConfig(filePath); | ||
const ignorePath = import_path.default.join(import_devkit.workspaceRoot, ".prettierignore"); | ||
const fullFilePath = import_path.default.join(import_devkit.workspaceRoot, filePath); | ||
if (resolvedPrettier.getFileInfo.sync(fullFilePath, { ignorePath }).ignored) { | ||
const fileInfo = await resolvedPrettier.getFileInfo(fullFilePath, { ignorePath }); | ||
if (fileInfo.ignored) { | ||
import_npmlog.default.silly("version", `Skipped applying prettier to ignored file: ${filePath}`); | ||
@@ -80,7 +81,7 @@ return; | ||
} | ||
function gitAdd(changedFiles, gitOpts, execOpts) { | ||
async function gitAdd(changedFiles, gitOpts, execOpts) { | ||
let files = []; | ||
for (const file of changedFiles) { | ||
const filePath = (0, import_slash.default)(import_path.default.relative(execOpts.cwd, import_path.default.resolve(execOpts.cwd, file))); | ||
maybeFormatFile(filePath); | ||
await maybeFormatFile(filePath); | ||
if (gitOpts.granularPathspec) { | ||
@@ -87,0 +88,0 @@ files.push(filePath); |
{ | ||
"name": "lerna", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository", | ||
@@ -40,4 +40,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@lerna/child-process": "7.1.1", | ||
"@lerna/create": "7.1.1", | ||
"@lerna/child-process": "7.1.2", | ||
"@lerna/create": "7.1.2", | ||
"@npmcli/run-script": "6.0.2", | ||
@@ -127,3 +127,3 @@ "@nx/devkit": ">=16.1.3 < 17", | ||
}, | ||
"gitHead": "04642ff77c0123676b4646035ffee08ede97af5f" | ||
"gitHead": "b25dc5e8029d50895e2e508c62a7ce9b2b8ce32e" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4802769
135359
+ Added@lerna/child-process@7.1.2(transitive)
+ Added@lerna/create@7.1.2(transitive)
- Removed@lerna/child-process@7.1.1(transitive)
- Removed@lerna/create@7.1.1(transitive)
Updated@lerna/child-process@7.1.2
Updated@lerna/create@7.1.2