diff --git a/src/build/clean.rs b/src/build/clean.rs index 3b5ae8b..b55f2ee 100644 --- a/src/build/clean.rs +++ b/src/build/clean.rs @@ -51,7 +51,7 @@ fn remove_compile_asset(package: &packages::Package, source_file: &str, extensio pub fn remove_compile_assets(package: &packages::Package, source_file: &str) { // optimization - // only issue cmti if htere is an interfacce file + // only issue cmti if there is an interfacce file for extension in &["cmj", "cmi", "cmt", "cmti"] { remove_compile_asset(package, source_file, extension); } diff --git a/src/build/compile.rs b/src/build/compile.rs index cdf1695..ea3ac59 100644 --- a/src/build/compile.rs +++ b/src/build/compile.rs @@ -46,10 +46,10 @@ pub fn compile( // for sure clean modules -- after checking the hash of the cmi let mut clean_modules = AHashSet::::new(); - // TODO: calculate the real dirty modules from the orginal dirty modules in each iteration + // TODO: calculate the real dirty modules from the original dirty modules in each iteration // taken into account the modules that we know are clean, so they don't propagate through the // deps graph - // create a hashset of all clean modules form the file-hashes + // create a hashset of all clean modules from the file-hashes let mut loop_count = 0; let mut files_total_count = compiled_modules.len(); let mut files_current_loop_count; diff --git a/src/build/packages.rs b/src/build/packages.rs index 171bc0c..b5b3ec1 100644 --- a/src/build/packages.rs +++ b/src/build/packages.rs @@ -180,7 +180,7 @@ pub fn read_folders( /// Given a projects' root folder and a `bsconfig::Source`, this recursively creates all the /// sources in a flat list. In the process, it removes the children, as they are being resolved /// because of the recursiveness. So you get a flat list of files back, retaining the type_ and -/// wether it needs to recurse into all structures +/// whether it needs to recurse into all structures fn get_source_dirs(source: bsconfig::Source, sub_path: Option) -> AHashSet { let mut source_folders: AHashSet = AHashSet::new(); @@ -276,7 +276,7 @@ pub fn read_dependency( /// # Make Package -/// Given a bsconfig, reqursively finds all dependencies. +/// Given a bsconfig, recursively finds all dependencies. /// 1. It starts with registering dependencies and /// prevents the operation for the ones which are already /// registerd for the parent packages. Especially relevant for peerDependencies. @@ -430,7 +430,7 @@ fn read_packages(project_root: &str, workspace_root: Option) -> AHashMap /// data from the config and pushes it forwards. Another thing is the 'type_', some files / folders /// can be marked with the type 'dev'. Which means that they may not be around in the distributed /// NPM package. The file reader allows for this, just warns when this happens. -/// TODO -> Check wether we actually need the `fs::Metadata` +/// TODO -> Check whether we actually need the `fs::Metadata` pub fn get_source_files( package_dir: &Path, filter: &Option,