Skip to content

Commit a9516c5

Browse files
ankddevlpil
authored andcommitted
refactor: use more cryptic name for JS entrypoint
1 parent 0c7ab4f commit a9516c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

compiler-cli/src/run.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use gleam_core::{
1010
io::{Command, CommandExecutor, Stdio},
1111
paths::ProjectPaths,
1212
type_::ModuleFunction,
13+
version::COMPILER_VERSION,
1314
};
1415

1516
use crate::{config::PackageKind, fs::ProjectIO};
@@ -252,7 +253,7 @@ fn write_javascript_entrypoint(
252253
let path = paths
253254
.build_directory_for_package(Mode::Dev, Target::JavaScript, package)
254255
.to_path_buf()
255-
.join("gleam.main.mjs");
256+
.join(format!("gleam@@private_main_v{}.mjs", COMPILER_VERSION));
256257
let module = format!(
257258
r#"import {{ main }} from "./{module}.mjs";
258259
main();

0 commit comments

Comments
 (0)