From 1ef5333b0b3d872ac0aa51eea396e1c662755ef0 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Fri, 8 Nov 2024 17:41:22 -0400 Subject: [PATCH] remove windows-argv-parser package and related code (#1156) --- app/package.json | 1 - app/src/lib/custom-integration.ts | 3 +-- app/yarn.lock | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/package.json b/app/package.json index 659c3bd8970..66ed12a7a13 100644 --- a/app/package.json +++ b/app/package.json @@ -66,7 +66,6 @@ "untildify": "^3.0.2", "username": "^5.1.0", "uuid": "^3.0.1", - "windows-argv-parser": "file:../vendor/windows-argv-parser", "winston": "^3.6.0" }, "devDependencies": { diff --git a/app/src/lib/custom-integration.ts b/app/src/lib/custom-integration.ts index 55a9a57d6b9..dfead4b2525 100644 --- a/app/src/lib/custom-integration.ts +++ b/app/src/lib/custom-integration.ts @@ -1,5 +1,4 @@ import { ChildProcess, SpawnOptions, spawn } from 'child_process' -import { parseCommandLineArgv } from 'windows-argv-parser' import stringArgv from 'string-argv' import { promisify } from 'util' import { exec } from 'child_process' @@ -29,7 +28,7 @@ export interface ICustomIntegration { export function parseCustomIntegrationArguments( args: string ): ReadonlyArray { - return __WIN32__ ? parseCommandLineArgv(args) : stringArgv(args) + return stringArgv(args) } // Function to retrieve, on macOS, the bundleId of an app given its path diff --git a/app/yarn.lock b/app/yarn.lock index 9fee43a97a1..70a2586a107 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -1530,9 +1530,6 @@ wide-align@^1.1.0: dependencies: string-width "^1.0.2 || 2" -"windows-argv-parser@file:../vendor/windows-argv-parser": - version "0.0.1" - winston-transport@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.5.0.tgz#6e7b0dd04d393171ed5e4e4905db265f7ab384fa"