deslop-js 0.0.2
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/LICENSE +21 -0
- package/dist/cli.cjs +141 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +142 -0
- package/dist/index.cjs +4953 -0
- package/dist/index.d.cts +44 -0
- package/dist/index.d.mts +44 -0
- package/dist/index.mjs +4922 -0
- package/dist/src-BIp8ek0h.mjs +4922 -0
- package/dist/src-BuniDJsj.cjs +4970 -0
- package/dist/src-OVMbJnkL.mjs +4924 -0
- package/dist/src-wbNpmldQ.cjs +4968 -0
- package/package.json +64 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
interface UnusedFile {
|
|
3
|
+
path: string;
|
|
4
|
+
}
|
|
5
|
+
interface UnusedExport {
|
|
6
|
+
path: string;
|
|
7
|
+
name: string;
|
|
8
|
+
line: number;
|
|
9
|
+
column: number;
|
|
10
|
+
isTypeOnly: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface UnusedDependency {
|
|
13
|
+
name: string;
|
|
14
|
+
isDevDependency: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface CircularDependency {
|
|
17
|
+
files: string[];
|
|
18
|
+
}
|
|
19
|
+
interface ScanResult {
|
|
20
|
+
unusedFiles: UnusedFile[];
|
|
21
|
+
unusedExports: UnusedExport[];
|
|
22
|
+
unusedDependencies: UnusedDependency[];
|
|
23
|
+
circularDependencies: CircularDependency[];
|
|
24
|
+
totalFiles: number;
|
|
25
|
+
totalExports: number;
|
|
26
|
+
analysisTimeMs: number;
|
|
27
|
+
}
|
|
28
|
+
interface DeslopConfig {
|
|
29
|
+
rootDir: string;
|
|
30
|
+
entryPatterns: string[];
|
|
31
|
+
ignorePatterns: string[];
|
|
32
|
+
includeExtensions: string[];
|
|
33
|
+
tsConfigPath: string | undefined;
|
|
34
|
+
reportTypes: boolean;
|
|
35
|
+
includeEntryExports: boolean;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/index.d.ts
|
|
39
|
+
declare const defineConfig: (options: Partial<DeslopConfig> & {
|
|
40
|
+
rootDir: string;
|
|
41
|
+
}) => DeslopConfig;
|
|
42
|
+
declare const analyze: (config: DeslopConfig) => Promise<ScanResult>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { type CircularDependency, type DeslopConfig, type ScanResult, type UnusedDependency, type UnusedExport, type UnusedFile, analyze, defineConfig };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
interface UnusedFile {
|
|
3
|
+
path: string;
|
|
4
|
+
}
|
|
5
|
+
interface UnusedExport {
|
|
6
|
+
path: string;
|
|
7
|
+
name: string;
|
|
8
|
+
line: number;
|
|
9
|
+
column: number;
|
|
10
|
+
isTypeOnly: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface UnusedDependency {
|
|
13
|
+
name: string;
|
|
14
|
+
isDevDependency: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface CircularDependency {
|
|
17
|
+
files: string[];
|
|
18
|
+
}
|
|
19
|
+
interface ScanResult {
|
|
20
|
+
unusedFiles: UnusedFile[];
|
|
21
|
+
unusedExports: UnusedExport[];
|
|
22
|
+
unusedDependencies: UnusedDependency[];
|
|
23
|
+
circularDependencies: CircularDependency[];
|
|
24
|
+
totalFiles: number;
|
|
25
|
+
totalExports: number;
|
|
26
|
+
analysisTimeMs: number;
|
|
27
|
+
}
|
|
28
|
+
interface DeslopConfig {
|
|
29
|
+
rootDir: string;
|
|
30
|
+
entryPatterns: string[];
|
|
31
|
+
ignorePatterns: string[];
|
|
32
|
+
includeExtensions: string[];
|
|
33
|
+
tsConfigPath: string | undefined;
|
|
34
|
+
reportTypes: boolean;
|
|
35
|
+
includeEntryExports: boolean;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/index.d.ts
|
|
39
|
+
declare const defineConfig: (options: Partial<DeslopConfig> & {
|
|
40
|
+
rootDir: string;
|
|
41
|
+
}) => DeslopConfig;
|
|
42
|
+
declare const analyze: (config: DeslopConfig) => Promise<ScanResult>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { type CircularDependency, type DeslopConfig, type ScanResult, type UnusedDependency, type UnusedExport, type UnusedFile, analyze, defineConfig };
|