Skip to content

Commit e37ed79

Browse files
committed
chore: wip
chore: wip
1 parent 24c1152 commit e37ed79

File tree

6 files changed

+31
-15
lines changed

6 files changed

+31
-15
lines changed

app/Actions/HealthAction.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ export default new Action({
88
handle() {
99
return {
1010
status: 'ok',
11-
uptime: process.uptime(),
11+
uptime: Bun.nanoseconds(), // similar to process.uptime()
1212
memory: process.memoryUsage(),
1313
pid: process.pid,
14-
version: process.version, // TODO: display Bun version instead
14+
version: Bun.version,
15+
revision: Bun.revision,
1516
}
1617
},
1718
})

storage/framework/api/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"build": "bun build.ts"
88
},
99
"dependencies": {
10-
"@stacksjs/logging": "^0.58.67",
11-
"@stacksjs/queue": "^0.58.67",
12-
"@stacksjs/router": "^0.58.67",
13-
"@stacksjs/storage": "^0.58.67",
14-
"@stacksjs/utils": "^0.58.67",
10+
"@stacksjs/logging": "^0.58.69",
11+
"@stacksjs/queue": "^0.58.69",
12+
"@stacksjs/router": "^0.58.69",
13+
"@stacksjs/storage": "^0.58.69",
14+
"@stacksjs/utils": "^0.58.69",
1515
"aws4fetch": "^1.0.17"
1616
}
1717
}

storage/framework/core/cloud/src/cloud/router-layer/nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"test": "echo \"Error: no test specified\" && exit 1"
1111
},
1212
"dependencies": {
13-
"@stacksjs/router": "^0.58.67"
13+
"@stacksjs/router": "^0.58.69"
1414
}
1515
}

storage/framework/core/cloud/zip.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
import { log, runCommand } from '@stacksjs/cli'
22

3-
const result = await runCommand('zip -r ../../cloud/dist.zip dist/origin-request.js package.json', {
3+
const result = await runCommand('zip -r ./dist.zip dist/origin-request.js package.json', {
44
cwd: import.meta.dir,
55
})
66

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

storage/framework/server/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import { serverResponse } from '@stacksjs/router'
44
import { log } from '@stacksjs/logging'
55
import { retry } from '@stacksjs/utils'
66

7+
process.on('SIGINT', () => {
8+
// eslint-disable-next-line no-console
9+
console.log('Exited using Ctrl-C')
10+
process.exit()
11+
})
12+
713
if (process.env.QUEUE_WORKER) {
814
if (!process.env.JOB)
915
throw new Error('Missing JOB environment variable')

storage/framework/server/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"build": "bun build.ts"
88
},
99
"dependencies": {
10-
"@stacksjs/logging": "^0.58.67",
11-
"@stacksjs/queue": "^0.58.67",
12-
"@stacksjs/router": "^0.58.67",
13-
"@stacksjs/storage": "^0.58.67",
14-
"@stacksjs/utils": "^0.58.67",
10+
"@stacksjs/logging": "^0.58.69",
11+
"@stacksjs/queue": "^0.58.69",
12+
"@stacksjs/router": "^0.58.69",
13+
"@stacksjs/storage": "^0.58.69",
14+
"@stacksjs/utils": "^0.58.69",
1515
"aws4fetch": "^1.0.17"
1616
}
1717
}

0 commit comments

Comments
 (0)