From 700eb14dce4a60f7471be028d3c7d59b1e3b0058 Mon Sep 17 00:00:00 2001 From: Gustav Pursche Date: Sun, 6 Dec 2020 16:31:02 +0100 Subject: [PATCH] chore: update postcss version to 8 (#325) * chore: update postcss version to 8 * docs: update README installation instructions * chore: remove legacy postcss dependecy * chore: add postcss to dev dependencies Co-authored-by: Edward Elric --- README.md | 2 +- package.json | 5 ++++- yarn.lock | 28 ++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b656ec6..6fcd8545 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Seamless integration between [Rollup](https://github.com/rollup/rollup) and [Pos ## Install ```bash -yarn add rollup-plugin-postcss --dev +yarn add postcss rollup-plugin-postcss --dev ``` ## Usage diff --git a/package.json b/package.json index 19ad9ec0..de512cc8 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "jest": "^25.3.0", "less": "^3.11.1", "node-sass": "^4.13.1", + "postcss": "^8.0.0", "rollup": "^2.6.1", "stylus": "^0.54.7", "sugarss": "^2.0.0", @@ -56,7 +57,6 @@ "import-cwd": "^3.0.0", "p-queue": "^6.3.0", "pify": "^5.0.0", - "postcss": "^7.0.27", "postcss-load-config": "^2.1.0", "postcss-modules": "^2.0.0", "promise.series": "^0.2.0", @@ -65,6 +65,9 @@ "safe-identifier": "^0.4.1", "style-inject": "^0.3.0" }, + "peerDependencies": { + "postcss": "^8.0.0" + }, "xo": { "extends": "rem", "envs": [ diff --git a/yarn.lock b/yarn.lock index 806d71f3..e3acd5fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2877,6 +2877,11 @@ color@^3.0.0: color-convert "^1.9.1" color-string "^1.5.2" +colorette@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.1.tgz#4d0b921325c14faf92633086a536db6e89564b1b" + integrity sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw== + colors@^1.1.2: version "1.3.3" resolved "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz#39e005d546afe01e01f9c4ca8fa50f686a01205d" @@ -6255,6 +6260,14 @@ line-column-path@^2.0.0: dependencies: type-fest "^0.4.1" +line-column@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/line-column/-/line-column-1.0.2.tgz#d25af2936b6f4849172b312e4792d1d987bc34a2" + integrity sha1-0lryk2tvSEkXKzEuR5LR2Ye8NKI= + dependencies: + isarray "^1.0.0" + isobject "^2.0.0" + lines-and-columns@^1.1.6: version "1.1.6" resolved "https://registry.npm.taobao.org/lines-and-columns/download/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" @@ -6721,6 +6734,11 @@ nan@^2.13.2: resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== +nanoid@^3.1.12: + version "3.1.12" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.12.tgz#6f7736c62e8d39421601e4a0c77623a97ea69654" + integrity sha512-1qstj9z5+x491jfiC4Nelk+f8XBad7LN20PmyWINJEMRSf3wcAjAWysw1qaA8z6NSKe2sjq1hRSDpBH5paCb6A== + nanomatch@^1.2.9: version "1.2.13" resolved "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" @@ -8074,6 +8092,16 @@ postcss@^7.0.2, postcss@^7.0.27: source-map "^0.6.1" supports-color "^6.1.0" +postcss@^8.0.0: + version "8.0.9" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.0.9.tgz#d112fc1e8bbed550657901550fa736ae3dd25ec5" + integrity sha512-9Ikq03Hvb/L6dgnOtNOUbcgg9Rsff5uKrI1TyNTQ2ALpa6psZk1Ar3/Hhxv2Q0rECRGDxtcMUTZIQglXozlrDQ== + dependencies: + colorette "^1.2.1" + line-column "^1.0.2" + nanoid "^3.1.12" + source-map "^0.6.1" + prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"