"use strict";
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var fs = require("fs");
exports.default = function (options) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
    var src, requirementsExists, jsFileExists;
    return tslib_1.__generator(this, function (_a) {
        src = options.get("src");
        requirementsExists = fs.existsSync(src + "/requirements.json");
        jsFileExists = fs.existsSync(src + "/app.js");
        if (requirementsExists && !jsFileExists) {
            throw new Error("\n      Requirements-only apps are independent from the framework\n      and do not require migration. For more information:\n      https://developer.zendesk.com/apps/docs/apps-v2/setup#specifying-app-requirements\n    ");
        }
        return [2 /*return*/];
    });
}); };
