UNPKG

950 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const tslib_1 = require("tslib");
4const base_command_1 = require("../../base-command");
5const decorators_1 = require("../../utils/decorators");
6const helpers_1 = require("../../utils/helpers");
7class PrepareFunctions extends base_command_1.default {
8 async run() {
9 helpers_1.ensureFolderExists(this.locator.buildFunctionsDir, true);
10 helpers_1.ensureFolderExists(this.locator.buildArtifactDir, true);
11 }
12}
13PrepareFunctions.description = 'describe the command here';
14// TODO: remove prepare:intents when people have migrated to function
15PrepareFunctions.aliases = ['p:f'];
16PrepareFunctions.hidden = true;
17PrepareFunctions.flags = Object.assign({}, base_command_1.default.flags);
18PrepareFunctions.args = [];
19tslib_1.__decorate([
20 decorators_1.RequireIntegrationFolder()
21], PrepareFunctions.prototype, "run", null);
22exports.default = PrepareFunctions;