@storm-software/workspace-tools
Version:
Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.
33 lines (30 loc) • 723 B
JavaScript
import {
buildCargoCommand,
cargoCommand
} from "./chunk-ZTN2676G.mjs";
import {
withRunExecutor
} from "./chunk-EYZGKQNH.mjs";
// src/executors/cargo-format/executor.ts
async function cargoFormatExecutor(options, context) {
const command = buildCargoCommand("fmt", options, context);
return await cargoCommand(context.root, ...command);
}
var executor_default = withRunExecutor(
"Cargo - Format",
cargoFormatExecutor,
{
skipReadingConfig: false,
hooks: {
applyDefaultOptions: (options) => {
options.outputPath ??= "dist/{projectRoot}/target";
options.toolchain ??= "stable";
return options;
}
}
}
);
export {
cargoFormatExecutor,
executor_default
};