Skip to content

Commit 1acb05d

Browse files
committed
Replace custom script in copy-styles script with cpy
1 parent fbe38d6 commit 1acb05d

File tree

3 files changed

+506
-157
lines changed

3 files changed

+506
-157
lines changed

copy-styles.ts

Lines changed: 0 additions & 9 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",
1919
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
2020
"postinstall": "husky install",
2121
"prepack": "yarn clean && yarn build",
@@ -53,6 +53,7 @@
5353
"@testing-library/react": "^14.0.0",
5454
"@types/node": "*",
5555
"@types/react": "*",
56+
"cpy-cli": "^5.0.0",
5657
"eslint": "^8.26.0",
5758
"eslint-config-wojtekmaj": "^0.9.0",
5859
"husky": "^8.0.0",
@@ -62,7 +63,6 @@
6263
"react": "^18.2.0",
6364
"react-dom": "^18.2.0",
6465
"rimraf": "^3.0.0",
65-
"ts-node": "^10.9.1",
6666
"typescript": "^5.0.0",
6767
"vitest": "^0.30.1"
6868
},

0 commit comments

Comments
 (0)