@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) • 908 B
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true});
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
// src/executors/cargo-build/executor.ts
async function cargoBuildExecutor(options, context) {
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "build", options, context);
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
}
var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
"Cargo - Build",
cargoBuildExecutor,
{
skipReadingConfig: false,
hooks: {
applyDefaultOptions: (options) => {
options.outputPath ??= "dist/{projectRoot}/target";
options.toolchain ??= "stable";
return options;
}
}
}
);
exports.cargoBuildExecutor = cargoBuildExecutor; exports.executor_default = executor_default;