From a7f4cc1bfb52251268b916e26aa229c95b5f8668 Mon Sep 17 00:00:00 2001 From: pastelcyborg <168636120+pastelcyborg@users.noreply.github.com> Date: Mon, 12 Aug 2024 17:33:48 -0400 Subject: [PATCH] Add --silence-deprecation flag --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 89e6d7d86..ea650e42e 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "start": "yarn build && yarn serve", "build": "yarn build-scss && yarn build-js && yarn build-class-references", "build-tokens": "((style-dictionary build --verbose --config ./sd.config.json) || true)", - "build-scss": "yarn build-tokens && sass --load-path=node_modules --embed-sources --style=compressed scss:build/css && postcss --use autoprefixer --replace 'build/css/**/*.css' --map", - "build:essential": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed scss/build.scss:build/css/build.css scss/docs:build/css/docs && postcss --use autoprefixer --replace 'build/css/**/*.css' --map", + "build-scss": "yarn build-tokens && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss:build/css && postcss --use autoprefixer --replace 'build/css/**/*.css' --map", + "build:essential": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss/build.scss:build/css/build.css scss/docs:build/css/docs && postcss --use autoprefixer --replace 'build/css/**/*.css' --map", "build-js": "mkdir -p build/js/modules && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js build/js/modules && cp node_modules/@canonical/latest-news/dist/latest-news.js build/js/modules && cp node_modules/js-beautify/js/lib/beautify.js node_modules/js-beautify/js/lib/beautify-html.js node_modules/js-beautify/js/lib/beautify-css.js build/js/modules", "build-class-references": "node scripts/create-class-references.js", "cypress:open": "cypress open", @@ -42,8 +42,8 @@ "test": "yarn lint-scss && yarn lint-prettier && yarn test-spelling && yarn test-scss && yarn jest", "lint-prettier": "prettier -c .", "lint-scss": "stylelint 'scss/**/*.scss'", - "watch:scss": "sass --load-path=node_modules --embed-sources --style=compressed scss:build/css --watch", - "watch:essential": "sass --load-path=node_modules --embed-sources --style=compressed scss/build.scss:build/css/build.css --watch", + "watch:scss": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss:build/css --watch", + "watch:essential": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss/build.scss:build/css/build.css --watch", "watch": "yarn build && yarn watch:scss", "clean": "rm -rf build docs/static/css node_modules/ yarn-error.log", "percy": "percy snapshot snapshots.js",