"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const xplat_utils_1 = require("@nstudio/xplat-utils");
function default_1(options) {
    return schematics_1.chain([
        xplat_utils_1.prerun(options, true),
        options.platforms
            ? (tree, context) => schematics_1.externalSchematic('@nstudio/nativescript', 'xplat', options)
            : schematics_1.noop(),
    ]);
}
exports.default = default_1;
