@xylabs/ts-scripts-yarn3 4.0.7 → 4.1.0

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/bin/xy.mjs CHANGED
@@ -310,7 +310,7 @@ var mergeEntries = /* @__PURE__ */ __name((a, b) => [
310
310
  ].sort(), "mergeEntries");
311
311
  var generateIgnoreFiles = /* @__PURE__ */ __name((filename3, pkg) => {
312
312
  console.log(chalk4.green(`Generate ${filename3} Files`));
313
- const cwd2 = INIT_CWD() ?? ".";
313
+ const cwd = INIT_CWD() ?? ".";
314
314
  const workspaces = pkg ? [
315
315
  yarnWorkspace(pkg)
316
316
  ] : yarnWorkspaces();
@@ -318,7 +318,7 @@ var generateIgnoreFiles = /* @__PURE__ */ __name((filename3, pkg) => {
318
318
  const writeEntries = /* @__PURE__ */ __name((location, entries) => writeLines(`${location}/${filename3}`, entries), "writeEntries");
319
319
  const results = workspaces.map(({ location, name }) => {
320
320
  try {
321
- writeEntries(location, mergeEntries(readEntries(cwd2), readEntries(location)));
321
+ writeEntries(location, mergeEntries(readEntries(cwd), readEntries(location)));
322
322
  return 0;
323
323
  } catch (ex) {
324
324
  const error = ex;
@@ -677,7 +677,6 @@ var copyAssets = /* @__PURE__ */ __name(async ({ target, pkg }) => {
677
677
  }, "copyAssets");
678
678
 
679
679
  // src/actions/cycle.ts
680
- import { cwd } from "node:process";
681
680
  import { ESLint } from "eslint";
682
681
  var cycle = /* @__PURE__ */ __name(async () => {
683
682
  const eslint = new ESLint({
@@ -698,10 +697,7 @@ var cycle = /* @__PURE__ */ __name(async () => {
698
697
  "packages/**/src/**/*.ts*"
699
698
  ]);
700
699
  const formatter = await eslint.loadFormatter("stylish");
701
- const resultText = formatter.format(results, {
702
- cwd: cwd(),
703
- rulesMeta: {}
704
- });
700
+ const resultText = formatter.format(results);
705
701
  console.log(resultText);
706
702
  return results.length;
707
703
  }, "cycle");