diff --git a/feature-libs/asm/schematics/add-asm/__snapshots__/index_spec.ts.snap b/feature-libs/asm/schematics/add-asm/__snapshots__/index_spec.ts.snap index 01f5ca994ee..a9b79beaa9d 100644 --- a/feature-libs/asm/schematics/add-asm/__snapshots__/index_spec.ts.snap +++ b/feature-libs/asm/schematics/add-asm/__snapshots__/index_spec.ts.snap @@ -180,12 +180,7 @@ exports[`Spartacus Asm schematics: ng-add Asm feature general setup styling shou "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/cart/schematics/add-cart/__snapshots__/index_spec.ts.snap b/feature-libs/cart/schematics/add-cart/__snapshots__/index_spec.ts.snap index c67d194feef..ea621f47db6 100644 --- a/feature-libs/cart/schematics/add-cart/__snapshots__/index_spec.ts.snap +++ b/feature-libs/cart/schematics/add-cart/__snapshots__/index_spec.ts.snap @@ -203,12 +203,7 @@ exports[`Spartacus Cart schematics: ng-add Cart Base feature general setup styli "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -401,12 +396,7 @@ exports[`Spartacus Cart schematics: ng-add Cart Import Export feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -599,12 +589,7 @@ exports[`Spartacus Cart schematics: ng-add Quick Order feature general setup sty "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -797,12 +782,7 @@ exports[`Spartacus Cart schematics: ng-add Saved Cart feature general setup styl "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -1005,12 +985,7 @@ exports[`Spartacus Cart schematics: ng-add Wish List feature general setup styli "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/checkout/schematics/add-checkout/__snapshots__/index_spec.ts.snap b/feature-libs/checkout/schematics/add-checkout/__snapshots__/index_spec.ts.snap index cb457bd1dd3..e4793214ff2 100644 --- a/feature-libs/checkout/schematics/add-checkout/__snapshots__/index_spec.ts.snap +++ b/feature-libs/checkout/schematics/add-checkout/__snapshots__/index_spec.ts.snap @@ -255,12 +255,7 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature b2b general setu "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -453,12 +448,7 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature base general set "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -745,12 +735,7 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature scheduled replen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/customer-ticketing/schematics/add-customer-ticketing/__snapshots__/index_spec.ts.snap b/feature-libs/customer-ticketing/schematics/add-customer-ticketing/__snapshots__/index_spec.ts.snap index fe59739e446..0b1347bbe64 100644 --- a/feature-libs/customer-ticketing/schematics/add-customer-ticketing/__snapshots__/index_spec.ts.snap +++ b/feature-libs/customer-ticketing/schematics/add-customer-ticketing/__snapshots__/index_spec.ts.snap @@ -180,12 +180,7 @@ exports[`Spartacus Customer Ticketing schematics: ng-add Customer Ticketing feat "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/estimated-delivery-date/schematics/add-estimated-delivery-date/__snapshots__/index_spec.ts.snap b/feature-libs/estimated-delivery-date/schematics/add-estimated-delivery-date/__snapshots__/index_spec.ts.snap index 28f5bdbf7cf..3c5342b106e 100644 --- a/feature-libs/estimated-delivery-date/schematics/add-estimated-delivery-date/__snapshots__/index_spec.ts.snap +++ b/feature-libs/estimated-delivery-date/schematics/add-estimated-delivery-date/__snapshots__/index_spec.ts.snap @@ -166,12 +166,7 @@ exports[`Spartacus Estimated-Delivery-Date schematics: ng-add Estimated-Delivery "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/order/schematics/add-order/__snapshots__/index_spec.ts.snap b/feature-libs/order/schematics/add-order/__snapshots__/index_spec.ts.snap index 0edcd37d7c4..a13e36b5d24 100644 --- a/feature-libs/order/schematics/add-order/__snapshots__/index_spec.ts.snap +++ b/feature-libs/order/schematics/add-order/__snapshots__/index_spec.ts.snap @@ -180,12 +180,7 @@ exports[`Spartacus Order schematics: ng-add Order feature general setup styling "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/organization/schematics/add-organization/__snapshots__/index_spec.ts.snap b/feature-libs/organization/schematics/add-organization/__snapshots__/index_spec.ts.snap index eec83f0b0fb..e7aa6241cdb 100644 --- a/feature-libs/organization/schematics/add-organization/__snapshots__/index_spec.ts.snap +++ b/feature-libs/organization/schematics/add-organization/__snapshots__/index_spec.ts.snap @@ -218,12 +218,7 @@ exports[`Spartacus Organization schematics: ng-add Account summary feature gener "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -451,12 +446,7 @@ exports[`Spartacus Organization schematics: ng-add Administration feature genera "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -684,12 +674,7 @@ exports[`Spartacus Organization schematics: ng-add Order approval feature genera "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -917,12 +902,7 @@ exports[`Spartacus Organization schematics: ng-add Unit order feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -1150,12 +1130,7 @@ exports[`Spartacus Organization schematics: ng-add User registration feature gen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/pdf-invoices/schematics/add-pdf-invoices/__snapshots__/index_spec.ts.snap b/feature-libs/pdf-invoices/schematics/add-pdf-invoices/__snapshots__/index_spec.ts.snap index 882ed8aac0d..bb2af1f478f 100644 --- a/feature-libs/pdf-invoices/schematics/add-pdf-invoices/__snapshots__/index_spec.ts.snap +++ b/feature-libs/pdf-invoices/schematics/add-pdf-invoices/__snapshots__/index_spec.ts.snap @@ -129,12 +129,7 @@ exports[`Spartacus PDF Invoices schematics: ng-add PDF Invoices feature general "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/pickup-in-store/schematics/add-pickup-in-store/__snapshots__/index_spec.ts.snap b/feature-libs/pickup-in-store/schematics/add-pickup-in-store/__snapshots__/index_spec.ts.snap index bba802ecf28..8e23af14e76 100644 --- a/feature-libs/pickup-in-store/schematics/add-pickup-in-store/__snapshots__/index_spec.ts.snap +++ b/feature-libs/pickup-in-store/schematics/add-pickup-in-store/__snapshots__/index_spec.ts.snap @@ -183,12 +183,7 @@ exports[`Spartacus Pickup in Store schematics: ng-add Pick Up In Store feature g "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/product-configurator/schematics/add-product-configurator/__snapshots__/index_spec.ts.snap b/feature-libs/product-configurator/schematics/add-product-configurator/__snapshots__/index_spec.ts.snap index 96e810a01e9..db4a1af1b47 100644 --- a/feature-libs/product-configurator/schematics/add-product-configurator/__snapshots__/index_spec.ts.snap +++ b/feature-libs/product-configurator/schematics/add-product-configurator/__snapshots__/index_spec.ts.snap @@ -249,12 +249,7 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -499,12 +494,7 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -728,12 +718,7 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -923,12 +908,7 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/product-multi-dimensional/schematics/add-product-multi-dimensional/__snapshots__/index_spec.ts.snap b/feature-libs/product-multi-dimensional/schematics/add-product-multi-dimensional/__snapshots__/index_spec.ts.snap index e6bcafed603..e6be47cb95d 100644 --- a/feature-libs/product-multi-dimensional/schematics/add-product-multi-dimensional/__snapshots__/index_spec.ts.snap +++ b/feature-libs/product-multi-dimensional/schematics/add-product-multi-dimensional/__snapshots__/index_spec.ts.snap @@ -131,12 +131,7 @@ exports[`Spartacus Product Multi-Dimensional schematics: ng-add list feature gen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -329,12 +324,7 @@ exports[`Spartacus Product Multi-Dimensional schematics: ng-add selector feature "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/product/schematics/add-product/__snapshots__/index_spec.ts.snap b/feature-libs/product/schematics/add-product/__snapshots__/index_spec.ts.snap index 3ae4e6caee8..fa02b6924ee 100644 --- a/feature-libs/product/schematics/add-product/__snapshots__/index_spec.ts.snap +++ b/feature-libs/product/schematics/add-product/__snapshots__/index_spec.ts.snap @@ -218,12 +218,7 @@ exports[`Spartacus Product schematics: ng-add BulkPricing feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -451,12 +446,7 @@ exports[`Spartacus Product schematics: ng-add FutureStock feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -649,12 +639,7 @@ exports[`Spartacus Product schematics: ng-add ImageZoom feature general setup st "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -847,12 +832,7 @@ exports[`Spartacus Product schematics: ng-add Variants feature general setup sty "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/qualtrics/schematics/add-qualtrics/__snapshots__/index_spec.ts.snap b/feature-libs/qualtrics/schematics/add-qualtrics/__snapshots__/index_spec.ts.snap index 8f69d21e4f3..67e46070fd2 100644 --- a/feature-libs/qualtrics/schematics/add-qualtrics/__snapshots__/index_spec.ts.snap +++ b/feature-libs/qualtrics/schematics/add-qualtrics/__snapshots__/index_spec.ts.snap @@ -167,12 +167,7 @@ exports[`Spartacus Qualtrics schematics: ng-add Qualtrics feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/quote/schematics/add-quote/__snapshots__/index_spec.ts.snap b/feature-libs/quote/schematics/add-quote/__snapshots__/index_spec.ts.snap index 4a2ff3b124b..068dc4cea51 100644 --- a/feature-libs/quote/schematics/add-quote/__snapshots__/index_spec.ts.snap +++ b/feature-libs/quote/schematics/add-quote/__snapshots__/index_spec.ts.snap @@ -238,12 +238,7 @@ exports[`Spartacus Quote schematics: ng-add Quote feature general setup styling "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/requested-delivery-date/schematics/add-requested-delivery-date/__snapshots__/index_spec.ts.snap b/feature-libs/requested-delivery-date/schematics/add-requested-delivery-date/__snapshots__/index_spec.ts.snap index c32179fd04c..abe589e6562 100644 --- a/feature-libs/requested-delivery-date/schematics/add-requested-delivery-date/__snapshots__/index_spec.ts.snap +++ b/feature-libs/requested-delivery-date/schematics/add-requested-delivery-date/__snapshots__/index_spec.ts.snap @@ -129,12 +129,7 @@ exports[`Spartacus Requested Delivery Date schematics: ng-add Requested Delivery "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/smartedit/schematics/add-smartedit/__snapshots__/index_spec.ts.snap b/feature-libs/smartedit/schematics/add-smartedit/__snapshots__/index_spec.ts.snap index 92e9fd6df7e..15c00a39401 100644 --- a/feature-libs/smartedit/schematics/add-smartedit/__snapshots__/index_spec.ts.snap +++ b/feature-libs/smartedit/schematics/add-smartedit/__snapshots__/index_spec.ts.snap @@ -150,12 +150,7 @@ exports[`Spartacus SmartEdit schematics: ng-add SmartEdit feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/storefinder/schematics/add-storefinder/__snapshots__/index_spec.ts.snap b/feature-libs/storefinder/schematics/add-storefinder/__snapshots__/index_spec.ts.snap index 78e2018f76e..32a0f998a1f 100644 --- a/feature-libs/storefinder/schematics/add-storefinder/__snapshots__/index_spec.ts.snap +++ b/feature-libs/storefinder/schematics/add-storefinder/__snapshots__/index_spec.ts.snap @@ -183,12 +183,7 @@ exports[`Spartacus Storefinder schematics: ng-add Storefinder feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/feature-libs/user/schematics/add-user/__snapshots__/index_spec.ts.snap b/feature-libs/user/schematics/add-user/__snapshots__/index_spec.ts.snap index 7a48bcf299f..0061506ff7e 100644 --- a/feature-libs/user/schematics/add-user/__snapshots__/index_spec.ts.snap +++ b/feature-libs/user/schematics/add-user/__snapshots__/index_spec.ts.snap @@ -211,12 +211,7 @@ exports[`Spartacus User schematics: ng-add User Profile feature general setup st "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -406,12 +401,7 @@ exports[`Spartacus User schematics: ng-add User-Account feature general setup st "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/integration-libs/epd-visualization/schematics/add-epd-visualization/__snapshots__/index_spec.ts.snap b/integration-libs/epd-visualization/schematics/add-epd-visualization/__snapshots__/index_spec.ts.snap index 4589b6aa19d..4d7e7cf5a90 100644 --- a/integration-libs/epd-visualization/schematics/add-epd-visualization/__snapshots__/index_spec.ts.snap +++ b/integration-libs/epd-visualization/schematics/add-epd-visualization/__snapshots__/index_spec.ts.snap @@ -242,12 +242,7 @@ exports[`Spartacus SAP EPD Visualization integration schematics: ng-add SAP EPD "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/integration-libs/opf/schematics/add-opf/__snapshots__/index_spec.ts.snap b/integration-libs/opf/schematics/add-opf/__snapshots__/index_spec.ts.snap index 2c3b5fc62ef..e3e52365fe1 100644 --- a/integration-libs/opf/schematics/add-opf/__snapshots__/index_spec.ts.snap +++ b/integration-libs/opf/schematics/add-opf/__snapshots__/index_spec.ts.snap @@ -176,12 +176,7 @@ exports[`Spartacus SAP OPF integration schematics: ng-add SAP OPF feature genera "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/projects/schematics/src/add-spartacus/index.ts b/projects/schematics/src/add-spartacus/index.ts index bf115074d03..0d9fcf5aa9f 100644 --- a/projects/schematics/src/add-spartacus/index.ts +++ b/projects/schematics/src/add-spartacus/index.ts @@ -359,6 +359,42 @@ Note: Since version 17, Angular's command "ng new" by default creates an app wit }; } +function createSassSilenceDeprecations( + context: SchematicContext, + originalStylePreprocessorOptions: { + sass?: { silenceDeprecations?: string[] }; + [key: string]: any; + } = {} +): { sass: { silenceDeprecations: string[] } } { + const DEFAULT_SILENCE_DEPRECATIONS = [ + // We need to silence the deprecation warning for the `@import` directive + // because `@import` is used in the Spartacus styles and in the Bootstrap 4 styles + // (which are imported by the Spartacus styles). + // Otherwise, since Angular v19, all apps would have a wall of deprecation warnings + // in the console when running `ng serve`. + // + // CXSPA-447: Eventually we should remove all the `@import` directives from the Spartacus styles + // and drop the usage of Bootstrap 4, and then we can remove the `silenceDeprecations` option. + 'import', + ]; + + context.logger.warn( + `⚠️ Warnings about the Sass '@import' usage were silenced, because Sass '@import' is used in Spartacus and Bootstrap 4 styles. To enable warnings back, in your 'angular.json' file remove the item "import" from the array at section 'architect.build.options.stylePreprocessorOptions.sass.silenceDeprecations'. For more, see: https://sass-lang.com/blog/import-is-deprecated and https://angular.dev/reference/configs/workspace-config#style-preprocessor-options` + ); + + return { + sass: { + ...(originalStylePreprocessorOptions.sass || {}), + silenceDeprecations: Array.from( + new Set([ + ...(originalStylePreprocessorOptions.sass?.silenceDeprecations || []), + ...DEFAULT_SILENCE_DEPRECATIONS, + ]) + ), + }, + }; +} + export function createStylePreprocessorOptions( options?: SpartacusOptions ): Rule { @@ -377,9 +413,17 @@ export function createStylePreprocessorOptions( const buildStylePreprocessorOptions = createStylePreprocessorOptionsArray( (architectBuild?.options as any)?.stylePreprocessorOptions ); + // Apply silenceDeprecations only for `build` configuration (but not `test` - it's not supported there) + const buildSassOptions = createSassSilenceDeprecations( + context, + buildStylePreprocessorOptions + ); const buildOptions = { ...architectBuild?.options, - stylePreprocessorOptions: buildStylePreprocessorOptions, + stylePreprocessorOptions: { + ...buildStylePreprocessorOptions, + ...buildSassOptions, + }, }; // `test` architect section @@ -392,10 +436,6 @@ export function createStylePreprocessorOptions( stylePreprocessorOptions: testStylePreprocessorOptions, }; - context.logger.warn( - `⚠️ Warnings about the Sass '@import' usage were silenced, because Sass '@import' is used in Spartacus and Bootstrap 4 styles. To enable warnings back, in your angular.json remove the "import" value from the array at section 'architect.build.options.stylePreprocessorOptions.sass.silenceDeprecations'. For more, see: https://sass-lang.com/blog/import-is-deprecated and https://angular.dev/reference/configs/workspace-config#style-preprocessor-options` - ); - const updatedAngularJson = { ...angularJson, projects: { @@ -427,13 +467,9 @@ export function createStylePreprocessorOptions( function createStylePreprocessorOptionsArray(angularJsonStylePreprocessorOptions: { includePaths?: string[]; - sass?: { - silenceDeprecations?: string[]; - }; [key: string]: any; }): { includePaths: string[]; - sass: { silenceDeprecations: string[] }; [key: string]: any; } { if (!angularJsonStylePreprocessorOptions) { @@ -448,31 +484,9 @@ function createStylePreprocessorOptionsArray(angularJsonStylePreprocessorOptions ]) ); - const DEFAULT_SILENCE_DEPRECATIONS = [ - // We need to silence the deprecation warning for the `@import` directive - // because `@import` is used in the Spartacus styles and in the Bootstrap 4 styles - // (which are imported by the Spartacus styles). - // Otherwise, since Angular v19, all apps would have a wall of deprecation warnings - // in the console when running `ng serve`. - // - // CXSPA-447: Eventually we should remove all the `@import` directives from the Spartacus styles - // and drop the usage of Bootstrap 4, and then we can remove the `silenceDeprecations` option. - 'import', - ]; - const silenceDeprecations = Array.from( - new Set([ - ...(angularJsonStylePreprocessorOptions.sass?.silenceDeprecations || []), - ...DEFAULT_SILENCE_DEPRECATIONS, - ]) - ); - return { ...angularJsonStylePreprocessorOptions, includePaths, - sass: { - ...angularJsonStylePreprocessorOptions.sass, - silenceDeprecations, - }, }; } diff --git a/projects/schematics/src/add-ssr/__snapshots__/index_spec.ts.snap b/projects/schematics/src/add-ssr/__snapshots__/index_spec.ts.snap index 831622378ac..d25da0402b3 100644 --- a/projects/schematics/src/add-ssr/__snapshots__/index_spec.ts.snap +++ b/projects/schematics/src/add-ssr/__snapshots__/index_spec.ts.snap @@ -106,11 +106,6 @@ exports[`add-ssr angular.json should be configured properly 1`] = ` "includePaths": [ "node_modules/", ], - "sass": { - "silenceDeprecations": [ - "import", - ], - }, }, "styles": [ "src/styles.scss", diff --git a/projects/schematics/src/shared/utils/__snapshots__/lib-utils_spec.ts.snap b/projects/schematics/src/shared/utils/__snapshots__/lib-utils_spec.ts.snap index c1eda2db1e9..52fb67f5e4a 100644 --- a/projects/schematics/src/shared/utils/__snapshots__/lib-utils_spec.ts.snap +++ b/projects/schematics/src/shared/utils/__snapshots__/lib-utils_spec.ts.snap @@ -245,12 +245,7 @@ exports[`Lib utils assets options should update angular.json file with assets 1` "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } @@ -389,12 +384,7 @@ exports[`Lib utils assets options should update angular.json file with assets 2` "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ], - "sass": { - "silenceDeprecations": [ - "import" - ] - } + ] } } } diff --git a/projects/schematics/src/shared/utils/__snapshots__/workspace-utils_spec.ts.snap b/projects/schematics/src/shared/utils/__snapshots__/workspace-utils_spec.ts.snap index 38036e4db6d..a1581715ed4 100644 --- a/projects/schematics/src/shared/utils/__snapshots__/workspace-utils_spec.ts.snap +++ b/projects/schematics/src/shared/utils/__snapshots__/workspace-utils_spec.ts.snap @@ -93,11 +93,6 @@ exports[`Workspace utils getProject should return project 1`] = ` "includePaths": [ "node_modules/", ], - "sass": { - "silenceDeprecations": [ - "import", - ], - }, }, "styles": [ "src/styles.scss", @@ -217,11 +212,6 @@ exports[`Workspace utils getProjectTargets should return project targets 1`] = ` "includePaths": [ "node_modules/", ], - "sass": { - "silenceDeprecations": [ - "import", - ], - }, }, "styles": [ "src/styles.scss",