@tramvai/cli 2.119.2 → 2.119.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/schema.json CHANGED
@@ -1078,6 +1078,112 @@
1078
1078
  "title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
1079
1079
  "additionalProperties": true,
1080
1080
  "type": "object"
1081
+ },
1082
+ "watchOptions": {
1083
+ "title": "Configure https://webpack.js.org/configuration/watch/#watchoptions",
1084
+ "description": "For OSX users and big projects it's recommended to enable watch polling, e.g. `{ poll: 1000 }`, more info - https://github.com/webpack/watchpack/issues/222",
1085
+ "type": "object",
1086
+ "properties": {
1087
+ "aggregateTimeout": {
1088
+ "description": "Delay the rebuilt after the first change. Value is a time in ms.",
1089
+ "type": "number"
1090
+ },
1091
+ "followSymlinks": {
1092
+ "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').",
1093
+ "type": "boolean"
1094
+ },
1095
+ "ignored": {
1096
+ "description": "Ignore some files from watching (glob pattern or regexp).",
1097
+ "anyOf": [
1098
+ {
1099
+ "type": "array",
1100
+ "items": {
1101
+ "type": "string"
1102
+ }
1103
+ },
1104
+ {
1105
+ "type": "object",
1106
+ "properties": {
1107
+ "exec": {
1108
+ "type": "object",
1109
+ "additionalProperties": false
1110
+ },
1111
+ "test": {
1112
+ "type": "object",
1113
+ "additionalProperties": false
1114
+ },
1115
+ "source": {
1116
+ "type": "string"
1117
+ },
1118
+ "global": {
1119
+ "type": "boolean"
1120
+ },
1121
+ "ignoreCase": {
1122
+ "type": "boolean"
1123
+ },
1124
+ "multiline": {
1125
+ "type": "boolean"
1126
+ },
1127
+ "lastIndex": {
1128
+ "type": "number"
1129
+ },
1130
+ "compile": {
1131
+ "type": "object",
1132
+ "additionalProperties": false
1133
+ },
1134
+ "flags": {
1135
+ "type": "string"
1136
+ },
1137
+ "sticky": {
1138
+ "type": "boolean"
1139
+ },
1140
+ "unicode": {
1141
+ "type": "boolean"
1142
+ },
1143
+ "dotAll": {
1144
+ "type": "boolean"
1145
+ },
1146
+ "__@match@8167": {
1147
+ "type": "object",
1148
+ "additionalProperties": false
1149
+ },
1150
+ "__@replace@8169": {
1151
+ "type": "object",
1152
+ "additionalProperties": false
1153
+ },
1154
+ "__@search@8172": {
1155
+ "type": "object",
1156
+ "additionalProperties": false
1157
+ },
1158
+ "__@split@8174": {
1159
+ "type": "object",
1160
+ "additionalProperties": false
1161
+ },
1162
+ "__@matchAll@8176": {
1163
+ "type": "object",
1164
+ "additionalProperties": false
1165
+ }
1166
+ },
1167
+ "additionalProperties": false
1168
+ },
1169
+ {
1170
+ "type": "string"
1171
+ }
1172
+ ]
1173
+ },
1174
+ "poll": {
1175
+ "description": "Enable polling mode for watching.",
1176
+ "type": [
1177
+ "number",
1178
+ "boolean"
1179
+ ]
1180
+ },
1181
+ "stdin": {
1182
+ "description": "Stop watching when stdin stream has ended.",
1183
+ "type": "boolean"
1184
+ }
1185
+ },
1186
+ "additionalProperties": false
1081
1187
  }
1082
1188
  },
1083
1189
  "additionalProperties": false
@@ -1613,6 +1719,112 @@
1613
1719
  "title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
1614
1720
  "additionalProperties": true,
1615
1721
  "type": "object"
