@bigcommerce/stencil-cli 7.2.0 → 7.2.2

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.
@@ -65,6 +65,7 @@ class ScssValidator {
65
65
  const filePath = item[1].slice(1, -1);
66
66
  const fileName = this.tryToResolveCssFileLocation(filePath);
67
67
  if (
68
+ fileName &&
68
69
  !this.isStyleSheetAComment(content, filePath) &&
69
70
  !cssFiles.includes(fileName)
70
71
  ) {
@@ -107,6 +108,9 @@ class ScssValidator {
107
108
  for (const location of possibleLocations) {
108
109
  const fullFilePath = path.join(this.themePath, location);
109
110
  if (fs.existsSync(fullFilePath)) {
111
+ if (fullFilePath.endsWith('.css')) {
112
+ return null;
113
+ }
110
114
  if (!this.isRootCssFile(location)) {
111
115
  return this.getCssFileWithoutRootFolder(location);
112
116
  }
package/lib/cliCommon.js CHANGED
@@ -40,7 +40,7 @@ function printNetworkError(config) {
40
40
  * @returns {void}
41
41
  */
42
42
  function printCliResultError(error) {
43
- console.log(`\n\n${'not ok'.red} -- ${error || 'Unknown error'}\n`);
43
+ console.error(`\n\n${'not ok'.red} -- ${error || 'Unknown error'}\n`);
44
44
 
45
45
  if (error && Array.isArray(error.messages)) {
46
46
  for (const item of error.messages) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "7.2.0",
3
+ "version": "7.2.2",
4
4
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -48,7 +48,7 @@
48
48
  "package-lock.json"
49
49
  ],
50
50
  "dependencies": {
51
- "@bigcommerce/stencil-paper": "4.2.1",
51
+ "@bigcommerce/stencil-paper": "4.10.4",
52
52
  "@bigcommerce/stencil-styles": "5.1.0",
53
53
  "@hapi/boom": "^10.0.0",
54
54
  "@hapi/glue": "^8.0.0",
@@ -79,6 +79,7 @@
79
79
  "object-to-spawn-args": "^2.0.0",
80
80
  "parse-json": "^5.2.0",
81
81
  "postcss": "^8.4.21",
82
+ "postcss-safe-parser": "^6.0.0",
82
83
  "postcss-scss": "^4.0.6",
83
84
  "progress": "^2.0.3",
84
85
  "recursive-readdir": "^2.2.2",