added packages into dockploy 5
This commit is contained in:
@@ -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))}`)
|
||||
|
||||
Reference in New Issue
Block a user