"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBlock=void 0;const path_1=__importDefault(require("path")),fs_extra_1=__importDefault(require("fs-extra")),simulator_1=require("../../../types/simulator"),configFileName="project.config.json";function isBlock(e){if(fs_extra_1.default.existsSync(path_1.default.join(e,configFileName))){const t=fs_extra_1.default.readJSONSync(path_1.default.join(e,configFileName));if(Array.isArray(t.blocks)&&t.blocks.length>0)return Promise.resolve(simulator_1.CompilePathType.sourceCode)}return Promise.resolve(simulator_1.CompilePathType.unknown)}exports.isBlock=isBlock;