Skip to content

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Oct 16, 2025

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) October 16, 2025 07:21
Copy link

Thanks for the PR 😍

How to test these changes in your application

  1. Define the SYMFONY_ENDPOINT environment variable:

    # On Unix-like (BSD, Linux and macOS)
    export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1872/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1872/index.json
  2. Install the package(s) related to this recipe:

    composer req symfony/flex
    composer req 'kocal/biome-js-bundle:^2.0' 'kocal/oxlint-bundle:^1.0'
  3. Don't forget to unset the SYMFONY_ENDPOINT environment variable when done:

    # On Unix-like (BSD, Linux and macOS)
    unset SYMFONY_ENDPOINT
    # On Windows
    SET SYMFONY_ENDPOINT=

Diff between recipe versions

In order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes.
I'm going keep this comment up to date with any updates of the attached patch.

kocal/biome-js-bundle

1.0 vs 1.1
diff --git a/kocal/biome-js-bundle/1.0/config/packages/kocal_biome_js.yaml b/kocal/biome-js-bundle/1.1/config/packages/kocal_biome_js.yaml
index fe6bb9d6..eda048c6 100644
--- a/kocal/biome-js-bundle/1.0/config/packages/kocal_biome_js.yaml
+++ b/kocal/biome-js-bundle/1.1/config/packages/kocal_biome_js.yaml
@@ -1,4 +1,7 @@
 when@dev:
     kocal_biome_js:
-        # Explicitly configure the version of Biome.js to use (https://github.com/biomejs/biome/tags), or null to use the latest version
-        binary_version: null
+        # Biome.js CLI version to use:
+        # - "latest_stable": use the latest stable version
+        # - "latest_nightly": use the latest nightly version
+        # - or a specific version, e.g. "v1.9.4", find available tags at https://github.com/biomejs/biome/tags
+        binary_version: 'v1.9.4'
1.1 vs 2.0
diff --git a/kocal/biome-js-bundle/1.1/biome.json b/kocal/biome-js-bundle/2.0/biome.json
index 4acd73f0..12c23f37 100644
--- a/kocal/biome-js-bundle/1.1/biome.json
+++ b/kocal/biome-js-bundle/2.0/biome.json
@@ -1,13 +1,16 @@
 {
     "files": {
-        "ignore": [
-            "assets/vendor/*",
-            "assets/controllers.json",
-            "composer.json",
-            "public/assets/*",
-            "public/bundles/*",
-            "var/cache/*",
-            "vendor/*"
+        "includes": [
+            "**",
+            "!assets/vendor/*",
+            "!assets/controllers.json",
+            "!public/assets/*",
+            "!public/bundles/*",
+            "!tests/*",
+            "!var/*",
+            "!vendor/*",
+            "!composer.json",
+            "!package.json"
         ]
     }
 }
diff --git a/kocal/biome-js-bundle/1.1/config/packages/kocal_biome_js.yaml b/kocal/biome-js-bundle/2.0/config/packages/kocal_biome_js.yaml
index eda048c6..58b2ba84 100644
--- a/kocal/biome-js-bundle/1.1/config/packages/kocal_biome_js.yaml
+++ b/kocal/biome-js-bundle/2.0/config/packages/kocal_biome_js.yaml
@@ -1,7 +1,6 @@
 when@dev:
     kocal_biome_js:
-        # Biome.js CLI version to use:
-        # - "latest_stable": use the latest stable version
-        # - "latest_nightly": use the latest nightly version
-        # - or a specific version, e.g. "v1.9.4", find available tags at https://github.com/biomejs/biome/tags
-        binary_version: 'v1.9.4'
+        # The Biome.js CLI version to use, that you can find at https://github.com/biomejs/biome/tags:
+        # - for >=2.0.0 versions, the git tag follows the pattern "@biomejs/biome@<binary_version>"
+        # - for <2.0.0 versions, the git tag follows the pattern "cli/v<binary_version>"
+        binary_version: '2.0.0'
diff --git a/kocal/biome-js-bundle/1.1/manifest.json b/kocal/biome-js-bundle/2.0/manifest.json
index a4422b62..4adab9d4 100644
--- a/kocal/biome-js-bundle/1.1/manifest.json
+++ b/kocal/biome-js-bundle/2.0/manifest.json
@@ -3,7 +3,10 @@
         "Kocal\\BiomeJsBundle\\KocalBiomeJsBundle": ["dev"]
     },
     "copy-from-recipe": {
-        "biome.json": "biome.json",
-        "config/": "%CONFIG_DIR%/"
-    }
+        "config/": "%CONFIG_DIR%/",
+        "biome.json": "biome.json"
+    },
+    "gitignore": [
+        "/%BIN_DIR%/biome"
+    ]
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant