forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(publish): check specifiers outside fast check module graph (deno…
…land#23369) Closes denoland#23023
- Loading branch information
Showing
6 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "publish --dry-run", | ||
"output": "main.out", | ||
"exitCode": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "@example/foo", | ||
"version": "1.0.0", | ||
"exports": "./mod.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "https://deno.land/std/assert/assert.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[WILDCARD] | ||
Check [WILDLINE]/tests/specs/publish/prefer_fast_check_graph/mod.ts | ||
Checking for slow types in the public API... | ||
Check [WILDLINE]/tests/specs/publish/prefer_fast_check_graph/mod.ts | ||
error[invalid-external-import]: invalid import to a non-JSR 'https' specifier | ||
--> [WILDLINE]deps.ts:1:15 | ||
| | ||
1 | export * from "https://deno.land/std/assert/assert.ts"; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the specifier | ||
= hint: replace this import with one from jsr or npm, or vendor the dependency into your package | ||
|
||
info: the import was resolved to 'https://deno.land/std/assert/assert.ts' | ||
info: this specifier is not allowed to be imported on jsr | ||
info: jsr only supports importing `jsr:`, `npm:`, and `data:` specifiers | ||
docs: https://jsr.io/go/invalid-external-import | ||
|
||
error: Found 1 problem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from "./subtract.ts"; | ||
|
||
export function add(a: number, b: number): number { | ||
return a + b; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import * as blah from "./deps.ts"; | ||
|
||
export function subtract(a: number, b: number): number { | ||
return a - b; | ||
} |