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
This commit is contained in:
Lucas Fernandes Nogueira
2025-08-28 18:02:09 -03:00
committed by GitHub
parent b8b866fcc7
commit c37a298331
2 changed files with 7 additions and 0 deletions

6
.changes/fix-cli-deno.md Normal file
View File

@@ -0,0 +1,6 @@
---
"@tauri-apps/cli": patch:bug
"tauri-cli": patch:bug
---
Fix usage with Deno failing with `ReferenceError: require is not defined`.

View File

@@ -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"