Skip to content

Commit 2ad4aba

Browse files
committed
fix(examples/workers): use correct files input structure
1 parent ab9a992 commit 2ad4aba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/workers/script-upload.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ async function main() {
6565
},
6666
],
6767
},
68-
files: {
68+
files: [
6969
// Add main_module file
70-
[scriptFileName]: await toFile(Buffer.from(scriptContent), scriptFileName, {
70+
await toFile(Buffer.from(scriptContent), scriptFileName, {
7171
type: 'application/javascript+module',
7272
}),
7373
// Can add other files, such as more modules or source maps
74-
// [sourceMapFileName]: await toFile(Buffer.from(sourceMapContent), sourceMapFileName, {
74+
// await toFile(Buffer.from(sourceMapContent), sourceMapFileName, {
7575
// type: 'application/source-map',
7676
// }),
77-
},
77+
],
7878
});
7979
console.log('Script Upload success!');
8080
console.log(JSON.stringify(script, null, 2));

0 commit comments

Comments
 (0)