diff --git a/package.json b/package.json index 3a49043..56f6e48 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "description": "A React component that displays console logs from the current page, an iframe or transported across a server", "scripts": { "prepack": "yarn build", - "build": "tsc -p ./tsconfig.build.json --declaration && for file in src/**/*.d.ts; do cp $file ${file/src/lib}; done", + "build": "tsc -p ./tsconfig.build.json --declaration && for file in src/**/*.d.ts; do cp $file $(echo $file | sed 's/src/lib/'); done", "start": "vite demo", "release": "yarn test && yarn build && yarn publish", "precommit": "pretty-quick --staged",