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