From 5a534e401048e1f4c21e4d4eb128d6d2dc01c902 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 8 Sep 2023 10:49:41 +0100 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- package.json | 1 - scripts/copy-res.ts | 6 +++--- src/@types/cpx.d.ts | 4 ---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 195f663d99..aba4bae377 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,6 @@ "@sentry/webpack-plugin": "^2.0.0", "@svgr/webpack": "^5.5.0", "@testing-library/react": "^12.1.5", - "@types/cpx": "1.5.0", "@types/jest": "^29.0.0", "@types/jitsi-meet": "^2.0.2", "@types/jsrsasign": "^10.5.4", diff --git a/scripts/copy-res.ts b/scripts/copy-res.ts index cf3a0477a0..e2b8d8e56f 100755 --- a/scripts/copy-res.ts +++ b/scripts/copy-res.ts @@ -5,8 +5,8 @@ import parseArgs from "minimist"; import * as chokidar from "chokidar"; import * as fs from "node:fs"; -import * as _ from "lodash"; -import * as Cpx from "cpx"; +import _ from "lodash"; +import { Cpx } from "cpx"; import * as loaderUtils from "loader-utils"; const I18N_BASE_PATH = "src/i18n/strings/"; @@ -67,7 +67,7 @@ function next(i: number, err?: Error): void { const source = ent[0]; const dest = ent[1]; const opts = ent[2] || {}; - const cpx = new Cpx.Cpx(source, dest); + const cpx = new Cpx(source, dest); if (verbose) { cpx.on("copy", (event) => { diff --git a/src/@types/cpx.d.ts b/src/@types/cpx.d.ts index d9c4d632e3..e128517e3d 100644 --- a/src/@types/cpx.d.ts +++ b/src/@types/cpx.d.ts @@ -14,8 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import "cpx"; - declare module "cpx" { export class Cpx { public constructor(source: string, outDir: string, options?: object); @@ -43,5 +41,3 @@ declare module "cpx" { public watch(): void; } } - -export as namespace Cpx;