diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-21 13:12:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 17:12:56 +0000 |
commit | 1d4169204cdc870a084a3371500d7b3ab8546bc2 (patch) | |
tree | e70a6a99ab7d937dd789f58af5d656b0555f8507 /tests/testdata/import_attributes/json_with_shebang.ts | |
parent | e2c50f7e8ada214f3a44a49da2faa0716d24970e (diff) |
fix: warn about import assertions when using typescript (#25135)
1. On emit, checks for the prescence of import assertions.
1. Warns and doesn't store the parsed source in the emit cache in this
case.
Diffstat (limited to 'tests/testdata/import_attributes/json_with_shebang.ts')
-rw-r--r-- | tests/testdata/import_attributes/json_with_shebang.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/testdata/import_attributes/json_with_shebang.ts b/tests/testdata/import_attributes/json_with_shebang.ts index 0a785210f..9524026bc 100644 --- a/tests/testdata/import_attributes/json_with_shebang.ts +++ b/tests/testdata/import_attributes/json_with_shebang.ts @@ -1,4 +1,3 @@ -// deno-lint-ignore no-import-assertions -import json from "./json_with_shebang.json" assert { type: "json" }; +import json from "./json_with_shebang.json" with { type: "json" }; console.log(json); |