Skip to content

Commit

Permalink
Change build dir structure to make it nicer to import from JS
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Nov 18, 2022
1 parent edc2bf3 commit b35ecd3
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 84 deletions.
4 changes: 2 additions & 2 deletions compiler-cli/src/compile_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
};
use gleam_core::{
build::{Mode, PackageCompiler, Target, TargetCodegenConfiguration},
metadata,
metadata, paths,
type_::Module,
uid::UniqueIdGenerator,
Result,
Expand Down Expand Up @@ -58,7 +58,7 @@ fn load_libraries(ids: &UniqueIdGenerator, lib: &Path) -> Result<im::HashMap<Str
tracing::info!("Reading precompiled module metadata files");
let mut manifests = im::HashMap::new();
for lib in fs::read_dir(lib)?.filter_map(Result::ok) {
let path = lib.path().join("build");
let path = lib.path().join(paths::ARTEFACT_DIRECTORY_NAME);
if !path.is_dir() {
continue;
}
Expand Down
Loading

0 comments on commit b35ecd3

Please sign in to comment.