Skip to content

Commit b3b2dc6

Browse files
committed
Replace custom script in copy-styles script with cpy
1 parent cb8978b commit b3b2dc6

File tree

3 files changed

+506
-181
lines changed

3 files changed

+506
-181
lines changed

copy-styles.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext",
1616
"build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs",
1717
"clean": "rimraf dist",
18-
"copy-styles": "node --loader ts-node/esm ./copy-styles.ts",
18+
"copy-styles": "cpy 'src/**/*.css' dist/esm && cpy 'src/**/*.css' dist/cjs",
1919
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
2020
"postinstall": "husky install",
2121
"prepack": "yarn clean && yarn build",
@@ -51,6 +51,7 @@
5151
"@testing-library/user-event": "^14.4.0",
5252
"@types/node": "*",
5353
"@types/react": "*",
54+
"cpy-cli": "^5.0.0",
5455
"eslint": "^8.26.0",
5556
"eslint-config-wojtekmaj": "^0.9.0",
5657
"husky": "^8.0.0",
@@ -60,7 +61,6 @@
6061
"react": "^18.2.0",
6162
"react-dom": "^18.2.0",
6263
"rimraf": "^3.0.0",
63-
"ts-node": "^10.9.1",
6464
"typescript": "^5.0.0",
6565
"vitest": "^0.30.1",
6666
"vitest-canvas-mock": "^0.2.2"

0 commit comments

Comments
 (0)