@openeuropa/bcl-builder 1.10.6 → 1.10.7

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/scripts/styles.js +18 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-builder",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "1.10.6",
5
+ "version": "1.10.7",
6
6
  "description": "Bootstrap Component Library builder",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -37,5 +37,5 @@
37
37
  "engines": {
38
38
  "node": ">=14.0.0"
39
39
  },
40
- "gitHead": "f2c1911b328b12531079c209ecada73a505713c2"
40
+ "gitHead": "5f7e5c2fd90eceb81c0ffcf52dcf8e3921c3acae"
41
41
  }
package/scripts/styles.js CHANGED
@@ -49,7 +49,7 @@ const buildStyles = (entry, dest, options) => {
49
49
  postcssSourceMap = options.sourceMap; // as a file
50
50
  }
51
51
 
52
- const sassResult = sass.renderSync({
52
+ const renderOptions = {
53
53
  file: entry,
54
54
  outFile: dest,
55
55
  noErrorCss: true,
@@ -61,7 +61,23 @@ const buildStyles = (entry, dest, options) => {
61
61
  path.resolve(process.cwd(), "node_modules"),
62
62
  ...(options.includePaths || []),
63
63
  ],
64
- });
64
+ };
65
+
66
+ const silencedDeprecations = Array.isArray(options.silenceDeprecations)
67
+ ? options.silenceDeprecations
68
+ : undefined;
69
+
70
+ if (silencedDeprecations && silencedDeprecations.length) {
71
+ renderOptions.silenceDeprecations = silencedDeprecations;
72
+ }
73
+
74
+ if (typeof options.quietDeps !== "undefined") {
75
+ renderOptions.quietDeps = options.quietDeps;
76
+ } else if (silencedDeprecations && silencedDeprecations.length) {
77
+ renderOptions.quietDeps = true;
78
+ }
79
+
80
+ const sassResult = sass.renderSync(renderOptions);
65
81
 
66
82
  const processor = postcss(plugins);
67
83
  if (options.prefix) {