From dfc5eec43c481b1eeaa0ad069aeba8b7559d4440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 5 Sep 2024 08:59:12 +0100 Subject: feat: Allow importing .cjs files (#25426) This commit adds support for executing top-level `.cjs` files, as well as import `.cjs` files from within npm packages. This works only for `.cjs` files, the contents of sibling `package.json` are not consulted for the `"type"` field. Closes https://github.com/denoland/deno/issues/25384 --------- Signed-off-by: David Sherret Co-authored-by: Luca Casonato Co-authored-by: David Sherret --- tools/lint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/lint.js b/tools/lint.js index 4bffead0c..aa12900ad 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -221,7 +221,7 @@ async function ensureNoNewITests() { "pm_tests.rs": 0, "publish_tests.rs": 0, "repl_tests.rs": 0, - "run_tests.rs": 349, + "run_tests.rs": 348, "shared_library_tests.rs": 0, "task_tests.rs": 30, "test_tests.rs": 75, -- cgit v1.2.3