@kitschpatrol/knip-config 5.0.1 → 5.0.3

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/bin/cli.js CHANGED
@@ -5541,7 +5541,7 @@ var Yargs = YargsFactory(esm_default);
5541
5541
  var yargs_default = Yargs;
5542
5542
 
5543
5543
  // ../../package.json
5544
- var version = "5.0.1";
5544
+ var version = "5.0.3";
5545
5545
 
5546
5546
  // ../../src/execa-utils.ts
5547
5547
  function isErrorExecaError(error) {
@@ -6206,6 +6206,7 @@ var sharedKnipConfig = {
6206
6206
  "{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!",
6207
6207
  "src/{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!",
6208
6208
  // Customized entries
6209
+ "src/{bin,lib,cli}/{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!",
6209
6210
  "scripts/**/*.ts",
6210
6211
  ".remarkrc.js",
6211
6212
  "cspell.config.js",
@@ -6221,11 +6222,7 @@ var sharedKnipConfig = {
6221
6222
  "@kitschpatrol/mdat-config",
6222
6223
  "@kitschpatrol/prettier-config",
6223
6224
  "@kitschpatrol/remark-config",
6224
- "@kitschpatrol/repo-config",
6225
- // Technically not needed?
6226
- "@kitschpatrol/stylelint-config",
6227
- "@kitschpatrol/typescript-config"
6228
- // Technically not needed?
6225
+ "@kitschpatrol/stylelint-config"
6229
6226
  ]
6230
6227
  };
6231
6228
  var index_default = sharedKnipConfig;
@@ -6256,7 +6253,12 @@ var commandDefinition = {
6256
6253
  {
6257
6254
  cwdOverride: "workspace-root",
6258
6255
  name: "knip",
6259
- optionFlags: ["--fix", "--allow-remove-files", ...getWorkspaceOptionFlags()]
6256
+ optionFlags: [
6257
+ "--fix",
6258
+ "--allow-remove-files",
6259
+ "--no-config-hints",
6260
+ ...getWorkspaceOptionFlags()
6261
+ ]
6260
6262
  }
6261
6263
  ],
6262
6264
  description: `Automatically remove unused code and dependencies. ${DESCRIPTION.packageRun} ${DESCRIPTION.monorepoRun}`,
@@ -6274,7 +6276,7 @@ var commandDefinition = {
6274
6276
  // Run from root, then pass --workspace IF in a monorepo and called from a subpackage
6275
6277
  cwdOverride: "workspace-root",
6276
6278
  name: "knip",
6277
- optionFlags: ["--no-progress", ...getWorkspaceOptionFlags()]
6279
+ optionFlags: ["--no-progress", "--no-config-hints", ...getWorkspaceOptionFlags()]
6278
6280
  }
6279
6281
  // "Production" pass is not worth it?
6280
6282
  // {
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ const sharedKnipConfig = {
9
9
  '{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!',
10
10
  'src/{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!',
11
11
  // Customized entries
12
+ 'src/{bin,lib,cli}/{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!',
12
13
  'scripts/**/*.ts',
13
14
  '.remarkrc.js',
14
15
  'cspell.config.js',
@@ -24,9 +25,7 @@ const sharedKnipConfig = {
24
25
  '@kitschpatrol/mdat-config',
25
26
  '@kitschpatrol/prettier-config',
26
27
  '@kitschpatrol/remark-config',
27
- '@kitschpatrol/repo-config', // Technically not needed?
28
28
  '@kitschpatrol/stylelint-config',
29
- '@kitschpatrol/typescript-config', // Technically not needed?
30
29
  ],
31
30
  };
32
31
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/knip-config",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Knip configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -44,6 +44,7 @@
44
44
  "cosmiconfig": "^9.0.0",
45
45
  "deepmerge-ts": "^7.1.4",
46
46
  "execa": "^9.5.2",
47
+ "find-workspaces": "^0.3.1",
47
48
  "fs-extra": "^11.3.0",
48
49
  "knip": "^5.43.6",
49
50
  "prettier": "^3.4.2"