fix bug
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user