From ea032d8ea671f2cca469c583a8572036036f182d Mon Sep 17 00:00:00 2001 From: Igor <35524806+igorschoester@users.noreply.github.com> Date: Wed, 10 Mar 2021 10:35:03 +0100 Subject: [PATCH] Add @yoast/browserslist-config as dependency Move the config to separate file to try to keep package.json clean --- .browserslistrc | 1 + package.json | 4 +--- yarn.lock | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .browserslistrc diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 00000000000..f5e7f33bd6d --- /dev/null +++ b/.browserslistrc @@ -0,0 +1 @@ +extends @yoast/browserslist-config diff --git a/package.json b/package.json index 570d991d817..ad5d4b78bbc 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "@wordpress/babel-plugin-makepot": "^1.0.0", "@wordpress/babel-preset-default": "^1.1.3", "@wordpress/dependency-extraction-webpack-plugin": "^2.8.0", + "@yoast/browserslist-config": "file:packages/browserslist-config", "@yoast/grunt-plugin-tasks": "^2.0.0", "babel-cli": "^6.26.0", "babel-core": "^6.26.0", @@ -100,9 +101,6 @@ "webpack-cli": "^3.1.1", "webpack-dev-server": "^3.1.14" }, - "browserslist": [ - "extends @yoast/browserslist-config" - ], "yoast": { "pluginVersion": "16.0-RC5" } diff --git a/yarn.lock b/yarn.lock index 72d21ddb304..ce008404261 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3387,6 +3387,9 @@ resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== +"@yoast/browserslist-config@file:packages/browserslist-config": + version "1.2.2" + "@yoast/grunt-plugin-tasks@^2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@yoast/grunt-plugin-tasks/-/grunt-plugin-tasks-2.0.0.tgz#77c33c1b3fd8087075b611e49c4654b21e86ca15"