added packages into dockploy 5

This commit is contained in:
2026-09-10 17:51:37 +03:30
parent 69017e785e
commit 24c24e03fb
6 changed files with 9608 additions and 2 deletions
+18
View File
@@ -83,9 +83,27 @@ writeFileSync(
`${JSON.stringify({ name: 'fabric-trade-runtime', private: true, type: 'commonjs' }, null, 2)}\n`,
)
console.log('==> esbuild seed')
execSync(
[
'npx --yes esbuild prisma/seed.ts',
'--bundle',
'--platform=node',
'--target=node22',
'--format=cjs',
'--outfile=runtime/seed.cjs',
'--keep-names',
'--legal-comments=none',
].join(' '),
{ stdio: 'inherit' },
)
if (!existsSync(path.join(runtimeDir, 'server.cjs'))) {
throw new Error('runtime/server.cjs ساخته نشد')
}
if (!existsSync(path.join(runtimeDir, 'seed.cjs'))) {
throw new Error('runtime/seed.cjs ساخته نشد')
}
console.log(`runtime/server.cjs ${mb(path.join(runtimeDir, 'server.cjs'))}`)
console.log(`runtime/${engineName} ${mb(path.join(runtimeDir, engineName))}`)