mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
1fa6397241
* move swc-playground-wasm into workbench/swc-playground Move the Rust/WASM source from packages/swc-playground-wasm into workbench/swc-playground/wasm/ so it is no longer built as part of the packages/* turbo filter in CI. The WASM build now runs as part of the playground's own prebuild/dev scripts, avoiding Rust toolchain failures in unrelated CI jobs. * fix: ensure default rustup toolchain in wasm build The Vercel build environment has rustup installed but no default toolchain configured. Add a check for this and install stable if needed. Also check for VERCEL env var in addition to CI. * fix: ensure cargo bin dir is in PATH on Vercel After cargo install wasm-pack, the binary lives in $CARGO_HOME/bin which may not be in PATH on the Vercel build environment. Always add the cargo bin directory to PATH after ensuring the toolchain.
31 lines
581 B
TOML
31 lines
581 B
TOML
[workspace]
|
|
members = ["packages/swc-plugin-workflow", "workbench/swc-playground/wasm"]
|
|
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
publish = false
|
|
authors = ["Pranay Prakash <pranay@vercel.com>"]
|
|
license = "Apache-2.0"
|
|
rust-version = "1.87"
|
|
|
|
[workspace.dependencies]
|
|
serde = "1"
|
|
serde_json = "1"
|
|
swc_core = "49.0"
|
|
swc_ecma_parser = "28.0"
|
|
testing = "19.0"
|
|
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
# debug = true
|
|
lto = true
|
|
|
|
# Optimize for size
|
|
opt-level = "s"
|
|
|
|
# Strip debug symbols
|
|
strip = "symbols" |