UNPKG

@ton-contests/tact-utils

Version:
31 lines (30 loc) 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getProjectStructure = getProjectStructure; const path_1 = require("path"); function getProjectStructure(root = "./") { const rootDir = (0, path_1.resolve)(process.cwd(), root); const srcDir = (0, path_1.resolve)(rootDir, "./src"); const packDir = (0, path_1.resolve)(rootDir, "./pack"); return { rootDir, buildDir: (0, path_1.resolve)(rootDir, "./build"), outputDir: (0, path_1.resolve)(rootDir, "./output"), plagiarismConfig: (0, path_1.resolve)(rootDir, "./plagiarism.config.json"), tactConfig: (0, path_1.resolve)(rootDir, "./tact.config.json"), srcDir: { root: srcDir, publicContractsDir: (0, path_1.resolve)(srcDir, "./public_contracts"), publicTestsDir: (0, path_1.resolve)(srcDir, "./public_tests"), testsDir: (0, path_1.resolve)(srcDir, "./tests"), }, packDir: { root: packDir, contractsDir: (0, path_1.resolve)(packDir, "./contracts"), publicTestsDir: (0, path_1.resolve)(packDir, "./public_tests"), testsDir: (0, path_1.resolve)(packDir, "./tests"), plagiarismConfig: (0, path_1.resolve)(packDir, "./plagiarism.config.json"), tactConfig: (0, path_1.resolve)(packDir, "./tact.config.json"), }, }; }