File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 48
48
"peerDependencies" : {
49
49
"@stacksjs/cli" : " workspace:*" ,
50
50
"@stacksjs/config" : " workspace:*" ,
51
+ "@stacksjs/database" : " workspace:*" ,
51
52
"@stacksjs/logging" : " workspace:*" ,
52
53
"@stacksjs/pages" : " workspace:*" ,
53
54
"@stacksjs/path" : " workspace:*" ,
Original file line number Diff line number Diff line change 1
1
import { log } from '@stacksjs/logging'
2
+ import { migrations } from '@stacksjs/database'
2
3
import { Action , NpmScript } from '@stacksjs/types'
3
4
import type { GeneratorOptions } from '@stacksjs/types'
4
5
import { runNpmScript } from '@stacksjs/utils'
@@ -119,5 +120,5 @@ export async function types(options?: GeneratorOptions) {
119
120
}
120
121
121
122
export async function models ( options ?: any ) {
122
- log . success ( 'Model was generated successfully' )
123
+ log . success ( migrations )
123
124
}
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ const alias: Record<string, string> = {
29
29
'@stacksjs/config/*' : p . projectPath ( 'config/*' ) ,
30
30
'@stacksjs/dashboard' : p . dashboardPath ( 'src/index.ts' ) ,
31
31
'@stacksjs/dashboard/*' : p . dashboardPath ( 'src/*' ) ,
32
+ '@stacksjs/database' : p . databasePath ( 'src/index.ts' ) ,
33
+ '@stacksjs/database/*' : p . databasePath ( 'src/*' ) ,
32
34
// '@stacksjs/desktop': p.desktopPath('src/index.ts'),
33
35
// '@stacksjs/desktop/*': p.desktopPath('src/*'),
34
36
'@stacksjs/docs' : p . docsPath ( 'src/index.ts' ) ,
Original file line number Diff line number Diff line change 53
53
"@stacksjs/config/*" : [" ../config/*" ],
54
54
"@stacksjs/dashboard" : [" ./core/dashboard/src/index.ts" ],
55
55
"@stacksjs/dashboard/*" : [" ./core/dashboard/src/*" ],
56
+ "@stacksjs/database" : [" ./core/database/src/index.ts" ],
57
+ "@stacksjs/database/*" : [" ./core/database/src/*" ],
56
58
// "@stacksjs/desktop": ["./core/desktop/src/index.ts"],
57
59
// "@stacksjs/desktop/*": ["./core/desktop/src/*"],
58
60
"@stacksjs/domains" : [" ./core/domains/src/index.ts" ],
You can’t perform that action at this time.
0 commit comments