Skip to content

Commit 4dcadc1

Browse files
committed
refactor(): switch to cpu/utils where possible
1 parent 5535a89 commit 4dcadc1

File tree

13 files changed

+164
-272
lines changed

13 files changed

+164
-272
lines changed

packages/angular-mcp-server/src/lib/tools/ds/component-usage-graph/utils/component-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from 'path';
2-
import { toUnixPath } from '@push-based/utils';
2+
import { toUnixPath } from '@code-pushup/utils';
33
import { buildText } from '../../shared/utils/output.utils.js';
44
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
55
import {

packages/angular-mcp-server/src/lib/tools/ds/component-usage-graph/utils/component-usage-graph-builder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as path from 'path';
2-
import { toUnixPath, findAllFiles } from '@push-based/utils';
2+
import { toUnixPath } from '@code-pushup/utils';
3+
import { findAllFiles } from '@push-based/utils';
34
import {
45
BuildComponentUsageGraphOptions,
56
ComponentUsageGraphResult,

packages/angular-mcp-server/src/lib/tools/ds/component-usage-graph/utils/path-resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
3-
import { toUnixPath } from '@push-based/utils';
3+
import { toUnixPath } from '@code-pushup/utils';
44
import { DEPENDENCY_ANALYSIS_CONFIG } from '../models/config.js';
55

66
const { resolveExtensions, indexFiles } = DEPENDENCY_ANALYSIS_CONFIG;

packages/angular-mcp-server/src/lib/tools/ds/component-usage-graph/utils/unified-ast-analyzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
33
import * as ts from 'typescript';
4-
import { toUnixPath } from '@push-based/utils';
4+
import { toUnixPath } from '@code-pushup/utils';
55

66
import {
77
DependencyInfo,

packages/angular-mcp-server/src/lib/tools/ds/shared/utils/cross-platform-path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as path from 'path';
22
import * as fs from 'fs';
3-
import { toUnixPath } from '@push-based/utils';
3+
import { toUnixPath } from '@code-pushup/utils';
44

55
/**
66
* Enhanced path resolution with workspace root context for better debugging

packages/shared/DEPENDENCIES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This document provides an AI-friendly overview of the shared libraries in the `/
2525
#### `@push-based/utils`
2626

2727
- **Purpose**: General utility functions and file system operations
28-
- **Key Exports**: toUnixPath, slugify, pluralize, findFilesWithPattern, resolveFile
28+
- **Key Exports**: findFilesWithPattern, resolveFile
2929
- **Dependencies**: models
3030
- **Used By**: angular-ast-utils, ds-component-coverage
3131

packages/shared/angular-ast-utils/src/lib/parse-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toUnixPath } from '@push-based/utils';
1+
import { toUnixPath } from '@code-pushup/utils';
22
import * as ts from 'typescript';
33

44
import { classDecoratorVisitor } from './decorator-config.visitor.js';

packages/shared/ds-component-coverage/src/lib/runner/audits/ds-coverage/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Audit, AuditOutput, Issue } from '@code-pushup/models';
2-
import { pluralize, slugify } from '@push-based/utils';
2+
import { pluralize, slugify } from '@code-pushup/utils';
33
import { ComponentReplacement } from './schema.js';
44

55
/**

packages/shared/ds-component-coverage/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@
44
"include": [],
55
"references": [
66
{
7-
"path": "../utils"
7+
"path": "../models"
88
},
99
{
1010
"path": "../styles-ast-utils"
1111
},
1212
{
1313
"path": "../angular-ast-utils"
1414
},
15-
{
16-
"path": "../models"
17-
},
1815
{
1916
"path": "./tsconfig.lib.json"
2017
},

packages/shared/ds-component-coverage/tsconfig.lib.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
"include": ["src/**/*.ts"],
1515
"references": [
1616
{
17-
"path": "../utils/tsconfig.lib.json"
17+
"path": "../models/tsconfig.lib.json"
1818
},
1919
{
2020
"path": "../styles-ast-utils/tsconfig.lib.json"
2121
},
2222
{
2323
"path": "../angular-ast-utils/tsconfig.lib.json"
24-
},
25-
{
26-
"path": "../models/tsconfig.lib.json"
2724
}
2825
],
2926
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]

0 commit comments

Comments
 (0)