'use strict';
import { resolve, dirname } from 'path';
import { modulePathAliases } from '../../../base-repo/app-constants/aliases.js';
import { generatedPaths, folders } from '../../../base-repo/app-constants/project-paths.js';
import { fileURLToPath } from 'node:url';
import { Project, ts } from 'ts-morph';
import { typescriptCompilerLiterals } from '../../../base-repo/app-constants/internal-system-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x5671ba,_0xba33c1)=>__defProp(_0x5671ba,'name',{'value':_0xba33c1,'configurable':!![]});function transpileSchema(){const _0x415283=resolve(generatedPaths['schema']),_0x3efb79='../../../../'+folders['generated'],_0x67c652=dirname(fileURLToPath(import.meta.url)),_0x4a6c3f=resolve(_0x67c652,_0x3efb79),_0x2d483f=new Project({'compilerOptions':{'module':ts['ModuleKind']['ESNext'],'target':ts['ScriptTarget']['ES2022'],'experimentalDecorators':!![],'emitDecoratorMetadata':!![],'lib':[typescriptCompilerLiterals['libDom'],typescriptCompilerLiterals['libDomIterable'],typescriptCompilerLiterals['moduleEsNext']],'allowJs':!![],'skipLibCheck':!![],'strict':!![],'esModuleInterop':!![],'moduleResolution':ts['ModuleResolutionKind']['Bundler'],'resolveJsonModule':!![],'isolatedModules':!![],'incremental':![],'plugins':[{'name':typescriptCompilerLiterals['nextPlugin']}],'paths':modulePathAliases,'outDir':_0x4a6c3f,'declarationDir':_0x4a6c3f,'emitDeclarationOnly':![]}});_0x2d483f['addSourceFileAtPath'](_0x415283),_0x2d483f['emit']();}__name(transpileSchema,'transpileSchema');

export { transpileSchema };
