mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
feat: support bun specifiers in JSR publish
This commit is contained in:
parent
702f7ee89c
commit
aad8ae3710
2 changed files with 2 additions and 2 deletions
|
@ -437,7 +437,7 @@ impl Diagnostic for PublishDiagnostic {
|
||||||
InvalidExternalImport { imported, .. } => Cow::Owned(vec![
|
InvalidExternalImport { imported, .. } => Cow::Owned(vec![
|
||||||
Cow::Owned(format!("the import was resolved to '{}'", imported)),
|
Cow::Owned(format!("the import was resolved to '{}'", imported)),
|
||||||
Cow::Borrowed("this specifier is not allowed to be imported on jsr"),
|
Cow::Borrowed("this specifier is not allowed to be imported on jsr"),
|
||||||
Cow::Borrowed("jsr only supports importing `jsr:`, `npm:`, and `data:` specifiers"),
|
Cow::Borrowed("jsr only supports importing `jsr:`, `npm:`, `data:`, `bun:`, and `node:` specifiers"),
|
||||||
]),
|
]),
|
||||||
UnsupportedJsxTsx { .. } => Cow::Owned(vec![
|
UnsupportedJsxTsx { .. } => Cow::Owned(vec![
|
||||||
Cow::Borrowed("follow https://github.com/jsr-io/jsr/issues/24 for updates"),
|
Cow::Borrowed("follow https://github.com/jsr-io/jsr/issues/24 for updates"),
|
||||||
|
|
|
@ -47,7 +47,7 @@ impl GraphDiagnosticsCollector {
|
||||||
resolution: &ResolutionResolved| {
|
resolution: &ResolutionResolved| {
|
||||||
if visited.insert(resolution.specifier.clone()) {
|
if visited.insert(resolution.specifier.clone()) {
|
||||||
match resolution.specifier.scheme() {
|
match resolution.specifier.scheme() {
|
||||||
"file" | "data" | "node" => {}
|
"file" | "data" | "node" | "bun" => {}
|
||||||
"jsr" => {
|
"jsr" => {
|
||||||
skip_specifiers.insert(resolution.specifier.clone());
|
skip_specifiers.insert(resolution.specifier.clone());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue