fix(api/rust): Exclude test files from rust packages (#4091)

This commit is contained in:
Donny/강동윤 2022-03-19 19:49:12 +09:00 committed by GitHub
parent f75ec3dd66
commit 533f756274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 100 additions and 75 deletions

View File

@ -3,6 +3,7 @@ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "JsDoc parser writen in rust"
documentation = "https://rustdoc.swc.rs/jsdoc/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "jsdoc"
version = "0.64.0"

View File

@ -3,6 +3,7 @@ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "CSS code generator for the swc project"
documentation = "https://rustdoc.swc.rs/swc_css_codegen/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_css_codegen"
repository = "https://github.com/swc-project/swc.git"

View File

@ -3,6 +3,7 @@ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "CSS linter"
documentation = "https://rustdoc.swc.rs/swc_css_lints/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_css_lints"
repository = "https://github.com/swc-project/swc.git"

View File

@ -3,6 +3,7 @@ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "CSS minifier"
documentation = "https://rustdoc.swc.rs/swc_css_minifier/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_css_minifier"
repository = "https://github.com/swc-project/swc.git"
@ -11,12 +12,12 @@ version = "0.65.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
swc_atoms = { version = "0.2.9", path = "../swc_atoms" }
swc_common = { version = "0.17.0", path = "../swc_common" }
swc_css_ast = { version = "0.91.0", path = "../swc_css_ast" }
swc_css_visit = { version = "0.90.0", path = "../swc_css_visit" }
swc_atoms = {version = "0.2.9", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
swc_css_ast = {version = "0.91.0", path = "../swc_css_ast"}
swc_css_visit = {version = "0.90.0", path = "../swc_css_visit"}
[dev-dependencies]
swc_css_codegen = { version = "0.100.0", path = "../swc_css_codegen" }
swc_css_parser = { version = "0.99.0", path = "../swc_css_parser" }
testing = { version = "0.19.0", path = "../testing" }
swc_css_codegen = {version = "0.100.0", path = "../swc_css_codegen"}
swc_css_parser = {version = "0.99.0", path = "../swc_css_parser"}
testing = {version = "0.19.0", path = "../testing"}

View File

@ -3,11 +3,11 @@ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "CSS paresr"
documentation = "https://rustdoc.swc.rs/swc_css_parser/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_css_parser"
repository = "https://github.com/swc-project/swc.git"
version = "0.99.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
debug = []
@ -15,12 +15,12 @@ debug = []
[dependencies]
bitflags = "1.2.1"
lexical = "6.1.0"
swc_atoms = { version = "0.2.7", path = "../swc_atoms" }
swc_common = { version = "0.17.0", path = "../swc_common" }
swc_css_ast = { version = "0.91.0", path = "../swc_css_ast" }
swc_atoms = {version = "0.2.7", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
swc_css_ast = {version = "0.91.0", path = "../swc_css_ast"}
[dev-dependencies]
serde = "1.0.127"
serde_json = "1.0.66"
swc_css_visit = { version = "0.90.0", path = "../swc_css_visit" }
testing = { version = "0.19.0", path = "../testing" }
swc_css_visit = {version = "0.90.0", path = "../swc_css_visit"}
testing = {version = "0.19.0", path = "../testing"}

View File

@ -2,6 +2,7 @@
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "Linter for the swc project"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_ecma_lints"
repository = "https://github.com/swc-project/swc.git"
@ -15,20 +16,20 @@ dashmap = "5.1.0"
parking_lot = "0.12.0"
rayon = "1.5.1"
regex = "1"
serde = { version = "1.0.133", features = ["derive"] }
swc_atoms = { version = "0.2.9", path = "../swc_atoms" }
swc_common = { version = "0.17.0", path = "../swc_common", features = [
serde = {version = "1.0.133", features = ["derive"]}
swc_atoms = {version = "0.2.9", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common", features = [
"concurrent",
] }
swc_ecma_ast = { version = "0.71.0", path = "../swc_ecma_ast" }
swc_ecma_utils = { version = "0.74.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.57.0", path = "../swc_ecma_visit" }
]}
swc_ecma_ast = {version = "0.71.0", path = "../swc_ecma_ast"}
swc_ecma_utils = {version = "0.74.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.57.0", path = "../swc_ecma_visit"}
[dev-dependencies]
swc_ecma_codegen = { version = "0.98.0", path = "../swc_ecma_codegen" }
swc_ecma_parser = { version = "0.95.0", path = "../swc_ecma_parser" }
swc_ecma_transforms_base = { version = "0.70.0", path = "../swc_ecma_transforms_base" }
testing = { version = "0.19.0", path = "../testing" }
swc_ecma_codegen = {version = "0.98.0", path = "../swc_ecma_codegen"}
swc_ecma_parser = {version = "0.95.0", path = "../swc_ecma_parser"}
swc_ecma_transforms_base = {version = "0.70.0", path = "../swc_ecma_transforms_base"}
testing = {version = "0.19.0", path = "../testing"}
[features]
non_critical_lints = []

View File

@ -3,6 +3,7 @@ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "rust port of babel and closure compiler."
documentation = "https://rustdoc.swc.rs/swc_ecma_transforms_base/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs", "src/**/*.js"]
license = "Apache-2.0"
name = "swc_ecma_transforms_base"
repository = "https://github.com/swc-project/swc.git"
@ -12,21 +13,21 @@ version = "0.70.2"
concurrent = ["rayon", "swc_ecma_utils/concurrent"]
[dependencies]
better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
better_scoped_tls = {version = "0.1.0", path = "../better_scoped_tls"}
once_cell = "1.10.0"
phf = { version = "0.10", features = ["macros"] }
rayon = { version = "1", optional = true }
serde = { version = "1", features = ["derive"] }
phf = {version = "0.10", features = ["macros"]}
rayon = {version = "1", optional = true}
serde = {version = "1", features = ["derive"]}
smallvec = "1.8.0"
swc_atoms = { version = "0.2", path = "../swc_atoms" }
swc_common = { version = "0.17.0", path = "../swc_common" }
swc_ecma_ast = { version = "0.71.0", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "0.95.0", path = "../swc_ecma_parser" }
swc_ecma_utils = { version = "0.74.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.57.0", path = "../swc_ecma_visit" }
swc_atoms = {version = "0.2", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
swc_ecma_ast = {version = "0.71.0", path = "../swc_ecma_ast"}
swc_ecma_parser = {version = "0.95.0", path = "../swc_ecma_parser"}
swc_ecma_utils = {version = "0.74.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.57.0", path = "../swc_ecma_visit"}
tracing = "0.1.32"
[dev-dependencies]
swc_ecma_codegen = { version = "0.98.0", path = "../swc_ecma_codegen" }
swc_ecma_transforms_macros = { version = "0.3.0", path = "../swc_ecma_transforms_macros" }
testing = { version = "0.19.0", path = "../testing" }
swc_ecma_codegen = {version = "0.98.0", path = "../swc_ecma_codegen"}
swc_ecma_transforms_macros = {version = "0.3.0", path = "../swc_ecma_transforms_macros"}
testing = {version = "0.19.0", path = "../testing"}

View File

@ -3,6 +3,7 @@ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "Compatibility layer between estree and swc"
documentation = "https://rustdoc.swc.rs/swc_estree_compat/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_estree_compat"
repository = "https://github.com/swc-project/swc.git"
@ -12,30 +13,30 @@ version = "0.78.0"
all-features = true
[dependencies]
ahash = { version = "0.7.0", features = ["compile-time-rng"] }
ahash = {version = "0.7.0", features = ["compile-time-rng"]}
anyhow = "1"
copyless = "0.1.5"
rayon = "1.5.0"
serde = { version = "1", features = ["derive"] }
serde = {version = "1", features = ["derive"]}
serde_json = "1.0.62"
swc_atoms = { version = "0.2", path = "../swc_atoms" }
swc_common = { version = "0.17.0", path = "../swc_common", features = [
swc_atoms = {version = "0.2", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common", features = [
"concurrent",
"sourcemap",
"tty-emitter",
] }
swc_ecma_ast = { version = "0.71.0", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "0.95.0", path = "../swc_ecma_parser" }
swc_ecma_utils = { version = "0.74.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.57.0", path = "../swc_ecma_visit" }
swc_estree_ast = { version = "0.7.0", path = "../swc_estree_ast" }
swc_node_comments = { version = "0.4.0", path = "../swc_node_comments/" }
]}
swc_ecma_ast = {version = "0.71.0", path = "../swc_ecma_ast"}
swc_ecma_parser = {version = "0.95.0", path = "../swc_ecma_parser"}
swc_ecma_utils = {version = "0.74.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.57.0", path = "../swc_ecma_visit"}
swc_estree_ast = {version = "0.7.0", path = "../swc_estree_ast"}
swc_node_comments = {version = "0.4.0", path = "../swc_node_comments/"}
[dev-dependencies]
pretty_assertions = "1.1"
swc = { version = "0.158.0", path = "../swc" }
swc_ecma_ast = { version = "0.71.0", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "0.95.0", path = "../swc_ecma_parser" }
swc_ecma_transforms = { version = "0.136.0", path = "../swc_ecma_transforms/" }
testing = { version = "0.19.0", path = "../testing" }
swc = {version = "0.158.0", path = "../swc"}
swc_ecma_ast = {version = "0.71.0", path = "../swc_ecma_ast"}
swc_ecma_parser = {version = "0.95.0", path = "../swc_ecma_parser"}
swc_ecma_transforms = {version = "0.136.0", path = "../swc_ecma_transforms/"}
testing = {version = "0.19.0", path = "../testing"}
walkdir = "2"

View File

@ -3,6 +3,7 @@ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "Port of stylis"
documentation = "https://rustdoc.swc.rs/swc_stylis/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_stylis"
repository = "https://github.com/swc-project/swc.git"
@ -11,13 +12,13 @@ version = "0.99.2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
swc_atoms = { version = "0.2.7", path = "../swc_atoms" }
swc_common = { version = "0.17.0", path = "../swc_common" }
swc_css_ast = { version = "0.91.0", path = "../swc_css_ast" }
swc_css_utils = { version = "0.88.0", path = "../swc_css_utils/" }
swc_css_visit = { version = "0.90.0", path = "../swc_css_visit" }
swc_atoms = {version = "0.2.7", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
swc_css_ast = {version = "0.91.0", path = "../swc_css_ast"}
swc_css_utils = {version = "0.88.0", path = "../swc_css_utils/"}
swc_css_visit = {version = "0.90.0", path = "../swc_css_visit"}
[dev-dependencies]
swc_css_codegen = { version = "0.100.0", path = "../swc_css_codegen" }
swc_css_parser = { version = "0.99.0", path = "../swc_css_parser" }
testing = { version = "0.19.0", path = "../testing" }
swc_css_codegen = {version = "0.100.0", path = "../swc_css_codegen"}
swc_css_parser = {version = "0.99.0", path = "../swc_css_parser"}
testing = {version = "0.19.0", path = "../testing"}

View File

@ -2,6 +2,7 @@
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "Webpack AST optimizer"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc_webpack_ast"
repository = "https://github.com/swc-project/swc.git"
@ -12,21 +13,21 @@ version = "0.76.0"
[dependencies]
anyhow = "1.0.48"
rayon = "1.5.1"
serde = { version = "1", features = ["derive", "rc"] }
serde = {version = "1", features = ["derive", "rc"]}
serde_json = "1.0.72"
swc_atoms = { version = "0.2.9", path = "../swc_atoms" }
swc_common = { version = "0.17.0", path = "../swc_common" }
swc_ecma_ast = { version = "0.71.0", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "0.95.0", path = "../swc_ecma_parser" }
swc_ecma_transforms_base = { version = "0.70.0", path = "../swc_ecma_transforms_base" }
swc_ecma_utils = { version = "0.74.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.57.0", path = "../swc_ecma_visit" }
swc_estree_ast = { version = "0.7.0", path = "../swc_estree_ast" }
swc_estree_compat = { version = "0.78.0", path = "../swc_estree_compat" }
swc_timer = { version = "0.5.0", path = "../swc_timer" }
swc_atoms = {version = "0.2.9", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
swc_ecma_ast = {version = "0.71.0", path = "../swc_ecma_ast"}
swc_ecma_parser = {version = "0.95.0", path = "../swc_ecma_parser"}
swc_ecma_transforms_base = {version = "0.70.0", path = "../swc_ecma_transforms_base"}
swc_ecma_utils = {version = "0.74.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.57.0", path = "../swc_ecma_visit"}
swc_estree_ast = {version = "0.7.0", path = "../swc_estree_ast"}
swc_estree_compat = {version = "0.78.0", path = "../swc_estree_compat"}
swc_timer = {version = "0.5.0", path = "../swc_timer"}
tracing = "0.1.32"
[dev-dependencies]
swc_ecma_transforms_testing = { version = "0.72.0", path = "../swc_ecma_transforms_testing" }
swc_node_base = { version = "0.5.1", path = "../swc_node_base" }
testing = { version = "0.19.0", path = "../testing" }
swc_ecma_transforms_testing = {version = "0.72.0", path = "../swc_ecma_transforms_testing"}
swc_node_base = {version = "0.5.1", path = "../swc_node_base"}
testing = {version = "0.19.0", path = "../testing"}

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
crates=$(\
cargo metadata --format-version 1 \
| jq -r '.workspace_members[]' \
| cut -f1 -d" " \
| sort \
)
for crate in $crates
do
cargo publish -p $crate --dry-run --no-verify -v || true
done