Skip to content

Commit bf47362

Browse files
committed
chore: wip
1 parent 1408135 commit bf47362

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

storage/framework/server/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ cdk.context.json
1313
cdk.out
1414
chunk-*
1515
*.node
16+
index.js*

storage/framework/server/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ FROM base AS release
1616
COPY ./storage ./storage
1717
COPY ./config ./config
1818
COPY ./docs ./docs
19-
COPY ./dist/* ./
2019
COPY ./tsconfig.json ./
2120

2221
# Create log directory and set permissions

storage/framework/server/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ async function main() {
1111
})
1212

1313
log.debug('Deleting old server files...')
14-
await runCommand(`rm -rf ${userServerPath('chunk-*')}`)
14+
await runCommand(`rm -rf ${userServerPath('index.js*')}`)
1515
log.debug('Deleted old server files')
1616
log.debug('Deleting old *.node files...')
1717
await runCommand(`rm -rf ${userServerPath('*.node')}`)
1818
log.debug('Deleted old *.node files')
1919

2020
const result = await Bun.build({
2121
entrypoints: ['./src/index.ts'],
22-
outdir: './dist',
22+
outdir: './',
2323
format: 'esm',
2424
target: 'bun',
2525
sourcemap: 'linked',

storage/framework/server/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { $ } from 'bun'
88

99
export async function cleanCopy(sourcePath: string, targetPath: string) {
1010
try {
11-
log.info(`Deleting ${targetPath} ...`)
11+
log.debug(`Deleting ${targetPath} ...`)
1212
await runCommand(`rm -rf ${targetPath}`)
13-
log.info(`Copying ${sourcePath} to ${targetPath} ...`)
13+
log.debug(`Copying ${sourcePath} to ${targetPath} ...`)
1414
await runCommand(`cp -r ${sourcePath} ${targetPath}`)
15-
log.info(`Done copying ${sourcePath} to ${targetPath}`)
15+
log.debug(`Done copying ${sourcePath} to ${targetPath}`)
1616
} catch (error) {
1717
log.error(`Error copying ${sourcePath} to ${targetPath}: ${error}`)
1818
}

0 commit comments

Comments
 (0)