From 06fcfc5c0a2e39f0b723914bb2edb74a99c67bfb Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Sun, 21 Feb 2021 22:28:32 +0530 Subject: feat: add --ext flag to deno eval (#9295) This PR deprecates the "--ts"/"-T" flag of "deno eval" (which will later be removed in 2.0) and introduces "--ext" which is used by "deno fmt" for content type selection. This is to ensure we have a single flag that can be used across subcommands to select the language (JS/TS). --- cli/tests/integration_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests/integration_tests.rs') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index bb65f24fa..b82efa904 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2514,7 +2514,7 @@ console.log("finish"); // Ugly parentheses due to whitespace delimiting problem. itest!(_030_eval_ts { - args: "eval --quiet -T console.log((123)as(number))", // 'as' is a TS keyword only + args: "eval --quiet --ext=ts console.log((123)as(number))", // 'as' is a TS keyword only output: "030_eval_ts.out", }); -- cgit v1.2.3