Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2023-09-08 10:49:41 +01:00
parent 34d7eca8f3
commit 5a534e4010
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
3 changed files with 3 additions and 8 deletions

View File

@ -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",

View File

@ -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) => {

4
src/@types/cpx.d.ts vendored
View File

@ -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;