1722
+ },
1723
+ "watchOptions": {
1724
+ "title": "Configure https://webpack.js.org/configuration/watch/#watchoptions",
1725
+ "description": "For OSX users and big projects it's recommended to enable watch polling, e.g. `{ poll: 1000 }`, more info - https://github.com/webpack/watchpack/issues/222",
1726
+ "type": "object",
1727
+ "properties": {
1728
+ "aggregateTimeout": {
1729
+ "description": "Delay the rebuilt after the first change. Value is a time in ms.",
1730
+ "type": "number"
1731
+ },
1732
+ "followSymlinks": {
1733
+ "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').",
1734
+ "type": "boolean"
1735
+ },
1736
+ "ignored": {
1737
+ "description": "Ignore some files from watching (glob pattern or regexp).",
1738
+ "anyOf": [
1739
+ {
1740
+ "type": "array",
1741
+ "items": {
1742
+ "type": "string"
1743
+ }
1744
+ },
1745
+ {
1746
+ "type": "object",
1747
+ "properties": {
1748
+ "exec": {
1749
+ "type": "object",
1750
+ "additionalProperties": false
1751
+ },
1752
+ "test": {
1753
+ "type": "object",
1754
+ "additionalProperties": false
1755
+ },
1756
+ "source": {
1757
+ "type": "string"
1758
+ },
1759
+ "global": {
1760
+ "type": "boolean"
1761
+ },
1762
+ "ignoreCase": {
1763
+ "type": "boolean"
1764
+ },
1765
+ "multiline": {
1766
+ "type": "boolean"
1767
+ },
1768
+ "lastIndex": {
1769
+ "type": "number"
1770
+ },
1771
+ "compile": {
1772
+ "type": "object",
1773
+ "additionalProperties": false
1774
+ },
1775
+ "flags": {
1776
+ "type": "string"
1777
+ },
1778
+ "sticky": {
1779
+ "type": "boolean"
1780
+ },
1781
+ "unicode": {
1782
+ "type": "boolean"
1783
+ },
1784
+ "dotAll": {
1785
+ "type": "boolean"
1786
+ },
1787
+ "__@match@8167": {
1788
+ "type": "object",
1789
+ "additionalProperties": false
1790
+ },
1791
+ "__@replace@8169": {
1792
+ "type": "object",
1793
+ "additionalProperties": false
1794
+ },
1795
+ "__@search@8172": {
1796
+ "type": "object",
1797
+ "additionalProperties": false
1798
+ },
1799
+ "__@split@8174": {
1800
+ "type": "object",
1801
+ "additionalProperties": false
1802
+ },
1803
+ "__@matchAll@8176": {
1804
+ "type": "object",
1805
+ "additionalProperties": false
1806
+ }
1807
+ },
1808
+ "additionalProperties": false
1809
+ },
1810
+ {
1811
+ "type": "string"
1812
+ }
1813
+ ]
1814
+ },
1815
+ "poll": {
1816
+ "description": "Enable polling mode for watching.",
1817
+ "type": [
1818
+ "number",
1819
+ "boolean"
1820
+ ]
1821
+ },
1822
+ "stdin": {
1823
+ "description": "Stop watching when stdin stream has ended.",
1824
+ "type": "boolean"
1825
+ }
1826
+ },
1827
+ "additionalProperties": false
1616
1828
  }
1617
1829
  },
1618
1830
  "additionalProperties": false
@@ -2148,6 +2360,112 @@
2148
2360
  "title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
2149
2361
  "additionalProperties": true,
2150
2362
  "type": "object"
