Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
refactor: migrate from parcel-css to lightning-css (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted authored Sep 12, 2022
1 parent e0ce0eb commit 744b007
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 77 deletions.
147 changes: 74 additions & 73 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
keywords = ["formatting", "formatter", "css"]
license = "MIT"
repository = "https://github.com/disrupted/dprint-plugin-css"
description = "CSS formatter for dprint via parcel_css."
description = "CSS formatter for dprint via lightningcss."

[lib]
crate-type = ["lib", "cdylib"]
Expand All @@ -24,7 +24,7 @@ wasm = ["serde_json", "dprint-core/wasm"]

[dependencies]
anyhow = "1.0.51"
parcel_css = { version = "1.0.0-alpha.25" }
lightningcss = "1.0.0-alpha.33"
dprint-core = { version = "0.50.0", features = ["formatting"] }
serde = { version = "1.0.117", features = ["derive"] }
serde_json = { version = "1.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dprint-plugin-css

Wrapper around [parcel-css](https://github.com/parcel-bundler/parcel-css) for use as a formatting plugin for [dprint](https://github.com/dprint/dprint).
Wrapper around [Lightning CSS](https://github.com/parcel-bundler/lightningcss) for use as a formatting plugin for [dprint](https://github.com/dprint/dprint).

## Install

Expand Down
2 changes: 1 addition & 1 deletion src/format_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::configuration::Configuration;

use anyhow::Result;
use dprint_core::configuration::resolve_new_line_kind;
use parcel_css::stylesheet::{ParserOptions, PrinterOptions, StyleSheet};
use lightningcss::stylesheet::{ParserOptions, PrinterOptions, StyleSheet};
use std::path::Path;

const PRINTER_OPTS: PrinterOptions = PrinterOptions {
Expand Down

0 comments on commit 744b007

Please sign in to comment.