summaryrefslogtreecommitdiff
path: root/cli/tools/registry/tar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/registry/tar.rs')
-rw-r--r--cli/tools/registry/tar.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tools/registry/tar.rs b/cli/tools/registry/tar.rs
index 2dd160a0a..d24d8abaa 100644
--- a/cli/tools/registry/tar.rs
+++ b/cli/tools/registry/tar.rs
@@ -154,6 +154,14 @@ pub fn create_gzipped_tarball(
source_parser,
diagnostics_collector,
)?;
+
+ let media_type = MediaType::from_specifier(&specifier);
+ if matches!(media_type, MediaType::Jsx | MediaType::Tsx) {
+ diagnostics_collector.push(PublishDiagnostic::UnsupportedJsxTsx {
+ specifier: specifier.clone(),
+ });
+ }
+
files.push(PublishableTarballFile {
path_str: path_str.clone(),
specifier: specifier.clone(),