Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit a61446c

Browse files
authored
Merge pull request #1520 from ghiscoding/chore/native-copyfiles
chore: replace copyfiles with a in-house native package
2 parents 03c9962 + 9f62c3b commit a61446c

File tree

3 files changed

+31
-92
lines changed

3 files changed

+31
-92
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"prebuild": "npm-run-all delete:dist lint prettier:check",
2121
"build": "ng-packagr -p ng-package.json -c tsconfig.json",
2222
"postbuild": "npm-run-all copy:i18n",
23-
"copy:i18n": "copyfiles -f src/assets/i18n/*.json dist/i18n",
23+
"copy:i18n": "copyfiles src/assets/i18n/*.json dist/i18n --flat --stat",
2424
"delete:dist": "rimraf dist",
2525
"cypress:open": "cypress open --config-file test/cypress.config.ts",
2626
"cypress:ci": "cypress run --config-file test/cypress.config.ts",
@@ -104,7 +104,6 @@
104104
"@types/sortablejs": "^1.15.8",
105105
"angular-eslint": "^18.4.3",
106106
"bootstrap": "^5.3.3",
107-
"copyfiles": "^2.4.1",
108107
"custom-event-polyfill": "^1.0.7",
109108
"cypress": "^14.0.0",
110109
"cypress-real-events": "^1.14.0",
@@ -115,6 +114,7 @@
115114
"jest": "^29.7.0",
116115
"jest-extended": "^4.0.2",
117116
"jest-preset-angular": "^14.5.1",
117+
"native-copyfiles": "^0.2.1",
118118
"ng-packagr": "^18.2.1",
119119
"ngx-bootstrap": "^18.1.3",
120120
"npm-run-all2": "^7.0.2",

src/app/examples/grid-range.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,8 @@ export class GridRangeComponent implements OnInit, OnDestroy {
197197
},
198198
];
199199

200-
const today = new Date();
201200
const presetLowestDay = format(addDay(new Date(), -2), 'YYYY-MM-DD');
202-
const presetHighestDay = format(addDay(new Date(), today.getDate() < 14 ? 28 : 25), 'YYYY-MM-DD');
201+
const presetHighestDay = format(addDay(new Date(), 25), 'YYYY-MM-DD');
203202

