summaryrefslogtreecommitdiff
path: root/cli/tools/registry/paths.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-24 21:43:30 -0400
committerGitHub <noreply@github.com>2024-07-25 01:43:30 +0000
commit84b7504d0fdccc07b9f7412408c954ae07765ccb (patch)
tree3fed62c67573cb4da49ec1a634dbe4f2277c5a0c /cli/tools/registry/paths.rs
parent5f5f662a68c1425ce5080bc430e72364d4055af4 (diff)
fix(workspaces/publish): include the license file from the workspace root if not in pkg (#24714)
Diffstat (limited to 'cli/tools/registry/paths.rs')
-rw-r--r--cli/tools/registry/paths.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tools/registry/paths.rs b/cli/tools/registry/paths.rs
index 1fe8830dd..5943e0cbb 100644
--- a/cli/tools/registry/paths.rs
+++ b/cli/tools/registry/paths.rs
@@ -214,7 +214,10 @@ pub enum PackagePathValidationError {
pub struct CollectedPublishPath {
pub specifier: ModuleSpecifier,
pub path: PathBuf,
+ /// Relative path to use in the tarball.
pub relative_path: String,
+ /// Specify the contents for any injected paths.
+ pub maybe_content: Option<Vec<u8>>,
}
pub struct CollectPublishPathsOptions<'a> {
@@ -307,6 +310,7 @@ pub fn collect_publish_paths(
specifier,
path,
relative_path,
+ maybe_content: None,
});
}