Skip to content

Commit ea19e36

Browse files
committed
chore: add namespace to actor logs
1 parent 80cd36e commit ea19e36

File tree

3 files changed

+8
-103
lines changed

3 files changed

+8
-103
lines changed

packages/toolchain/cli/src/util/deploy.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,14 @@ fn generate_actor_script(registry_path: String) -> String {
686686
import {{ createActorHandler }} from "@rivetkit/actor/drivers/rivet";
687687
import {{ registry }} from "{registry_path}";
688688
689-
export default createActorHandler(registry);
689+
export default {{
690+
async start() {{
691+
console.log('started');
692+
const handler = createActorHandler(registry);
693+
console.log('handler', handler);
694+
await new Promise(() => {{}})
695+
}}
696+
}}
690697
"#,
691698
)
692699
}

packages/toolchain/js-utils-embed/js/src/tasks/build/build.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ export async function build(input: Input): Promise<Output> {
5454
stdLibBrowser[ `node:${packageName}` ] = packagePath;
5555
}
5656

57-
console.log('foo')
58-
5957
const result = await esbuild.build({
6058
absWorkingDir: input.projectRoot,
6159
entryPoints: [input.entryPoint],
@@ -69,11 +67,6 @@ export async function build(input: Input): Promise<Output> {
6967
inject: [stdLibInject],
7068
plugins: [stdLibPlugin(stdLibBrowser)],
7169
external: [
72-
"node:*",
73-
"node:fs",
74-
"node:fs/promises",
75-
"fs",
76-
"fs/promises",
7770
// Wasm must be loaded as a separate file manually, cannot be bundled
7871
"*.wasm",
7972
"*.wasm?module",

packages/toolchain/js-utils-embed/js/src/tasks/build/preset.ts

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)