Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/angular/cli/src/analytics/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { isTTY } from '../utilities/tty';
/**
* This is the ultimate safelist for checking if a package name is safe to report to analytics.
*/
export const analyticsPackageSafelist = [
const analyticsPackageSafelist = [
/^@angular\//,
/^@angular-devkit\//,
/^@nguniversal\//,
Expand Down
6 changes: 3 additions & 3 deletions packages/angular/cli/src/commands/mcp/mcp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ const STABLE_TOOLS = [
* The set of tools that are available but not enabled by default.
* These tools are considered experimental and may have limitations.
*/
export const EXPERIMENTAL_TOOLS: readonly AnyMcpToolDeclaration[] = [] as const;
const EXPERIMENTAL_TOOLS: readonly AnyMcpToolDeclaration[] = [] as const;

/**
* Experimental tools that are grouped together under a single name.
*
* Used for enabling them as a group.
*/
export const EXPERIMENTAL_TOOL_GROUPS: Record<string, readonly AnyMcpToolDeclaration[]> = {
const EXPERIMENTAL_TOOL_GROUPS: Record<string, readonly AnyMcpToolDeclaration[]> = {
'all': EXPERIMENTAL_TOOLS,
'devserver': [],
};
Expand Down Expand Up @@ -176,7 +176,7 @@ for equivalent actions.
return server;
}

export function assembleToolDeclarations(
function assembleToolDeclarations(
stableDeclarations: readonly AnyMcpToolDeclaration[],
experimentalDeclarations: readonly AnyMcpToolDeclaration[],
options: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function analyzeForUnsupportedZoneUses(
* @param ngZoneImport The import specifier for `NgZone`.
* @returns A list of nodes that are unsupported `NgZone` usages.
*/
export async function findUnsupportedZoneUsages(
async function findUnsupportedZoneUsages(
sourceFile: SourceFile,
ngZoneImport: ImportSpecifier,
): Promise<Node[]> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function migrateTestFile(
return createFixResponseForZoneTests(sourceFile);
}

export async function searchForGlobalZoneless(startPath: string, host: Host): Promise<boolean> {
async function searchForGlobalZoneless(startPath: string, host: Host): Promise<boolean> {
const angularJsonDir = findAngularJsonDir(startPath, host);
if (!angularJsonDir) {
// Cannot determine project root, fallback to original behavior or assume false.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function getImportSpecifiers(
* @param nodes Array of import specifiers to search through.
* @param specifierName Name of the specifier to look for.
*/
export function findImportSpecifier(
function findImportSpecifier(
nodes: ts.NodeArray<ts.ImportSpecifier>,
specifierName: string,
): ts.ImportSpecifier | undefined {
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/cli/src/commands/update/update-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function isReleaseAgeSatisfied(
return Date.now() - publishTime >= minReleaseAge;
}

export async function getSatisfyingVersion(
async function getSatisfyingVersion(
registryClient: RegistryClient,
metadata: PackageMetadata,
range: string,
Expand Down Expand Up @@ -368,7 +368,7 @@ function _getUpdateMetadata(
return result;
}

export function isPnpActive(workspaceRoot: string): boolean {
function isPnpActive(workspaceRoot: string): boolean {
return (
process.versions.pnp !== undefined ||
existsSync(path.join(workspaceRoot, '.pnp.cjs')) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function checkCLIVersion(
* @param next Whether to use the next version.
* @returns The version or tag to use for the CLI update runner.
*/
export function getCLIUpdateRunnerVersion(
function getCLIUpdateRunnerVersion(
packagesToUpdate: string[] | undefined,
next: boolean,
): string | number {
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/cli/src/utilities/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const currentDirectory = import.meta.dirname;
// In bundled ESM output, files are located in `lib/` directly adjacent to `config/schema.json`
// whereas in unbundled development/tests, `config.js` is in `src/utilities/`.
const bundledSchemaPath = path.join(currentDirectory, 'config/schema.json');
export const workspaceSchemaPath = existsSync(bundledSchemaPath)
const workspaceSchemaPath = existsSync(bundledSchemaPath)
? bundledSchemaPath
: path.join(currentDirectory, '../../lib/config/schema.json');

Expand Down
56 changes: 0 additions & 56 deletions packages/angular/cli/src/utilities/project.ts

This file was deleted.

Loading