]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
chore: replace cp with js code (#11000)
authorDan Onoshko <danon0404@gmail.com>
Mon, 19 Dec 2022 08:39:23 +0000 (12:39 +0400)
committerGitHub <noreply@github.com>
Mon, 19 Dec 2022 08:39:23 +0000 (09:39 +0100)
package.json

index 2a6e148060e80aef30c045fe850efa512b9107de..f422addf269c9271fb1dc5a9c5b4c354a7faf48c 100644 (file)
@@ -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",