@kitschpatrol/knip-config 5.0.4 → 5.0.6

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.
Files changed (2) hide show
  1. package/bin/cli.js +17 -12
  2. package/package.json +5 -5
package/bin/cli.js CHANGED
@@ -5541,14 +5541,14 @@ var Yargs = YargsFactory(esm_default);
5541
5541
  var yargs_default = Yargs;
5542
5542
 
5543
5543
  // ../../package.json
5544
- var version = "5.0.4";
5544
+ var version = "5.0.6";
5545
5545
 
5546
- // ../../src/execa-utils.ts
5546
+ // ../../src/execa-utilities.ts
5547
5547
  function isErrorExecaError(error) {
5548
5548
  return error instanceof Error && "exitCode" in error && typeof error.exitCode === "number";
5549
5549
  }
5550
5550
 
5551
- // ../../src/json-utils.ts
5551
+ // ../../src/json-utilities.ts
5552
5552
  import jsonColorizer from "@pinojs/json-colorizer";
5553
5553
 
5554
5554
  // ../../node_modules/.pnpm/decircular@1.0.0/node_modules/decircular/index.js
@@ -5573,7 +5573,7 @@ function decircular(object) {
5573
5573
  return internalDecircular(object);
5574
5574
  }
5575
5575
 
5576
- // ../../src/json-utils.ts
5576
+ // ../../src/json-utilities.ts
5577
5577
  var import_deepmerge = __toESM(require_cjs(), 1);
5578
5578
 
5579
5579
  // ../../node_modules/.pnpm/json-stringify-pretty-compact@4.0.0/node_modules/json-stringify-pretty-compact/index.js
@@ -5655,7 +5655,7 @@ ${currentIndent}`
5655
5655
  }(passedObj, "", 0);
5656
5656
  }
5657
5657
 
5658
- // ../../src/json-utils.ts
5658
+ // ../../src/json-utilities.ts
5659
5659
  function stringify2(object) {
5660
5660
  return jsonColorizer(
5661
5661
  stringify(decircular(object), {
@@ -5692,7 +5692,7 @@ function merge(destination, source, options = { arrayMerge: combineMerge }) {
5692
5692
  return (0, import_deepmerge.default)(destination, source, options);
5693
5693
  }
5694
5694
 
5695
- // ../../src/path-utils.ts
5695
+ // ../../src/path-utilities.ts
5696
5696
  import { findWorkspaces, findWorkspacesRoot } from "find-workspaces";
5697
5697
  import fse from "fs-extra";
5698
5698
  import path2 from "node:path";
@@ -5729,7 +5729,7 @@ function getCwdOverride(option) {
5729
5729
  return process.cwd();
5730
5730
  }
5731
5731
 
5732
- // ../../src/prettier-utils.ts
5732
+ // ../../src/prettier-utilities.ts
5733
5733
  import fs2 from "node:fs/promises";
5734
5734
  async function formatTextAndSaveFile(filePath, content) {
5735
5735
  try {
@@ -5752,7 +5752,7 @@ async function formatFileInPlace(filePath) {
5752
5752
  }
5753
5753
  }
5754
5754
 
5755
- // ../../src/stream-utils.ts
5755
+ // ../../src/stream-utilities.ts
5756
5756
  import { Transform } from "node:stream";
5757
5757
  function createStreamTransform(logPrefix, logColor) {
5758
5758
  return new Transform({
@@ -5780,7 +5780,7 @@ async function streamToString(stream) {
5780
5780
  });
5781
5781
  }
5782
5782
 
5783
- // ../../src/string-utils.ts
5783
+ // ../../src/string-utilities.ts
5784
5784
  function pluralize(text, quantity) {
5785
5785
  return quantity === 1 ? text : text + "s";
5786
5786
  }
@@ -5843,10 +5843,15 @@ async function executeCliCommand(logStream, positionalArguments, optionFlags, co
5843
5843
  try {
5844
5844
  const subprocess = execa(command2.name, resolvedArguments, {
5845
5845
  cwd,
5846
- env: process.env.NO_COLOR === void 0 ? {
5846
+ env: {
5847
+ // Use colorful output unless NO_COLOR is set
5847
5848
  // eslint-disable-next-line ts/naming-convention
5848
- FORCE_COLOR: "true"
5849
- } : {},
5849
+ ...process.env.NO_COLOR === void 0 ? { FORCE_COLOR: "true" } : {},
5850
+ // Quiet node for when processing *.config.ts files in Node 22
5851
+ // Suppress experimental type stripping warning with --no-warnings
5852
+ // eslint-disable-next-line ts/naming-convention
5853
+ NODE_OPTIONS: "--experimental-strip-types --disable-warning=ExperimentalWarning"
5854
+ },
5850
5855
  preferLocal: true,
5851
5856
  reject: false,
5852
5857
  // Prevents throwing on non-zero exit code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/knip-config",
3
- "version": "5.0.4",
3
+ "version": "5.0.6",
4
4
  "description": "Knip configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -43,15 +43,15 @@
43
43
  "dependencies": {
44
44
  "@pinojs/json-colorizer": "^4.0.0",
45
45
  "cosmiconfig": "^9.0.0",
46
- "deepmerge-ts": "^7.1.4",
46
+ "deepmerge-ts": "^7.1.5",
47
47
  "execa": "^9.5.2",
48
48
  "find-workspaces": "^0.3.1",
49
49
  "fs-extra": "^11.3.0",
50
- "knip": "^5.43.6",
51
- "prettier": "^3.4.2"
50
+ "knip": "^5.45.0",
51
+ "prettier": "^3.5.2"
52
52
  },
53
53
  "engines": {
54
- "node": ">=22.0.0",
54
+ "node": ">=22.13.1",
55
55
  "pnpm": ">=10.0.0"
56
56
  },
57
57
  "publishConfig": {