UNPKG

@ton-contests/tact-utils

Version:
26 lines (25 loc) 1.06 kB
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commander_1 = require("commander"); const build_js_1 = require("./build.js"); const pack_js_1 = require("./pack.js"); commander_1.program .name("ton-contests-tact") .description("Tact utilities for TON Contests plaform"); commander_1.program .command("build") .description("Build Tact projects specified in tact.config.json file") .option("--root <string>", "path to the project root relative to process.cwd()", "./") .option("--withAst", "determines whether tree construction should occur", false) .action((options) => { (0, build_js_1.build)({ root: options.root, withAst: options.withAst }); }); commander_1.program .command("pack") .description("Pack Tact task. Build tests and wrappers with tsc and pack sources") .option("--root <string>", "path to the project root relative to process.cwd()", "./") .action((options) => { (0, pack_js_1.pack)({ root: options.root }); }); commander_1.program.parse();