File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { log } from '@stacksjs/logging'
2
- import { migrate } from '@stacksjs/database'
2
+ import { migrate , seed } from '@stacksjs/database'
3
3
import { Action , NpmScript } from '@stacksjs/types'
4
4
import type { GeneratorOptions } from '@stacksjs/types'
5
5
import { runNpmScript } from '@stacksjs/utils'
@@ -129,3 +129,7 @@ export async function migrations() {
129
129
130
130
log . success ( 'Successfully updated migrations' )
131
131
}
132
+
133
+ export async function seeder ( ) {
134
+ await seed ( )
135
+ }
Original file line number Diff line number Diff line change 1
- import { runCommands } from '@stacksjs/cli'
2
- import { frameworkPath } from '@stacksjs/path'
1
+ import { seeder } from '@stacksjs/actions/generate'
3
2
4
- await runCommands ( [
5
- 'pnpm install' ,
6
- ] , { cwd : frameworkPath ( ) , verbose : true } )
3
+ await seeder ( )
You can’t perform that action at this time.
0 commit comments