@storm-software/workspace-tools
Version:
Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.
33 lines (23 loc) • 898 B
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true});
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
var _chunk4PG3MS76js = require('./chunk-4PG3MS76.js');
// src/executors/cargo-format/executor.ts
async function cargoFormatExecutor(options, context) {
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "fmt", options, context);
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
}
var executor_default = _chunk4PG3MS76js.withRunExecutor.call(void 0,
"Cargo - Format",
cargoFormatExecutor,
{
skipReadingConfig: false,
hooks: {
applyDefaultOptions: (options) => {
options.outputPath ??= "dist/{projectRoot}/target";
options.toolchain ??= "stable";
return options;
}
}
}
);
exports.cargoFormatExecutor = cargoFormatExecutor; exports.executor_default = executor_default;