Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(unstable/publish): ordered publish of packages in workspace #21550

Merged
merged 12 commits into from
Dec 14, 2023

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Dec 12, 2023

This publishes packages in a workspace according to their dependency order.

@dsherret dsherret marked this pull request as ready for review December 13, 2023 15:07
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok

Comment on lines +128 to +133
let (tarball, diagnostics) = deno_core::unsync::spawn_blocking(move || {
let unfurler = ImportMapUnfurler::new(&import_map);
tar::create_gzipped_tarball(&dir_path, unfurler)
.context("Failed to create a tarball")
})
.await??;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to run it in a separate thread since this code is executed before paralellization happens?

.map(|member| {
let import_map = import_map.clone();
deno_core::unsync::spawn(async move {
let package = prepare_publish(&member.config_file, import_map)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scratch previous comment, I see that it is parallelized after all

@dsherret dsherret changed the title feat(unstable/publish): publish packages in workspace batched taking into account deps feat(unstable/publish): ordered publish of packages in workspace Dec 13, 2023
@dsherret dsherret enabled auto-merge (squash) December 13, 2023 17:01
@dsherret dsherret changed the title feat(unstable/publish): ordered publish of packages in workspace chore(unstable/publish): ordered publish of packages in workspace Dec 14, 2023
@dsherret dsherret merged commit 4b6fc64 into denoland:main Dec 14, 2023
14 checks passed
@dsherret dsherret deleted the feat_publish_order branch December 14, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants