Skip to content

Commit b6dd565

Browse files
committed
chore: wip
1 parent 255f06d commit b6dd565

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.stacks/core/actions/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"peerDependencies": {
4949
"@stacksjs/cli": "workspace:*",
5050
"@stacksjs/config": "workspace:*",
51+
"@stacksjs/database": "workspace:*",
5152
"@stacksjs/logging": "workspace:*",
5253
"@stacksjs/pages": "workspace:*",
5354
"@stacksjs/path": "workspace:*",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { log } from '@stacksjs/logging'
2+
import { migrations } from '@stacksjs/database'
23
import { Action, NpmScript } from '@stacksjs/types'
34
import type { GeneratorOptions } from '@stacksjs/types'
45
import { runNpmScript } from '@stacksjs/utils'
@@ -119,5 +120,5 @@ export async function types(options?: GeneratorOptions) {
119120
}
120121

121122
export async function models(options?: any) {
122-
log.success('Model was generated successfully')
123+
log.success(migrations)
123124
}

.stacks/core/alias/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const alias: Record<string, string> = {
2929
'@stacksjs/config/*': p.projectPath('config/*'),
3030
'@stacksjs/dashboard': p.dashboardPath('src/index.ts'),
3131
'@stacksjs/dashboard/*': p.dashboardPath('src/*'),
32+
'@stacksjs/database': p.databasePath('src/index.ts'),
33+
'@stacksjs/database/*': p.databasePath('src/*'),
3234
// '@stacksjs/desktop': p.desktopPath('src/index.ts'),
3335
// '@stacksjs/desktop/*': p.desktopPath('src/*'),
3436
'@stacksjs/docs': p.docsPath('src/index.ts'),

.stacks/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
"@stacksjs/config/*": ["../config/*"],
5454
"@stacksjs/dashboard": ["./core/dashboard/src/index.ts"],
5555
"@stacksjs/dashboard/*": ["./core/dashboard/src/*"],
56+
"@stacksjs/database": ["./core/database/src/index.ts"],
57+
"@stacksjs/database/*": ["./core/database/src/*"],
5658
// "@stacksjs/desktop": ["./core/desktop/src/index.ts"],
5759
// "@stacksjs/desktop/*": ["./core/desktop/src/*"],
5860
"@stacksjs/domains": ["./core/domains/src/index.ts"],

0 commit comments

Comments
 (0)