This commit is contained in:
2026-09-10 18:54:53 +03:30
parent a308d6e039
commit e2303bcd70
8 changed files with 216 additions and 165 deletions
+15
View File
@@ -68,6 +68,21 @@ execSync(
)
copyFileSync(engineSrc, path.join(runtimeDir, engineName))
const swaggerSrc = path.join(root, 'node_modules', 'swagger-ui-dist')
const swaggerDest = path.join(runtimeDir, 'swagger-ui')
mkdirSync(swaggerDest, { recursive: true })
for (const file of [
'swagger-ui.css',
'swagger-ui-bundle.js',
'swagger-ui-standalone-preset.js',
]) {
const src = path.join(swaggerSrc, file)
if (!existsSync(src)) {
throw new Error(`swagger-ui فایل ${file} پیدا نشد`)
}
copyFileSync(src, path.join(swaggerDest, file))
}
const schemaSrc = path.join(root, 'node_modules', '.prisma', 'client', 'schema.prisma')
if (existsSync(schemaSrc)) {
copyFileSync(schemaSrc, path.join(runtimeDir, 'schema.prisma'))