Skip to content

Commit

Permalink
fix(angular): prevent deleting library's root package.json file on wi…
Browse files Browse the repository at this point in the history
…ndows machines (#10635)
  • Loading branch information
leosvelperez committed Jun 8, 2022
1 parent 26488c2 commit 9e91baf
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -2,6 +2,7 @@ import {
formatFiles,
getProjects,
joinPathFragments,
normalizePath,
readJson,
Tree,
visitNotIgnoredFiles,
Expand Down Expand Up @@ -30,7 +31,8 @@ export default async function (tree: Tree) {
visitNotIgnoredFiles(tree, project.root, (filePath) => {
if (
basename(filePath) !== 'package.json' ||
filePath === joinPathFragments(project.root, 'package.json')
normalizePath(filePath) ===
joinPathFragments(project.root, 'package.json')
) {
return;
}
Expand Down

0 comments on commit 9e91baf

Please sign in to comment.