With this change we add a migration to replace the deprecated shadow-piercing selector from `/deep/` with deprecated but recommended `::ng-deep`. The main motivation for this change is that the CSS optimizer CSSNano which is used by the Angular CLI no longer supports this non standard selector and causes build time errors due to the selector being minified incorrectly. However, CSSNano does support the recommended deprecated `::ng-deep` selector. Closes: #42196 PR Close #42214
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
 | |
| 
 | |
| ts_library(
 | |
|     name = "test_lib",
 | |
|     testonly = True,
 | |
|     srcs = glob(["**/*.ts"]),
 | |
|     data = [
 | |
|         "//packages/core/schematics:migrations.json",
 | |
|     ],
 | |
|     deps = [
 | |
|         "//packages/core/schematics/migrations/abstract-control-parent",
 | |
|         "//packages/core/schematics/migrations/activated-route-snapshot-fragment",
 | |
|         "//packages/core/schematics/migrations/can-activate-with-redirect-to",
 | |
|         "//packages/core/schematics/migrations/deep-shadow-piercing-selector",
 | |
|         "//packages/core/schematics/migrations/dynamic-queries",
 | |
|         "//packages/core/schematics/migrations/initial-navigation",
 | |
|         "//packages/core/schematics/migrations/missing-injectable",
 | |
|         "//packages/core/schematics/migrations/module-with-providers",
 | |
|         "//packages/core/schematics/migrations/move-document",
 | |
|         "//packages/core/schematics/migrations/native-view-encapsulation",
 | |
|         "//packages/core/schematics/migrations/navigation-extras-omissions",
 | |
|         "//packages/core/schematics/migrations/relative-link-resolution",
 | |
|         "//packages/core/schematics/migrations/renderer-to-renderer2",
 | |
|         "//packages/core/schematics/migrations/router-preserve-query-params",
 | |
|         "//packages/core/schematics/migrations/static-queries",
 | |
|         "//packages/core/schematics/migrations/template-var-assignment",
 | |
|         "//packages/core/schematics/migrations/undecorated-classes-with-decorated-fields",
 | |
|         "//packages/core/schematics/migrations/undecorated-classes-with-di",
 | |
|         "//packages/core/schematics/migrations/wait-for-async",
 | |
|         "//packages/core/schematics/migrations/xhr-factory",
 | |
|         "//packages/core/schematics/utils",
 | |
|         "@npm//@angular-devkit/core",
 | |
|         "@npm//@angular-devkit/schematics",
 | |
|         "@npm//@types/shelljs",
 | |
|         "@npm//tslint",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| jasmine_node_test(
 | |
|     name = "test",
 | |
|     deps = [
 | |
|         ":test_lib",
 | |
|         "@npm//shelljs",
 | |
|     ],
 | |
| )
 |