Skip to content

Commit d1f4aea

Browse files
authored
chore: Update copy-files script to use 'cp' command (#756)
The 'copy-files' script in the package.json file has been updated to use the 'cp' command instead of the 'copyfiles' package. This change simplifies the script and improves performance. Refactor the 'copy-files' script in package.json to use 'cp' command instead of 'copyfiles' package
1 parent b5763da commit d1f4aea

File tree

2 files changed

+33
-83
lines changed

2 files changed

+33
-83
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"lint:fix": "eslint --fix 'src/**/*.ts'",
2525
"test:unit": "vitest",
2626
"test:coverage": "vitest run --coverage",
27-
"copy-files": "copyfiles -u 2 ./src/prisma/* ./dist/prisma/ && copyfiles -u 3 ./src/prisma/migrations/**/*.sql ./dist/prisma/migrations/"
27+
"copy-files": "cp -r ./src/prisma ./dist/"
2828
},
2929
"dependencies": {
3030
"@aws-sdk/client-kms": "^3.679.0",
@@ -53,7 +53,6 @@
5353
"bullmq": "^5.11.0",
5454
"cookie": "^0.7.0",
5555
"cookie-parser": "^1.4.7",
56-
"copyfiles": "^2.4.1",
5756
"cron-parser": "^4.9.0",
5857
"crypto": "^1.0.1",
5958
"crypto-js": "^4.2.0",

yarn.lock

Lines changed: 32 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -6751,19 +6751,6 @@ copy-anything@^3.0.2:
67516751
dependencies:
67526752
is-what "^4.1.8"
67536753

6754-
copyfiles@^2.4.1:
6755-
version "2.4.1"
6756-
resolved "https://registry.yarnpkg.com/copyfiles/-/copyfiles-2.4.1.tgz#d2dcff60aaad1015f09d0b66e7f0f1c5cd3c5da5"
6757-
integrity sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==
6758-
dependencies:
6759-
glob "^7.0.5"
6760-
minimatch "^3.0.3"
6761-
mkdirp "^1.0.4"
6762-
noms "0.0.0"
6763-
through2 "^2.0.1"
6764-
untildify "^4.0.0"
6765-
yargs "^16.1.0"
6766-
67676754
core-util-is@~1.0.0:
67686755
version "1.0.3"
67696756
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
@@ -8268,18 +8255,6 @@ glob@^10.3.7, glob@^10.4.1:
82688255
package-json-from-dist "^1.0.0"
82698256
path-scurry "^1.11.1"
82708257

8271-
glob@^7.0.5:
8272-
version "7.2.3"
8273-
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
8274-
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
8275-
dependencies:
8276-
fs.realpath "^1.0.0"
8277-
inflight "^1.0.4"
8278-
inherits "2"
8279-
minimatch "^3.1.1"
8280-
once "^1.3.0"
8281-
path-is-absolute "^1.0.0"
8282-
82838258
glob@^8.0.0, glob@^8.0.1:
82848259
version "8.1.0"
82858260
resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e"
@@ -8889,11 +8864,6 @@ is64bit@^2.0.0:
88898864
dependencies:
88908865
system-architecture "^0.1.0"
88918866

8892-
isarray@0.0.1:
8893-
version "0.0.1"
8894-
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
8895-
integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==
8896-
88978867
isarray@^1.0.0, isarray@~1.0.0:
88988868
version "1.0.0"
88998869
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
@@ -9656,7 +9626,7 @@ minimalistic-crypto-utils@^1.0.1:
96569626
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
96579627
integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==
96589628

9659-
minimatch@^3.0.3, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
9629+
minimatch@^3.0.5, minimatch@^3.1.2:
96609630
version "3.1.2"
96619631
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
96629632
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
@@ -9952,14 +9922,6 @@ node-libs-browser@2.2.1:
99529922
util "^0.11.0"
99539923
vm-browserify "^1.0.1"
99549924

9955-
noms@0.0.0:
9956-
version "0.0.0"
9957-
resolved "https://registry.yarnpkg.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859"
9958-
integrity sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==
9959-
dependencies:
9960-
inherits "^2.0.1"
9961-
readable-stream "~1.0.31"
9962-
99639925
normalize-path@^3.0.0, normalize-path@~3.0.0:
99649926
version "3.0.0"
99659927
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
@@ -10216,11 +10178,6 @@ path-exists@^4.0.0:
1021610178
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"
1021710179
integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==
1021810180

10219-
path-is-absolute@^1.0.0:
10220-
version "1.0.1"
10221-
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
10222-
integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
10223-
1022410181
path-key@^3.1.0:
1022510182
version "3.1.1"
1022610183
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
@@ -10866,7 +10823,7 @@ react-style-singleton@^2.2.1:
1086610823
invariant "^2.2.4"
1086710824
tslib "^2.0.0"
1086810825

10869-
readable-stream@^2.0.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@^2.3.8, readable-stream@~2.3.6:
10826+
readable-stream@^2.0.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@^2.3.8:
1087010827
version "2.3.8"
1087110828
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b"
1087210829
integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==
@@ -10899,16 +10856,6 @@ readable-stream@^4.0.0:
1089910856
process "^0.11.10"
1090010857
string_decoder "^1.3.0"
1090110858

10902-
readable-stream@~1.0.31:
10903-
version "1.0.34"
10904-
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c"
10905-
integrity sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==
10906-
dependencies:
10907-
core-util-is "~1.0.0"
10908-
inherits "~2.0.1"
10909-
isarray "0.0.1"
10910-
string_decoder "~0.10.x"
10911-
1091210859
readdirp@~3.6.0:
1091310860
version "3.6.0"
1091410861
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
@@ -11400,8 +11347,16 @@ strict-uri-encode@^2.0.0:
1140011347
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
1140111348
integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==
1140211349

11403-
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
11404-
name string-width-cjs
11350+
"string-width-cjs@npm:string-width@^4.2.0":
11351+
version "4.2.3"
11352+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
11353+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
11354+
dependencies:
11355+
emoji-regex "^8.0.0"
11356+
is-fullwidth-code-point "^3.0.0"
11357+
strip-ansi "^6.0.1"
11358+
11359+
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1140511360
version "4.2.3"
1140611361
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1140711362
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -11426,20 +11381,21 @@ string_decoder@^1.0.0, string_decoder@^1.1.1, string_decoder@^1.3.0:
1142611381
dependencies:
1142711382
safe-buffer "~5.2.0"
1142811383

11429-
string_decoder@~0.10.x:
11430-
version "0.10.31"
11431-
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
11432-
integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==
11433-
1143411384
string_decoder@~1.1.1:
1143511385
version "1.1.1"
1143611386
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
1143711387
integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==
1143811388
dependencies:
1143911389
safe-buffer "~5.1.0"
1144011390

11441-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
11442-
name strip-ansi-cjs
11391+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
11392+
version "6.0.1"
11393+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
11394+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
11395+
dependencies:
11396+
ansi-regex "^5.0.1"
11397+
11398+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1144311399
version "6.0.1"
1144411400
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1144511401
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -11659,14 +11615,6 @@ three@^0.146.0:
1165911615
resolved "https://registry.yarnpkg.com/three/-/three-0.146.0.tgz#fd80f0d128ab4bb821a02191ae241e4e6326f17a"
1166011616
integrity sha512-1lvNfLezN6OJ9NaFAhfX4sm5e9YCzHtaRgZ1+B4C+Hv6TibRMsuBAM5/wVKzxjpYIlMymvgsHEFrrigEfXnb2A==
1166111617

11662-
through2@^2.0.1:
11663-
version "2.0.5"
11664-
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"
11665-
integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==
11666-
dependencies:
11667-
readable-stream "~2.3.6"
11668-
xtend "~4.0.1"
11669-
1167011618
tildify@2.0.0:
1167111619
version "2.0.0"
1167211620
resolved "https://registry.yarnpkg.com/tildify/-/tildify-2.0.0.tgz#f205f3674d677ce698b7067a99e949ce03b4754a"
@@ -11940,11 +11888,6 @@ unstorage@^1.9.0:
1194011888
ofetch "^1.3.3"
1194111889
ufo "^1.4.0"
1194211890

11943-
untildify@^4.0.0:
11944-
version "4.0.0"
11945-
resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b"
11946-
integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==
11947-
1194811891
untun@^0.1.3:
1194911892
version "0.1.3"
1195011893
resolved "https://registry.yarnpkg.com/untun/-/untun-0.1.3.tgz#5d10dee37a3a5737ff03d158be877dae0a0e58a6"
@@ -12487,8 +12430,7 @@ wordwrap@^1.0.0:
1248712430
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
1248812431
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
1248912432

12490-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
12491-
name wrap-ansi-cjs
12433+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
1249212434
version "7.0.0"
1249312435
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1249412436
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -12506,6 +12448,15 @@ wrap-ansi@^6.2.0:
1250612448
string-width "^4.1.0"
1250712449
strip-ansi "^6.0.0"
1250812450

12451+
wrap-ansi@^7.0.0:
12452+
version "7.0.0"
12453+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
12454+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
12455+
dependencies:
12456+
ansi-styles "^4.0.0"
12457+
string-width "^4.1.0"
12458+
strip-ansi "^6.0.0"
12459+
1250912460
wrap-ansi@^8.1.0:
1251012461
version "8.1.0"
1251112462
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
@@ -12550,7 +12501,7 @@ xmlcreate@^2.0.4:
1255012501
resolved "https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-2.0.4.tgz#0c5ab0f99cdd02a81065fa9cd8f8ae87624889be"
1255112502
integrity sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==
1255212503

12553-
xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1:
12504+
xtend@^4.0.0, xtend@^4.0.1:
1255412505
version "4.0.2"
1255512506
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
1255612507
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
@@ -12630,7 +12581,7 @@ yargs@^15.3.1:
1263012581
y18n "^4.0.0"
1263112582
yargs-parser "^18.1.2"
1263212583

12633-
yargs@^16.1.0, yargs@^16.2.0:
12584+
yargs@^16.2.0:
1263412585
version "16.2.0"
1263512586
resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66"
1263612587
integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==

0 commit comments

Comments
 (0)