File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ cdk.context.json
13
13
cdk.out
14
14
chunk- *
15
15
* .node
16
+ index.js *
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ FROM base AS release
16
16
COPY ./storage ./storage
17
17
COPY ./config ./config
18
18
COPY ./docs ./docs
19
- COPY ./dist/* ./
20
19
COPY ./tsconfig.json ./
21
20
22
21
# Create log directory and set permissions
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ async function main() {
11
11
} )
12
12
13
13
log . debug ( 'Deleting old server files...' )
14
- await runCommand ( `rm -rf ${ userServerPath ( 'chunk- *' ) } ` )
14
+ await runCommand ( `rm -rf ${ userServerPath ( 'index.js *' ) } ` )
15
15
log . debug ( 'Deleted old server files' )
16
16
log . debug ( 'Deleting old *.node files...' )
17
17
await runCommand ( `rm -rf ${ userServerPath ( '*.node' ) } ` )
18
18
log . debug ( 'Deleted old *.node files' )
19
19
20
20
const result = await Bun . build ( {
21
21
entrypoints : [ './src/index.ts' ] ,
22
- outdir : './dist ' ,
22
+ outdir : './' ,
23
23
format : 'esm' ,
24
24
target : 'bun' ,
25
25
sourcemap : 'linked' ,
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ import { $ } from 'bun'
8
8
9
9
export async function cleanCopy ( sourcePath : string , targetPath : string ) {
10
10
try {
11
- log . info ( `Deleting ${ targetPath } ...` )
11
+ log . debug ( `Deleting ${ targetPath } ...` )
12
12
await runCommand ( `rm -rf ${ targetPath } ` )
13
- log . info ( `Copying ${ sourcePath } to ${ targetPath } ...` )
13
+ log . debug ( `Copying ${ sourcePath } to ${ targetPath } ...` )
14
14
await runCommand ( `cp -r ${ sourcePath } ${ targetPath } ` )
15
- log . info ( `Done copying ${ sourcePath } to ${ targetPath } ` )
15
+ log . debug ( `Done copying ${ sourcePath } to ${ targetPath } ` )
16
16
} catch ( error ) {
17
17
log . error ( `Error copying ${ sourcePath } to ${ targetPath } : ${ error } ` )
18
18
}
You can’t perform that action at this time.
0 commit comments