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"

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 = []

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"

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"

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"

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"

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"

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