From 137f1a0c6836b50292c53e15aa85bd56ad14a943 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 23 Jan 2024 16:37:43 +0100 Subject: feat(cli): improved diagnostics printing (#22049) This initially uses the new diagnostic printer in `deno lint`, `deno doc` and `deno publish`. In the limit we should also update `deno check` to use this printer. --- cli/tests/testdata/publish/javascript_missing_decl_file.out | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'cli/tests/testdata/publish/javascript_missing_decl_file.out') diff --git a/cli/tests/testdata/publish/javascript_missing_decl_file.out b/cli/tests/testdata/publish/javascript_missing_decl_file.out index 02478a5b5..bf7797c09 100644 --- a/cli/tests/testdata/publish/javascript_missing_decl_file.out +++ b/cli/tests/testdata/publish/javascript_missing_decl_file.out @@ -1,6 +1,13 @@ Checking fast check type graph for errors... -Warning Package '@foo/bar' is a JavaScript package without a corresponding declaration file. This may lead to a non-optimal experience for users of your package. For performance reasons, it's recommended to ship a corresponding TypeScript declaration file or to convert to TypeScript. -Ensuring type checks... +warning[zap-unsupported-javascript-entrypoint]: used a JavaScript module without type declarations as an entrypoints + --> [WILDCARD]mod.js + = hint: add a type declaration (d.ts) for the JavaScript module, or rewrite it to TypeScript + + info: JavaScript files with no corresponding declaration require type inference to be type checked + info: fast check avoids type inference, so JavaScript entrypoints should be avoided + docs: https://jsr.io/go/zap-unsupported-javascript-entrypoint + + Publishing @foo/bar@1.0.0 ... Successfully published @foo/bar@1.0.0 Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details -- cgit v1.2.3