@xylabs/ts-scripts-yarn3 5.1.3 → 5.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1046,18 +1046,16 @@ var lintPackage = /* @__PURE__ */ __name(async ({ pkg, fix: fix2 }) => {
1046
1046
  }, "lintPackage");
1047
1047
  var lintAll = /* @__PURE__ */ __name(async ({ fix: fix2 }) => {
1048
1048
  const workspace = yarnWorkspaces();
1049
- for (const ws of workspace) {
1050
- await lintPackage({
1051
- pkg: ws.name,
1052
- fix: fix2
1053
- });
1054
- }
1049
+ return (await Promise.all(workspace.map((ws) => lintPackage({
1050
+ pkg: ws.name,
1051
+ fix: fix2
1052
+ })))).reduce((prev, curr) => prev + curr, 0);
1055
1053
  }, "lintAll");
1056
1054
  var lint = /* @__PURE__ */ __name(async ({ pkg, verbose, incremental, fix: fix2 } = {}) => {
1057
1055
  return pkg ? await lintPackage({
1058
1056
  pkg,
1059
1057
  fix: fix2
1060
- }) : lintAllPackages({
1058
+ }) : lintAll({
1061
1059
  verbose,
1062
1060
  incremental,
1063
1061
  fix: fix2