mirror of
https://github.com/langgenius/dify.git
synced 2026-07-20 09:38:32 +08:00
18 lines
458 B
TypeScript
18 lines
458 B
TypeScript
import { e2eDir, isMainModule, runCommandOrThrow } from './common'
|
|
import './env-register'
|
|
|
|
const main = async () => {
|
|
await runCommandOrThrow({
|
|
command: 'npx',
|
|
args: ['tsx', './scripts/seed.ts', '--pack', 'agent-v2', '--profile', 'external-runtime'],
|
|
cwd: e2eDir,
|
|
})
|
|
}
|
|
|
|
if (isMainModule(import.meta.url)) {
|
|
void main().catch((error) => {
|
|
console.error(error instanceof Error ? error.message : String(error))
|
|
process.exit(1)
|
|
})
|
|
}
|