From 441e42efdb45ae24dc735326d32fbda4d3e487c9 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Wed, 1 Jul 2020 17:36:21 +0100 Subject: [PATCH] Cheat: fix unit tests by keeping old types around --- package.json | 1 + tsconfig.json | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/package.json b/package.json index ec7c3f22..3d6e777f 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "uglify-es": "^3.3.9", "uglifyjs-webpack-plugin": "^2.2.0", "web-ext": "^4.3.0", + "web-ext-types": "^3.2.1", "webpack": "^4.43.0", "webpack-cli": "^3.3.12" }, diff --git a/tsconfig.json b/tsconfig.json index 7bd0b7c4..965e9dd1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ "noImplicitThis": true, "strictFunctionTypes": true, "baseUrl": "src/", + "types": ["@types/firefox-webext-browser", "web-ext-types"], "paths": { "@src/*": ["*"] } diff --git a/yarn.lock b/yarn.lock index 0c93f648..6c27f7a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8770,6 +8770,11 @@ wcwidth@^1.0.0: dependencies: defaults "^1.0.3" +web-ext-types@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/web-ext-types/-/web-ext-types-3.2.1.tgz#3edc0e3c2e8fe121d7d7e4ca0b7ee0c883cea832" + integrity sha512-oQZYDU3W8X867h8Jmt3129kRVKklz70db40Y6OzoTTuzOJpF/dB2KULJUf0txVPyUUXuyzV8GmT3nVvRHoG+Ew== + web-ext@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/web-ext/-/web-ext-4.3.0.tgz#50f6968e140b95d41ccff22b9ecbc9fbf3c05414"