Skip to content

Commit c37a298

Browse files
authored
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
1 parent b8b866f commit c37a298

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changes/fix-cli-deno.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@tauri-apps/cli": patch:bug
3+
"tauri-cli": patch:bug
4+
---
5+
6+
Fix usage with Deno failing with `ReferenceError: require is not defined`.

packages/cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@tauri-apps/cli",
33
"version": "2.8.3",
44
"description": "Command line interface for building Tauri apps",
5+
"type": "commonjs",
56
"funding": {
67
"type": "opencollective",
78
"url": "https://opencollective.com/tauri"

0 commit comments

Comments
 (0)