Skip to content

Commit 9fc958f

Browse files
alan-agius4josephperrott
authored andcommitted
fix(ng-dev): remove unnecessary quotes from npm deprecate arguments
With the recent changes to disable the shell in the ChildProcess wrappers, quotes are passed literally to the command. This removes the unnecessary quotes around the version to ensure the deprecate command functions correctly.
1 parent 4413fb0 commit 9fc958f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ng-dev/release/versioning/npm-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export abstract class NpmCommand {
4040
message: string,
4141
registryUrl: string | undefined,
4242
) {
43-
const args = ['deprecate', `${packageName}@"${version}"`, `"${message}"`];
43+
const args = ['deprecate', `${packageName}@${version}`, message];
4444

4545
// If a custom registry URL has been specified, add the `--registry` flag.
4646
if (registryUrl !== undefined) {

0 commit comments

Comments
 (0)