2363
+ },
2364
+ "watchOptions": {
2365
+ "title": "Configure https://webpack.js.org/configuration/watch/#watchoptions",
2366
+ "description": "For OSX users and big projects it's recommended to enable watch polling, e.g. `{ poll: 1000 }`, more info - https://github.com/webpack/watchpack/issues/222",
2367
+ "type": "object",
2368
+ "properties": {
2369
+ "aggregateTimeout": {
2370
+ "description": "Delay the rebuilt after the first change. Value is a time in ms.",
2371
+ "type": "number"
2372
+ },
2373
+ "followSymlinks": {
2374
+ "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').",
2375
+ "type": "boolean"
2376
+ },
2377
+ "ignored": {
2378
+ "description": "Ignore some files from watching (glob pattern or regexp).",
2379
+ "anyOf": [
2380
+ {
2381
+ "type": "array",
2382
+ "items": {
2383
+ "type": "string"
2384
+ }
2385
+ },
2386
+ {
2387
+ "type": "object",
2388
+ "properties": {
2389
+ "exec": {
2390
+ "type": "object",
2391
+ "additionalProperties": false
2392
+ },
2393
+ "test": {
2394
+ "type": "object",
2395
+ "additionalProperties": false
2396
+ },
2397
+ "source": {
2398
+ "type": "string"
2399
+ },
2400
+ "global": {
2401
+ "type": "boolean"
2402
+ },
2403
+ "ignoreCase": {
2404
+ "type": "boolean"
2405
+ },
2406
+ "multiline": {
2407
+ "type": "boolean"
2408
+ },
2409
+ "lastIndex": {
2410
+ "type": "number"
2411
+ },
2412
+ "compile": {
2413
+ "type": "object",
2414
+ "additionalProperties": false
2415
+ },
2416
+ "flags": {
2417
+ "type": "string"
2418
+ },
2419
+ "sticky": {
2420
+ "type": "boolean"
2421
+ },
2422
+ "unicode": {
2423
+ "type": "boolean"
2424
+ },
2425
+ "dotAll": {
2426
+ "type": "boolean"
2427
+ },
2428
+ "__@match@8167": {
2429
+ "type": "object",
2430
+ "additionalProperties": false
2431
+ },
2432
+ "__@replace@8169": {
2433
+ "type": "object",
2434
+ "additionalProperties": false
2435
+ },
2436
+ "__@search@8172": {
2437
+ "type": "object",
2438
+ "additionalProperties": false
2439
+ },
2440
+ "__@split@8174": {
2441
+ "type": "object",
2442
+ "additionalProperties": false
2443
+ },
2444
+ "__@matchAll@8176": {
2445
+ "type": "object",
2446
+ "additionalProperties": false
2447
+ }
2448
+ },
2449
+ "additionalProperties": false
2450
+ },
2451
+ {
2452
+ "type": "string"
2453
+ }
2454
+ ]
2455
+ },
2456
+ "poll": {
2457
+ "description": "Enable polling mode for watching.",
2458
+ "type": [
2459
+ "number",
2460
+ "boolean"
2461
+ ]
2462
+ },
2463
+ "stdin": {
2464
+ "description": "Stop watching when stdin stream has ended.",
2465
+ "type": "boolean"
2466
+ }
2467
+ },
2468
+ "additionalProperties": false
2151
2469
  }
2152
2470
  },
2153
2471
  "additionalProperties": false
@@ -54,6 +54,13 @@ export const webpackClientConfig = ({
54
54
  config.watchOptions({
55
55
  ignored: /.*/,
56
56
  });
57
+ } else {
58
+ config.watchOptions(
59
+ configManager.webpack.watchOptions ?? {
60
+ aggregateTimeout: 5,
61
+ ignored: ['**/node_modules/**', '**/.git/**'],
62
+ }
63
+ );
57
64
  }
58
65
 
59
66
  config.output
@@ -43,6 +43,13 @@ export const webpackServerConfig = ({
43
43
  config.watchOptions({
44
44
  ignored: /.*/,
45
45
  });
46
+ } else {
47
+ config.watchOptions(
48
+ configManager.webpack.watchOptions ?? {
49
+ aggregateTimeout: 5,
50
+ ignored: ['**/node_modules/**', '**/.git/**'],
51
+ }
52
+ );
46
53
  }
47
54
 
48
55
  config.externals(