From 8f8627af1846f571416944692d2e990c17ef4a02 Mon Sep 17 00:00:00 2001 From: Brian Donovan <1938+eventualbuddha@users.noreply.github.com> Date: Sun, 23 Jul 2023 15:40:25 -0700 Subject: [PATCH] attempt to hoist `prettier-please` dependencies --- Cargo.toml | 3 +++ packages/autofmt/Cargo.toml | 4 +--- packages/check/Cargo.toml | 4 +--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a493d98b3..93a556b6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -84,6 +84,9 @@ rustc-hash = "1.1.0" wasm-bindgen = "0.2.87" html_parser = "0.7.0" thiserror = "1.0.40" +prettyplease = { package = "prettier-please", version = "0.2", features = [ + "verbatim", +] } # This is a "virtual package" # It is not meant to be published, but is used so "cargo run --example XYZ" works properly diff --git a/packages/autofmt/Cargo.toml b/packages/autofmt/Cargo.toml index 7cebf25bc..c0a3002b3 100644 --- a/packages/autofmt/Cargo.toml +++ b/packages/autofmt/Cargo.toml @@ -16,9 +16,7 @@ proc-macro2 = { version = "1.0.6", features = ["span-locations"] } quote = "1.0" syn = { version = "2.0", features = ["full", "extra-traits", "visit"] } serde = { version = "1.0.136", features = ["derive"] } -prettyplease = { package = "prettier-please", version = "0.2", features = [ - "verbatim", -] } +prettyplease = { workspace = true } [dev-dependencies] pretty_assertions = "1.2.1" diff --git a/packages/check/Cargo.toml b/packages/check/Cargo.toml index 701d845b3..2b793331c 100644 --- a/packages/check/Cargo.toml +++ b/packages/check/Cargo.toml @@ -16,10 +16,8 @@ proc-macro2 = { version = "1.0.6", features = ["span-locations"] } quote = "1.0" syn = { version = "1.0.11", features = ["full", "extra-traits", "visit"] } serde = { version = "1.0.136", features = ["derive"] } -prettyplease = { package = "prettier-please", version = "0.1.16", features = [ - "verbatim", -] } owo-colors = { version = "3.5.0", features = ["supports-colors"] } +prettyplease = { workspace = true } [dev-dependencies] indoc = "2.0.3"