diff options
Diffstat (limited to 'cli/tools/registry/paths.rs')
-rw-r--r-- | cli/tools/registry/paths.rs | 4 |
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, }); } |