Skip to content

Commit 99ef1e4

Browse files
committed
Replace type-fest with two basic type defs
1 parent 5d4d166 commit 99ef1e4

File tree

13 files changed

+20
-11
lines changed

13 files changed

+20
-11
lines changed

bun.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
"glob": "^11.0.2",
7676
"release-it": "^19.0.4",
7777
"tsx": "^4.20.3",
78-
"type-fest": "^4.31.0",
7978
"typescript": "^5.5.2",
8079
},
8180
"peerDependencies": {

packages/knip/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
"glob": "^11.0.2",
9393
"release-it": "^19.0.4",
9494
"tsx": "^4.20.3",
95-
"type-fest": "^4.31.0",
9695
"typescript": "^5.5.2"
9796
},
9897
"engines": {

packages/knip/src/plugins/typescript/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { TsConfigJson } from 'type-fest';
21
import type { ConfigArg } from '../../types/args.js';
32
import type { IsPluginEnabled, Plugin, ResolveConfig } from '../../types/config.js';
3+
import type { TsConfigJson } from '../../types/tsconfig-json.js';
44
import { compact } from '../../util/array.js';
55
import { toConfig, toDeferResolve, toProductionDependency } from '../../util/input.js';
66
import { join } from '../../util/path.js';

packages/knip/src/reporters/codeclimate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createHash } from 'node:crypto';
22
import type * as codeclimate from 'codeclimate-types';
3-
import type { Entries } from 'type-fest';
43
import { ISSUE_TYPE_TITLE } from '../constants.js';
4+
import type { Entries } from '../types/entries.js';
55
import type {
66
Issue,
77
IssueRecords,

packages/knip/src/reporters/codeowners.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Entries } from 'type-fest';
1+
import type { Entries } from '../types/entries.js';
22
import type { Issue, ReporterOptions } from '../types/issues.js';
33
import { createOwnershipEngine } from '../util/codeowners.js';
44
import { relative, resolve } from '../util/path.js';

packages/knip/src/reporters/compact.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Entries } from 'type-fest';
1+
import type { Entries } from '../types/entries.js';
22
import type { Issue, IssueRecords, IssueSet, ReporterOptions } from '../types/issues.js';
33
import { toRelative } from '../util/path.js';
44
import { getColoredTitle, getIssueLine, getIssueTypeTitle } from './util/util.js';

packages/knip/src/reporters/disclosure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Entries } from 'type-fest';
1+
import type { Entries } from '../types/entries.js';
22
import type { ReporterOptions } from '../types/issues.js';
33
import { getIssueTypeTitle, getTableForType } from './util/util.js';
44

packages/knip/src/reporters/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Entries } from 'type-fest';
1+
import type { Entries } from '../types/entries.js';
22
import type { Issue, IssueRecords, Report, ReporterOptions } from '../types/issues.js';
33
import { createOwnershipEngine } from '../util/codeowners.js';
44
import { isFile } from '../util/fs.js';

packages/knip/src/reporters/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Entries } from 'type-fest';
1+
import type { Entries } from '../types/entries.js';
22
import type { Issue, IssueSet, ReporterOptions } from '../types/issues.js';
33
import { relative, toRelative } from '../util/path.js';
44
import { getIssueTypeTitle } from './util/util.js';

packages/knip/src/reporters/symbols.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Entries } from 'type-fest';
1+
import type { Entries } from '../types/entries.js';
22
import type { ReporterOptions } from '../types/issues.js';
33
import { printConfigurationHints } from './util/configuration-hints.js';
44
import { getColoredTitle, getIssueTypeTitle, getTableForType } from './util/util.js';

0 commit comments

Comments
 (0)