Parcourir la source

fix(cli.js): Fix package installation on yarn 2+ (#3012)

FabianLars il y a 3 ans
Parent
commit
1e336b6872
2 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 5 0
      .changes/fix-yarn-pnp.md
  2. 1 0
      tooling/cli.js/package.json

+ 5 - 0
.changes/fix-yarn-pnp.md

@@ -0,0 +1,5 @@
+---
+"cli.js": patch
+---
+
+Automatically unplug `@tauri-apps/cli` in yarn 2+ installations to fix the download of the rust-cli.

+ 1 - 0
tooling/cli.js/package.json

@@ -16,6 +16,7 @@
     "url": "https://opencollective.com/tauri"
   },
   "scripts": {
+    "postinstall": "",
     "build": "rimraf ./dist && rollup -c --silent",
     "build-release": "rimraf ./dist && cross-env NODE_ENV=production rollup -c",
     "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --runInBand --forceExit --no-cache --testPathIgnorePatterns=\"(build|dev)\"",