Commit 52a320e
committed
fix(@angular-devkit/build-angular): add validation to fileReplacement values
fileReplacement is meant to replace compilation source files (JavaScript or TypeScript) with other compilation source files in the build. With this change we add validation to fail the build when the files have unsupported extensions.
Closes #11451
(cherry picked from commit 424af28)1 parent 8a49506 commit 52a320e
File tree
3 files changed
+32
-16
lines changed- packages
- angular_devkit/build_angular/src
- browser
- server
- angular/cli/lib/config
3 files changed
+32
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | | - | |
| 1046 | + | |
| 1047 | + | |
1047 | 1048 | | |
1048 | 1049 | | |
1049 | | - | |
| 1050 | + | |
| 1051 | + | |
1050 | 1052 | | |
1051 | 1053 | | |
1052 | 1054 | | |
| |||
1059 | 1061 | | |
1060 | 1062 | | |
1061 | 1063 | | |
1062 | | - | |
| 1064 | + | |
| 1065 | + | |
1063 | 1066 | | |
1064 | 1067 | | |
1065 | | - | |
| 1068 | + | |
| 1069 | + | |
1066 | 1070 | | |
1067 | 1071 | | |
1068 | 1072 | | |
| |||
1931 | 1935 | | |
1932 | 1936 | | |
1933 | 1937 | | |
1934 | | - | |
| 1938 | + | |
| 1939 | + | |
1935 | 1940 | | |
1936 | 1941 | | |
1937 | | - | |
| 1942 | + | |
| 1943 | + | |
1938 | 1944 | | |
1939 | 1945 | | |
1940 | 1946 | | |
| |||
1947 | 1953 | | |
1948 | 1954 | | |
1949 | 1955 | | |
1950 | | - | |
| 1956 | + | |
| 1957 | + | |
1951 | 1958 | | |
1952 | 1959 | | |
1953 | | - | |
| 1960 | + | |
| 1961 | + | |
1954 | 1962 | | |
1955 | 1963 | | |
1956 | 1964 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
| 435 | + | |
| 436 | + | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| |||
444 | 446 | | |
445 | 447 | | |
446 | 448 | | |
447 | | - | |
| 449 | + | |
| 450 | + | |
448 | 451 | | |
449 | 452 | | |
450 | | - | |
| 453 | + | |
| 454 | + | |
451 | 455 | | |
452 | 456 | | |
453 | 457 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
| 266 | + | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
278 | | - | |
| 280 | + | |
| 281 | + | |
279 | 282 | | |
280 | 283 | | |
281 | | - | |
| 284 | + | |
| 285 | + | |
282 | 286 | | |
283 | 287 | | |
284 | 288 | | |
| |||
0 commit comments