Skip to content

Commit

Permalink
fix(repair): re-enable repair generators (#3497)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahslaj committed Jan 13, 2023
1 parent fcab26a commit 510c3e9
Show file tree
Hide file tree
Showing 6 changed files with 240 additions and 175 deletions.
2 changes: 1 addition & 1 deletion commands/run/package.json
Expand Up @@ -42,7 +42,7 @@
"@lerna/timer": "file:../../utils/timer",
"@lerna/validation-error": "file:../../core/validation-error",
"fs-extra": "^9.1.0",
"nx": ">=15.4.2 < 16",
"nx": ">=15.5.1 < 16",
"p-map": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion commands/version/package.json
Expand Up @@ -48,7 +48,7 @@
"@lerna/run-topologically": "file:../../utils/run-topologically",
"@lerna/temp-write": "file:../../utils/temp-write",
"@lerna/validation-error": "file:../../core/validation-error",
"@nrwl/devkit": ">=15.4.2 < 16",
"@nrwl/devkit": ">=15.5.1 < 16",
"chalk": "^4.1.0",
"dedent": "^0.7.0",
"load-json-file": "^6.2.0",
Expand Down
8 changes: 1 addition & 7 deletions core/lerna/commands/repair/index.js
Expand Up @@ -35,13 +35,7 @@ class RepairCommand extends Command {
});
});

// await repair({ verbose }, lernaMigrations);

// fake the success case until nx repair no longer depends on nx.json's existence
// eslint-disable-next-line global-require
require("nx/src/utils/output").output.success({
title: `No changes were necessary. This workspace is up to date!`,
});
await repair({ verbose }, lernaMigrations);
}

configureNxOutput() {
Expand Down
4 changes: 2 additions & 2 deletions core/lerna/package.json
Expand Up @@ -61,11 +61,11 @@
"@lerna/run": "file:../../commands/run",
"@lerna/validation-error": "file:../validation-error",
"@lerna/version": "file:../../commands/version",
"@nrwl/devkit": ">=15.4.2 < 16",
"@nrwl/devkit": ">=15.5.1 < 16",
"import-local": "^3.0.2",
"inquirer": "^8.2.4",
"npmlog": "^6.0.2",
"nx": ">=15.4.2 < 16",
"nx": ">=15.5.1 < 16",
"typescript": "^3 || ^4"
}
}

0 comments on commit 510c3e9

Please sign in to comment.