From 45210e15c63b56117c6da6eb3dca1d9187c4da02 Mon Sep 17 00:00:00 2001 From: Andreas Eriksson Date: Sun, 9 May 2021 15:12:32 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Patch=20fast-fuzzy=20to?= =?UTF-8?q?=20remove=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fast-fuzzy uses a new package.json construct: exports It is missing the package.json file and entire packae is ignored when using node 15+. This adds a patch that removes the exports from package.json --- packages/app/patches/fast-fuzzy+1.10.8.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/app/patches/fast-fuzzy+1.10.8.patch b/packages/app/patches/fast-fuzzy+1.10.8.patch index 45b7f634..65f059e1 100644 --- a/packages/app/patches/fast-fuzzy+1.10.8.patch +++ b/packages/app/patches/fast-fuzzy+1.10.8.patch @@ -11,3 +11,18 @@ index 33d561a..2e5589f 100644 whitespaceRegex.lastIndex = 0; nonWordRegex.lastIndex = 0; +diff --git a/node_modules/fast-fuzzy/package.json b/node_modules/fast-fuzzy/package.json +index cdc334c..947679b 100644 +--- a/node_modules/fast-fuzzy/package.json ++++ b/node_modules/fast-fuzzy/package.json +@@ -4,10 +4,6 @@ + "description": "Fast and tiny fuzzy-search utility", + "main": "lib/fuzzy.js", + "types": "lib/fuzzy.d.ts", +- "exports": { +- "import": "./lib/fuzzy.mjs", +- "require": "./lib/fuzzy.js" +- }, + "scripts": { + "compile": "rollup -c", + "prepublishOnly": "npm run compile",