Skip to content

Commit a0850b9

Browse files
committed
chore: wip
1 parent dae7ee1 commit a0850b9

File tree

6 files changed

+29
-33
lines changed

6 files changed

+29
-33
lines changed

bun.lockb

-2.13 KB
Binary file not shown.

storage/framework/core/actions/src/deploy/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (config.app.docMode !== true) {
2727
// })
2828

2929
await runCommand('bun build.ts', {
30-
cwd: p.frameworkCloudPath(),
30+
cwd: p.frameworkPath('server'),
3131
})
3232

3333
await runCommand('bun zip.ts', {

storage/framework/core/cloud/zip.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ const result = await runCommand('zip -r ./dist.zip dist/origin-request.js packag
66

77
if (result.isErr()) {
88
log.error(result.error)
9-
} else {
10-
// need to move the file to ../../cloud/dist.zip
11-
await runCommand('mv -f dist.zip ../../cloud/dist.zip', {
12-
cwd: import.meta.dir,
13-
})
14-
15-
log.success('dist is zipped & moved')
9+
process.exit(1)
1610
}
11+
12+
log.success('dist is zipped')

storage/framework/libs/components/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"prepublishOnly": "bun run build"
4040
},
4141
"devDependencies": {
42-
"stacks": "latest"
42+
"stacks": "workspace:*"
4343
}
4444
}

storage/framework/libs/components/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
"prepublishOnly": "bun run build"
4141
},
4242
"devDependencies": {
43-
"stacks": "latest"
43+
"stacks": "workspace:*"
4444
}
4545
}

storage/framework/server/src/utils.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,49 +35,49 @@ export async function buildDockerImage() {
3535
log.info('Preparing build...')
3636

3737
// delete old CDK relating files, to always build fresh
38-
log.debug('Deleting old CDK files...')
39-
log.debug('Deleting old cdk.out ...')
38+
log.info('Deleting old CDK files...')
39+
log.info('Deleting old cdk.out ...')
4040
await runCommand(`rm -rf ${frameworkCloudPath('cdk.out/')}`)
41-
log.debug('Deleted old cdk.out')
41+
log.success('Deleted old cdk.out')
4242

43-
log.debug('Deleting old CDK context file...')
43+
log.info('Deleting old CDK context file...')
4444
await runCommand(`rm -rf ${frameworkCloudPath('cdk.context.json')}`)
45-
log.debug('Deleted old cdk.context.json')
45+
log.success('Deleted old cdk.context.json')
4646

47-
log.debug('Deleting old dist.zip file...')
47+
log.info('Deleting old dist.zip file...')
4848
await runCommand(`rm -rf ${frameworkCloudPath('dist.zip')}`)
49-
log.debug('Deleted old dist.zip')
49+
log.success('Deleted old dist.zip')
5050

51-
log.debug('Deleting .DS_Store files...')
51+
log.info('Deleting .DS_Store files...')
5252
await runCommand(`rm -rf ${frameworkPath('**/.DS_Store')}`)
53-
log.debug('Deleted .DS_Store files')
53+
log.success('Deleted .DS_Store files')
5454

55-
log.debug('Deleting sourcemaps...')
55+
log.info('Deleting sourcemaps...')
5656
await runCommand(`rm -rf ${frameworkPath('**/*.map')}`)
57-
log.debug('Deleted sourcemaps')
57+
log.success('Deleted sourcemaps')
5858

59-
log.debug('Deleting cache files...')
59+
log.info('Deleting cache files...')
6060
await runCommand(`rm -rf ${frameworkPath('cache/dashboard')}`)
6161
await runCommand(`rm -rf ${frameworkPath('cache/docs')}`)
62-
log.debug('Deleted cache files')
62+
log.success('Deleted cache files')
6363

64-
log.debug('Copying project files...')
65-
log.debug('Copying config files...')
64+
log.info('Copying project files...')
65+
log.info('Copying config files...')
6666
await cleanCopy(projectPath('config'), frameworkPath('server/config'))
67-
log.debug('Copied config files')
67+
log.success('Copied config files')
6868

69-
log.debug('Copying docs files...')
69+
log.info('Copying docs files...')
7070
await cleanCopy(projectPath('docs'), frameworkPath('server/docs'))
71-
log.debug('Copied docs files')
71+
log.success('Copied docs files')
7272

73-
log.debug('Copying storage files...')
73+
log.info('Copying storage files...')
7474
await cleanCopy(projectPath('storage'), frameworkPath('server/storage'))
75-
log.debug('Copied storage files')
75+
log.success('Copied storage files')
7676

77-
log.debug('Copying .env file...')
77+
log.info('Copying .env file...')
7878
await cleanCopy(projectPath('.env'), frameworkPath('server/.env'))
79-
log.debug('Copied .env file')
80-
log.debug('Server ready to be built')
79+
log.success('Copied .env file')
80+
log.success('Server ready to be built')
8181

8282
if (!app.name) {
8383
log.error('Please provide a name for your app in your config file')

0 commit comments

Comments
 (0)