trunk icon indicating copy to clipboard operation
trunk copied to clipboard

Capability to disable certain tools installation

Open LeoBorai opened this issue 10 months ago • 2 comments
trafficstars

Hi! Im using Trunk to build a Leptos solution and I want to use an specific wasm-bindgen version, but even when I specify the desired version in Cargo.toml and install wasm-bindgen-cli manually Trunk expects a more recent version and overrides it.

I have tried using --offline option to turn off tools downloading but it skips other tools like TailwindCSS.

Proposal

Prowide an option to "skip"/"ignore" certain tools from being downloaded.

trunk build --use-local wasm-bindgen

Or something similar, this way one could force the desired version to be used.

Thanks in advance!

LeoBorai avatar Jan 06 '25 22:01 LeoBorai

True. Maybe have something like --skip-download <tool> where <tool> is an enum of the tools we have. And --skip-download accepts a list of values.

So one could do:

trunk --skip-download wasm-bindgen

Or:

trunk --skip-download wasm-bindgen,tailwind

ctron avatar Jan 13 '25 07:01 ctron

Sounds good!

It would also be nice to add it as part of Trunk.toml.

I assume options on build and serve commands will be available in Trunk.toml by default, right?

LeoBorai avatar Jan 14 '25 01:01 LeoBorai