From fd0658fb429e659b037cbf8b2a86459ce49cb3b3 Mon Sep 17 00:00:00 2001 From: Cre3per <12541974+Cre3per@users.noreply.github.com> Date: Wed, 22 Mar 2023 15:15:53 +0100 Subject: feat(cli): --ext parameter for run, compile, and bundle (#17172) Adds `--ext` to `deno run`, closes #5088 Additionally - Adds `--ext` to `deno compile` and `deno bundle` --- cli/tests/integration/bundle_tests.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli/tests/integration/bundle_tests.rs') diff --git a/cli/tests/integration/bundle_tests.rs b/cli/tests/integration/bundle_tests.rs index 08665091e..5a86a3bb9 100644 --- a/cli/tests/integration/bundle_tests.rs +++ b/cli/tests/integration/bundle_tests.rs @@ -466,6 +466,16 @@ itest!(check_local_by_default_type_error { exit_code: 1, }); +itest!(ts_without_extension { + args: "bundle --ext ts file_extensions/ts_without_extension", + output: "bundle/file_extensions/ts_without_extension.out", +}); + +itest!(js_without_extension { + args: "bundle --ext js file_extensions/js_without_extension", + output: "bundle/file_extensions/js_without_extension.out", +}); + itest!(bundle_shebang_file { args: "bundle subdir/shebang_file.js", output: "bundle/shebang_file.bundle.out", -- cgit v1.2.3