@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
38 lines • 1.49 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const schema_1 = require("@sprucelabs/schema");
const syncSchemasOptions_builder_1 = __importDefault(require("./syncSchemasOptions.builder"));
exports.default = (0, schema_1.buildSchema)({
id: 'syncErrorOptions',
name: 'Sync error action',
description: 'Keep your errors types in sync with your builders',
fields: {
...(0, schema_1.dropFields)(syncSchemasOptions_builder_1.default.fields, [
'deleteDestinationDirIfNoSchemas',
'deleteOrphanedSchemas',
]),
errorClassDestinationDir: {
type: 'text',
label: 'Error class destination',
isRequired: true,
isPrivate: true,
hint: "Where I'll save your new Error class file?",
defaultValue: 'src/errors',
},
errorLookupDir: {
type: 'text',
hint: 'Where I should look for your error builders?',
defaultValue: 'src/errors',
},
errorTypesDestinationDir: {
type: 'text',
label: 'Types destination dir',
hint: 'This is where error options and type information will be written',
defaultValue: '#spruce/errors',
},
},
});
//# sourceMappingURL=syncErrorOptions.builder.js.map