1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
denoland-deno/tests/specs/check
Nathan Whitaker 464ee9155e
fix(check/lsp): fix bugs with tsc type resolution, allow npm packages to augment ImportMeta (#27690)
Fixes #26224.
Fixes #27042.

There were three bugs here:
- we were only resolving `/// <reference types` directives starting with
`npm:`, which meant we failed to resolve bare specifiers (this broke the
`/// <reference types="vite/client">` directive in most of the vite
templates)
- the `$node_modules` workaround caused us to fail to read files for
tsc. For instance tsc would construct new paths based on specifiers
containing `$node_modules`, and since we hadn't created those we weren't
mapping them back to the original (this broke some type resolution
within `vite/client`)
- our separation of `ImportMeta` across node and deno globals in tsc
meant that npm packages couldn't augment `ImportMeta` (this broke
`vite/client`'s augmentation to add `import.meta.env` and others)


After this, the only remaining issue in the vanilla vite template is our
error on `/vite.svg` (which is an ambient module), and I'll look into
that next.
2025-01-16 19:20:04 +00:00
..
check_all chore(tests): Deprecate remaining usages of itest in check tests (#26962) 2024-12-10 23:41:24 +01:00
check_all_local chore(tests): Deprecate remaining usages of itest in check tests (#26962) 2024-12-10 23:41:24 +01:00
check_broadcast_channel chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
check_deno_not_found chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
check_dts chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
check_exclude_option chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
check_imported_files_listed_in_exclude_option chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
check_jsximportsource_importmap_config chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
check_no_error_truncation chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
check_node_builtin_modules chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
check_npm_install_diagnostics chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
check_static_response_json chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
check_types_dts chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
check_with_excluded_file_specified chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
cjs_default_export fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
compiler_options_types fix(check/lsp): correctly resolve compilerOptions.types (#27686) 2025-01-15 18:48:10 -08:00
css_import fix(check): move module not found errors to typescript diagnostics (#27533) 2025-01-03 21:49:56 +00:00
declaration_header_file_with_no_exports chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
dts_importing_non_existent fix(check): move module not found errors to typescript diagnostics (#27533) 2025-01-03 21:49:56 +00:00
export_equals_declaration_file feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
extensionless chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
globbing feat: glob and directory support for deno check and deno cache cli arg paths (#25001) 2024-08-20 18:38:06 +00:00
import_meta_no_errors fix(check/lsp): fix bugs with tsc type resolution, allow npm packages to augment ImportMeta (#27690) 2025-01-16 19:20:04 +00:00
import_non_existent_in_remote fix(check): move module not found errors to typescript diagnostics (#27533) 2025-01-03 21:49:56 +00:00
jsdoc_import_decl fix(check): support jsdoc @import tag (#26991) 2024-11-25 18:57:05 -05:00
jsx_import_source_not_in_graph fix(check): ignore resolving jsxImportSource when jsx is not used in graph (#26548) 2024-10-25 17:56:40 +00:00
jsx_import_source_types feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
jsx_import_source_types_config feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
jsx_not_checked chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
message_chain_formatting fix(check): line-break between diagnostic message chain entries (#27543) 2025-01-03 18:30:41 +00:00
module_detection_force chore: deprecate check itests (#25963) 2024-10-02 09:22:35 +00:00
module_not_found fix(check): move module not found errors to typescript diagnostics (#27533) 2025-01-03 21:49:56 +00:00
no_implicit_override feat(check): turn on noImplicitOverride (#25695) 2024-09-18 14:49:30 +01:00
npm_pkg_empty_main_entry fix(node): handle empty 'main' entry in pkg json (#23155) 2024-04-01 07:07:11 +01:00
package_json fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
package_json_auto_install fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
package_json_fail_check fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
package_json_with_deno_json fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
random_extension chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
reject_string_in_readable_stream_from fix(streams): reject string in ReadableStream.from type (#25116) 2024-11-26 19:42:54 +00:00
remote_missing_override feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
type_reference_import_meta fix(check/lsp): fix bugs with tsc type resolution, allow npm packages to augment ImportMeta (#27690) 2025-01-16 19:20:04 +00:00
typecheck_doc_duplicate_identifiers feat(cli): evaluate code snippets in JSDoc and markdown (#25220) 2024-09-17 21:35:48 -07:00
typecheck_doc_failure feat(cli): evaluate code snippets in JSDoc and markdown (#25220) 2024-09-17 21:35:48 -07:00
typecheck_doc_in_markdown feat(cli): evaluate code snippets in JSDoc and markdown (#25220) 2024-09-17 21:35:48 -07:00
typecheck_doc_success feat(cli): evaluate code snippets in JSDoc and markdown (#25220) 2024-09-17 21:35:48 -07:00
types_resolved_relative_config fix(check): move module not found errors to typescript diagnostics (#27533) 2025-01-03 21:49:56 +00:00
unstable_suggestion refactor: move WebGPU, FFI and FS typings from unstable to stable (#25488) 2024-09-10 05:04:59 -07:00
use_unknown_in_catch_variables feat(lsp): turn on useUnknownInCatchVariables (#25474) 2024-09-06 12:23:59 +02:00
wasm feat: Wasm module support (#26668) 2024-11-19 18:59:23 -05:00
with_bare_import fix: update hint for deno add <package> (#25455) 2024-09-05 11:08:22 +02:00
workspace feat: npm workspace and better Deno workspace support (#24334) 2024-07-04 00:54:33 +00:00