204203
this.gridOptions = {
205204
autoResize: {

yarn.lock

Lines changed: 28 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -4749,15 +4749,6 @@ cli-width@^4.1.0:
47494749
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-4.1.0.tgz#42daac41d3c254ef38ad8ac037672130173691c5"
47504750
integrity sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==
47514751

4752-
cliui@^7.0.2:
4753-
version "7.0.4"
4754-
resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"
4755-
integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==
4756-
dependencies:
4757-
string-width "^4.2.0"
4758-
strip-ansi "^6.0.0"
4759-
wrap-ansi "^7.0.0"
4760-
47614752
cliui@^8.0.1:
47624753
version "8.0.1"
47634754
resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa"
@@ -5097,19 +5088,6 @@ [email protected]:
50975088
schema-utils "^4.2.0"
50985089
serialize-javascript "^6.0.2"
50995090

5100-
copyfiles@^2.4.1:
5101-
version "2.4.1"
5102-
resolved "https://registry.yarnpkg.com/copyfiles/-/copyfiles-2.4.1.tgz#d2dcff60aaad1015f09d0b66e7f0f1c5cd3c5da5"
5103-
integrity sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==
5104-
dependencies:
5105-
glob "^7.0.5"
5106-
minimatch "^3.0.3"
5107-
mkdirp "^1.0.4"
5108-
noms "0.0.0"
5109-
through2 "^2.0.1"
5110-
untildify "^4.0.0"
5111-
yargs "^16.1.0"
5112-
51135091
core-js-compat@^3.37.1, core-js-compat@^3.38.0:
51145092
version "3.38.1"
51155093
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.38.1.tgz#2bc7a298746ca5a7bcb9c164bcb120f2ebc09a09"
@@ -6245,6 +6223,11 @@ fd-slicer@~1.1.0:
62456223
dependencies:
62466224
pend "~1.2.0"
62476225

6226+
fdir@^6.4.2:
6227+
version "6.4.3"
6228+
resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.3.tgz#011cdacf837eca9b811c89dbb902df714273db72"
6229+
integrity sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==
6230+
62486231
fflate@^0.8.2:
62496232
version "0.8.2"
62506233
resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.8.2.tgz#fc8631f5347812ad6028bbe4a2308b2792aa1dea"
@@ -6601,7 +6584,7 @@ glob@^10.2.2, glob@^10.3.10, glob@^10.3.7:
66016584
package-json-from-dist "^1.0.0"
66026585
path-scurry "^1.11.1"
66036586

6604-
glob@^7.0.0, glob@^7.0.5, glob@^7.1.3, glob@^7.1.4:
6587+
glob@^7.0.0, glob@^7.1.3, glob@^7.1.4:
66056588
version "7.2.3"
66066589
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
66076590
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
@@ -7009,7 +6992,7 @@ inflight@^1.0.4:
70096992
once "^1.3.0"
70106993
wrappy "1"
70116994

7012-
inherits@2, [email protected], inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3, inherits@~2.0.4:
6995+
inherits@2, [email protected], inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@~2.0.4:
70136996
version "2.0.4"
70146997
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
70156998
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
@@ -7306,11 +7289,6 @@ is-wsl@^3.1.0:
73067289
dependencies:
73077290
is-inside-container "^1.0.0"
73087291

7309-
7310-
version "0.0.1"
7311-
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
7312-
integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==
7313-
73147292
isarray@~1.0.0:
73157293
version "1.0.0"
73167294
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
@@ -8429,7 +8407,7 @@ minimalistic-assert@^1.0.0:
84298407
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
84308408
integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
84318409

8432-
minimatch@^3.0.3, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2:
8410+
minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2:
84338411
version "3.1.2"
84348412
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
84358413
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
@@ -8519,7 +8497,7 @@ minizlib@^2.1.1, minizlib@^2.1.2:
85198497
minipass "^3.0.0"
85208498
yallist "^4.0.0"
85218499

8522-
mkdirp@^1.0.3, mkdirp@^1.0.4:
8500+
mkdirp@^1.0.3:
85238501
version "1.0.4"
85248502
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
85258503
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
@@ -8595,6 +8573,14 @@ nanoid@^3.3.7:
85958573
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf"
85968574
integrity sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==
85978575

8576+
native-copyfiles@^0.2.1:
8577+
version "0.2.1"
8578+
resolved "https://registry.yarnpkg.com/native-copyfiles/-/native-copyfiles-0.2.1.tgz#4905548be520b53ad939f791382f6486b045654f"
8579+
integrity sha512-oXt+z5p21y6dsdkIjGra4qtIDYkOdR1tdng9/2xG4KnT1CRMUSv3TDIVkZ3FNhzwjjDH58/rIUmjiOG4T3BCTg==
8580+
dependencies:
8581+
tinyglobby "^0.2.10"
8582+
yargs "^17.7.2"
8583+
85988584
natural-compare@^1.4.0:
85998585
version "1.4.0"
86008586
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
@@ -8733,14 +8719,6 @@ node-releases@^2.0.18:
87338719
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f"
87348720
integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==
87358721

8736-
8737-
version "0.0.0"
8738-
resolved "https://registry.yarnpkg.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859"
8739-
integrity sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==
8740-
dependencies:
8741-
inherits "^2.0.1"
8742-
readable-stream "~1.0.31"
8743-
87448722
nopt@^7.0.0:
87458723
version "7.2.1"
87468724
resolved "https://registry.yarnpkg.com/nopt/-/nopt-7.2.1.tgz#1cac0eab9b8e97c9093338446eddd40b2c8ca1e7"
@@ -9275,7 +9253,7 @@ picocolors@^1.1.0:
92759253
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59"
92769254
integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==
92779255

9278-
9256+
[email protected], picomatch@^4.0.2:
92799257
version "4.0.2"
92809258
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab"
92819259
integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==
@@ -9625,7 +9603,7 @@ read-pkg@^9.0.0:
96259603
type-fest "^4.6.0"
96269604
unicorn-magic "^0.1.0"
96279605

9628-
readable-stream@^2.0.1, readable-stream@~2.3.6:
9606+
readable-stream@^2.0.1:
96299607
version "2.3.8"
96309608
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b"
96319609
integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==
@@ -9647,16 +9625,6 @@ readable-stream@^3.0.2, readable-stream@^3.0.6, readable-stream@^3.4.0, readable
96479625
string_decoder "^1.1.1"
96489626
util-deprecate "^1.0.1"
96499627

9650-
readable-stream@~1.0.31:
9651-
version "1.0.34"
9652-
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c"
9653-
integrity sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==
9654-
dependencies:
9655-
core-util-is "~1.0.0"
9656-
inherits "~2.0.1"
9657-
isarray "0.0.1"
9658-
string_decoder "~0.10.x"
9659-
96609628
readdirp@^4.0.1:
96619629
version "4.0.1"
96629630
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-4.0.1.tgz#b2fe35f8dca63183cd3b86883ecc8f720ea96ae6"
@@ -10483,11 +10451,6 @@ string_decoder@^1.1.1:
1048310451
dependencies:
1048410452
safe-buffer "~5.2.0"
1048510453

10486-
string_decoder@~0.10.x:
10487-
version "0.10.31"
10488-
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
10489-
integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==
10490-
1049110454
string_decoder@~1.1.1:
1049210455
version "1.1.1"
1049310456
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
@@ -10649,14 +10612,6 @@ throttleit@^1.0.0:
1064910612
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.1.tgz#304ec51631c3b770c65c6c6f76938b384000f4d5"
1065010613
integrity sha512-vDZpf9Chs9mAdfY046mcPt8fg5QSZr37hEH4TXYBnDF+izxgrbRGUAAaBvIk/fJm9aOFCGFd1EsNg5AZCbnQCQ==
1065110614

10652-
through2@^2.0.1:
10653-
version "2.0.5"
10654-
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"
10655-
integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==
10656-
dependencies:
10657-
readable-stream "~2.3.6"
10658-
xtend "~4.0.1"
10659-
1066010615
through@^2.3.8:
1066110616
version "2.3.8"
1066210617
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
@@ -10667,6 +10622,14 @@ thunky@^1.0.2:
1066710622
resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d"
1066810623
integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==
1066910624

10625+
tinyglobby@^0.2.10:
10626+
version "0.2.10"
10627+
resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.10.tgz#e712cf2dc9b95a1f5c5bbd159720e15833977a0f"
10628+
integrity sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==
10629+
dependencies:
10630+
fdir "^6.4.2"
10631+
picomatch "^4.0.2"
10632+
1067010633
tldts-core@^6.1.59:
1067110634
version "6.1.59"
1067210635
resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-6.1.59.tgz#95d1076ed9ea36f81493be515ad9d3e916440126"
@@ -11396,11 +11359,6 @@ xmlchars@^2.2.0:
1139611359
resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb"
1139711360
integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==
1139811361

11399-
xtend@~4.0.1:
11400-
version "4.0.2"
11401-
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
11402-
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
11403-
1140411362
y18n@^5.0.5:
1140511363
version "5.0.8"
1140611364
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
@@ -11421,12 +11379,7 @@ [email protected], yargs-parser@^21.1.1:
1142111379
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
1142211380
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==
1142311381

11424-
yargs-parser@^20.2.2:
11425-
version "20.2.9"
11426-
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee"
11427-
integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==
11428-
11429-
[email protected], yargs@^17.2.1, yargs@^17.3.1:
11382+
[email protected], yargs@^17.2.1, yargs@^17.3.1, yargs@^17.7.2:
1143011383
version "17.7.2"
1143111384
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269"
1143211385
integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==
@@ -11439,19 +11392,6 @@ [email protected], yargs@^17.2.1, yargs@^17.3.1:
1143911392
y18n "^5.0.5"
1144011393
yargs-parser "^21.1.1"
1144111394

11442-
yargs@^16.1.0:
11443-
version "16.2.0"
11444-
resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66"
11445-
integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==
11446-
dependencies:
11447-
cliui "^7.0.2"
11448-
escalade "^3.1.1"
11449-
get-caller-file "^2.0.5"
11450-
require-directory "^2.1.1"
11451-
string-width "^4.2.0"
11452-
y18n "^5.0.5"
11453-
yargs-parser "^20.2.2"
11454-
1145511395
yauzl@^2.10.0:
1145611396
version "2.10.0"
1145711397
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"

0 commit comments

Comments
 (0)