knip 4.2.2 → 4.2.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.
@@ -1,4 +1,4 @@
1
- import { parseArgs } from './parse-args.js';
1
+ import { parseArgs } from 'node:util';
2
2
  export const helpText = `✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects
3
3
 
4
4
  Usage: knip [options]
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "4.2.2";
1
+ export declare const version = "4.2.3";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '4.2.2';
1
+ export const version = '4.2.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {
@@ -57,7 +57,6 @@
57
57
  "@nodelib/fs.walk": "2.0.0",
58
58
  "@npmcli/map-workspaces": "3.0.4",
59
59
  "@npmcli/package-json": "5.0.0",
60
- "@pkgjs/parseargs": "0.11.0",
61
60
  "@pnpm/logger": "5.0.0",
62
61
  "@pnpm/workspace.pkgs-graph": "^2.0.14",
63
62
  "@snyk/github-codeowners": "1.1.0",
@@ -92,7 +91,6 @@
92
91
  "@types/minimist": "^1.2.5",
93
92
  "@types/npmcli__map-workspaces": "^3.0.4",
94
93
  "@types/npmcli__package-json": "^4.0.3",
95
- "@types/pkgjs__parseargs": "^0.10.3",
96
94
  "@types/webpack": "^5.28.5",
97
95
  "c8": "9.1.0",
98
96
  "eslint": "^8.56.0",
@@ -1,3 +0,0 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- declare let parseArgs: typeof import('node:util').parseArgs;
3
- export { parseArgs };
@@ -1,8 +0,0 @@
1
- let parseArgs;
2
- if (process.versions.bun) {
3
- parseArgs = (await import('@pkgjs/parseargs')).parseArgs;
4
- }
5
- else {
6
- parseArgs = (await import('node:util')).parseArgs;
7
- }
8
- export { parseArgs };