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