From c37a298331d6d744b15d32d55a2db83c884a3d6a Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 28 Aug 2025 18:02:09 -0300 Subject: [PATCH] fix(cli): set package type for Deno (#14112) without the type Deno assumes that the package is a ESM so it cannot use `require` we should probably update our minimum Node.js version and use ESM instead, but I want to ship this fix first --- .changes/fix-cli-deno.md | 6 ++++++ packages/cli/package.json | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changes/fix-cli-deno.md diff --git a/.changes/fix-cli-deno.md b/.changes/fix-cli-deno.md new file mode 100644 index 000000000..c9a49a50b --- /dev/null +++ b/.changes/fix-cli-deno.md @@ -0,0 +1,6 @@ +--- +"@tauri-apps/cli": patch:bug +"tauri-cli": patch:bug +--- + +Fix usage with Deno failing with `ReferenceError: require is not defined`. diff --git a/packages/cli/package.json b/packages/cli/package.json index 7e83e8faa..aa2e9f264 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -2,6 +2,7 @@ "name": "@tauri-apps/cli", "version": "2.8.3", "description": "Command line interface for building Tauri apps", + "type": "commonjs", "funding": { "type": "opencollective", "url": "https://opencollective.com/tauri"