Skip to content

Commit d78e82a

Browse files
committed
chore: wip
1 parent 21aae4d commit d78e82a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

storage/framework/server/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import process from 'node:process'
22
import { log } from '@stacksjs/cli'
33
import { cloud } from '@stacksjs/config'
4-
import { buildServer, useCustomOrDefaultServerConfig } from './src/build'
4+
import { buildServer, useCustomOrDefaultServerConfig } from './src/utils'
55

66
async function main() {
77
await useCustomOrDefaultServerConfig()

storage/framework/server/src/build.ts renamed to storage/framework/server/src/utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ import { hasFiles } from '@stacksjs/storage'
66
import { $ } from 'bun'
77

88
export async function cleanAndCopy(sourcePath: string, targetPath: string) {
9-
$.cwd(frameworkPath('cloud'))
9+
$.cwd(frameworkPath('server'))
10+
1011
await $`rm -rf ${targetPath}`
1112
await $`cp -r ${sourcePath} ${targetPath}`
1213
}
1314

1415
export async function useCustomOrDefaultServerConfig() {
1516
if (hasFiles(projectPath('server'))) {
16-
$.cwd(frameworkPath('cloud'))
17+
$.cwd(frameworkPath('server'))
1718

1819
// if we have a custom server configuration, use it by copying it to the server directory
1920
await $`cp -r ../../../server .`

0 commit comments

Comments
 (0)