From b27c333008320cd8eb13d2a371ae9e68c9af91ed Mon Sep 17 00:00:00 2001 From: Eli <12771-Eli.Stone@users.noreply.drupalcode.org> Date: Mon, 22 Jan 2024 15:36:07 +0000 Subject: [PATCH] Resolve #3288828 "D10" --- composer.json | 10 ---------- npm.info.yml | 3 +-- src/Plugin/NpmExecutable/Yarn.php | 4 ---- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/composer.json b/composer.json index 4c567da..8f208f3 100644 --- a/composer.json +++ b/composer.json @@ -10,21 +10,11 @@ "issues": "https://www.drupal.org/project/issues/npm", "source": "http://cgit.drupalcode.org/npm" }, - "require": { - "symfony/process": "^3.4 || ^4.4" - }, "autoload": { "psr-4": { "Drupal\\npm\\": "src/" } }, - "extra": { - "drush": { - "services": { - "drush.services.yml": "^9" - } - } - }, "authors": [ { "name": "Błażej Owczarczyk", diff --git a/npm.info.yml b/npm.info.yml index 314c6b5..cec80dd 100644 --- a/npm.info.yml +++ b/npm.info.yml @@ -2,5 +2,4 @@ name: Node Package Manager type: module description: Provides npm actions, e.g. require a package, run script, etc. package: Javascript -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 diff --git a/src/Plugin/NpmExecutable/Yarn.php b/src/Plugin/NpmExecutable/Yarn.php index a16ae6b..7ca4037 100644 --- a/src/Plugin/NpmExecutable/Yarn.php +++ b/src/Plugin/NpmExecutable/Yarn.php @@ -96,10 +96,6 @@ class Yarn extends NpmExecutablePluginBase { $cwd = $this->getWorkingDirectory(); array_unshift($args, "--cwd=$cwd"); array_unshift($args, 'yarn'); - // Drupal 8.4 come with symfony/process 3.2.8 (3.4.14 in 8.5). Array - // arguments were introduced in 3.3. - // TODO: Delete this line after dropping support for drupal 8.4. - $args = implode(' ', $args); return new Process($args); } -- GitLab