Skip to content

Commit 08bc89a

Browse files
committed
No clear screen on dalai rerun in dev
1 parent 0c895ff commit 08bc89a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dalai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"scripts": {
44
"start": "node worker.ts",
5-
"dev": "tsx watch worker.ts --clear-screen=false"
5+
"dev": "tsx watch --clear-screen=false worker.ts"
66
},
77
"dependencies": {
88
"@aws-sdk/client-s3": "3.882.0",

dalai/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dotenv.config()
1414

1515
const pipelineAsync = promisify(pipeline)
1616

17-
async function downloadS3ToFile(s3: S3Client, bucket, key: string, destPath: string) {
17+
async function downloadS3ToFile(s3: S3Client, bucket: string, key: string, destPath: string) {
1818
const res = await s3.send(new GetObjectCommand({ Bucket: bucket, Key: key }))
1919
await fs.mkdir(path.dirname(destPath), { recursive: true })
2020
if (!res.Body) {
@@ -23,7 +23,7 @@ async function downloadS3ToFile(s3: S3Client, bucket, key: string, destPath: str
2323
await pipelineAsync(res.Body, createWriteStream(destPath))
2424
}
2525

26-
async function uploadFileToS3(s3: S3Client, bucket, key: string, filePath: string, contentType: string) {
26+
async function uploadFileToS3(s3: S3Client, bucket: string, key: string, filePath: string, contentType: string) {
2727
const Body = await fs.readFile(filePath)
2828
await s3.send(new PutObjectCommand({ Bucket: bucket, Key: key, Body, ContentType: contentType }))
2929
}

0 commit comments

Comments
 (0)