Skip to content

Commit e64b1b6

Browse files
committed
chore: wip
1 parent ad68e46 commit e64b1b6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.stacks/core/actions/src/generate/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { log } from '@stacksjs/logging'
2-
import { migrate } from '@stacksjs/database'
2+
import { migrate, seed } from '@stacksjs/database'
33
import { Action, NpmScript } from '@stacksjs/types'
44
import type { GeneratorOptions } from '@stacksjs/types'
55
import { runNpmScript } from '@stacksjs/utils'
@@ -129,3 +129,7 @@ export async function migrations() {
129129

130130
log.success('Successfully updated migrations')
131131
}
132+
133+
export async function seeder() {
134+
await seed()
135+
}

.stacks/core/actions/src/seed.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { runCommands } from '@stacksjs/cli'
2-
import { frameworkPath } from '@stacksjs/path'
1+
import { seeder } from '@stacksjs/actions/generate'
32

4-
await runCommands([
5-
'pnpm install',
6-
], { cwd: frameworkPath(), verbose: true })
3+
await seeder()

0 commit comments

Comments
 (0)