@ton-contests/tolk-utils
Version:
Tolk utilities for TON Contests plaform
23 lines (22 loc) • 985 B
JavaScript
;
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");
return {
rootDir,
outputDir: (0, path_1.resolve)(rootDir, "./output"),
plagiarismConfig: (0, path_1.resolve)(rootDir, "./plagiarism.config.json"),
tolkConfig: (0, path_1.resolve)(rootDir, "./tolk.config.json"),
srcDir: {
root: srcDir,
buildDir: (0, path_1.resolve)(srcDir, "./build"),
publicContractsDir: (0, path_1.resolve)(srcDir, "./public_contracts"),
publicTestsDir: (0, path_1.resolve)(srcDir, "./public_tests"),
testsDir: (0, path_1.resolve)(srcDir, "./tests"),
wrappersDir: (0, path_1.resolve)(srcDir, "./wrappers"),
},
};
}