#!/usr/bin/env node
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
require("./core/alias");
const chalk_1 = __importDefault(require("chalk"));
const init_1 = __importDefault(require("./core/init"));
// const { getPackageLatestVersion } = require("./utils/npm");
// const package = require("./package.json");
console.log(chalk_1.default.green('欢迎使用ARK脚手架!'));
// 检查脚手架版本
// async function checkVersion() {
//   const cliLatestVersion = await getPackageLatestVersion("@syman/ark-cli");
//   if (package.version !== cliLatestVersion) {
//     console.log(chalk.yellow(`检查到脚手架最新版本为${cliLatestVersion}`));
//     console.log(chalk.yellow("建议执行npm i -g @syman/ark-cli 命令进行更新"));
//   }
// }
// 入口
function start() {
    return __awaiter(this, void 0, void 0, function* () {
        // await checkVersion();
        (0, init_1.default)();
    });
}
start();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFDQSx3QkFBcUI7QUFDckIsa0RBQXdCO0FBQ3hCLHVEQUE4QjtBQUM5Qiw4REFBOEQ7QUFDOUQsNkNBQTZDO0FBQzdDLE9BQU8sQ0FBQyxHQUFHLENBQUMsZUFBSyxDQUFDLEtBQUssQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFBO0FBR3ZDLFVBQVU7QUFDVixrQ0FBa0M7QUFDbEMsOEVBQThFO0FBQzlFLGdEQUFnRDtBQUNoRCxtRUFBbUU7QUFDbkUsdUVBQXVFO0FBQ3ZFLE1BQU07QUFDTixJQUFJO0FBRUosS0FBSztBQUNMLFNBQWUsS0FBSzs7UUFDbEIsd0JBQXdCO1FBQ3hCLElBQUEsY0FBSSxHQUFFLENBQUE7SUFDUixDQUFDO0NBQUE7QUFDRCxLQUFLLEVBQUUsQ0FBQSJ9