From: Dan Onoshko Date: Mon, 19 Dec 2022 08:39:23 +0000 (+0400) Subject: chore: replace cp with js code (#11000) X-Git-Tag: v4.1.2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da348044f7e775ab2a57a8fb6f1e697c4ab0b6a3;p=thirdparty%2FChart.js.git chore: replace cp with js code (#11000) --- diff --git a/package.json b/package.json index 2a6e14806..f422addf2 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,8 @@ ], "scripts": { "autobuild": "rollup -c -w", - "emitDeclarations": "tsc --emitDeclarationOnly && cp -R ./src/types/ ./dist/types/", + "copyDeclarations": "node -e \"fs.cpSync('./src/types/', './dist/types/', {recursive:true})\"", + "emitDeclarations": "tsc --emitDeclarationOnly && pnpm copyDeclarations", "build": "rollup -c && pnpm emitDeclarations", "dev": "karma start ./karma.conf.cjs --auto-watch --no-single-run --browsers chrome --grep", "dev:ff": "karma start ./karma.conf.cjs --auto-watch --no-single-run --browsers firefox --grep",