Skip to content

Commit 900a84d

Browse files
committed
build: lock file maintenance
See associated pull request for more information. Closes #31611 as a pr takeover
1 parent 892e3f5 commit 900a84d

File tree

4 files changed

+425
-628
lines changed

4 files changed

+425
-628
lines changed

packages/angular/build/src/tools/esbuild/javascript-transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class JavaScriptTransformer {
125125
{
126126
// The below is disable as with Yarn PNP this causes build failures with the below message
127127
// `Unable to deserialize cloned data`.
128-
transferList: process.versions.pnp ? undefined : [data.buffer as ArrayBuffer],
128+
transferList: process.versions.pnp ? undefined : [data.buffer],
129129
},
130130
)) as Uint8Array;
131131

packages/angular/cli/src/command-builder/command-runner.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import { logging } from '@angular-devkit/core';
1010
import yargs from 'yargs';
11-
import { Parser } from 'yargs/helpers';
11+
import { Parser as yargsParser } from 'yargs/helpers';
1212
import {
1313
CommandConfig,
1414
CommandNames,
@@ -29,8 +29,6 @@ import {
2929
import { jsonHelpUsage } from './utilities/json-help';
3030
import { createNormalizeOptionsMiddleware } from './utilities/normalize-options-middleware';
3131

32-
const yargsParser = Parser as unknown as typeof Parser.default;
33-
3432
export async function runCommand(args: string[], logger: logging.Logger): Promise<number> {
3533
const {
3634
$0,

packages/angular_devkit/core/src/virtual-fs/host/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { TextDecoder, TextEncoder } from 'node:util';
1010
import { FileBuffer } from './interface';
1111

1212
export function stringToFileBuffer(str: string): FileBuffer {
13-
return new TextEncoder().encode(str).buffer as FileBuffer;
13+
return new TextEncoder().encode(str).buffer;
1414
}
1515

1616
export function fileBufferToString(fileBuffer: FileBuffer): string {

0 commit comments

Comments
 (0)