From 616c3851682cd87f1f067cb858318008aaca5ef2 Mon Sep 17 00:00:00 2001 From: dangreen Date: Sun, 18 Dec 2022 20:55:58 +0400 Subject: [PATCH] chore: replace cp with js code --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2a6e148060e..f422addf269 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",