diff --git a/lib/ScssCompiler.js b/lib/ScssCompiler.js index 03a307c..50a2b4d 100644 --- a/lib/ScssCompiler.js +++ b/lib/ScssCompiler.js @@ -18,7 +18,7 @@ class ScssCompiler { } activateNodeSassEngine() { - this.engine = require('node-sass'); + this.engine = require('@bigcommerce/node-sass'); } activateDartSassEngine() { diff --git a/package-lock.json b/package-lock.json index 8f5ba67..9446a78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "@bigcommerce/stencil-styles", - "version": "6.2.1", + "version": "6.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@bigcommerce/stencil-styles", - "version": "6.2.1", + "version": "6.2.2", "license": "BSD-4-Clause", "dependencies": { + "@bigcommerce/node-sass": "10.0.0", "async": "^3.2.6", "autoprefixer": "^10.4.20", "cheerio": "^1.0.0-rc.12", "lodash": "^4.17.21", - "node-sass": "git+ssh://git@github.com/bigcommerce-labs/node-sass.git", "postcss": "^8.4.45", "recursive-readdir": "^2.2.3", "sass": "^1.58.0", @@ -29,6 +29,9 @@ "node": ">=20.0.0" } }, + "@bigcommerce/node-sass@10.0.0": { + "extraneous": true + }, "node_modules/@babel/code-frame": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", @@ -247,6 +250,35 @@ "node": ">=6.9.0" } }, + "node_modules/@bigcommerce/node-sass": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@bigcommerce/node-sass/-/node-sass-10.0.0.tgz", + "integrity": "sha512-fXogaIE3nTnucGApXXrQV+ZDQpj+c8V4aJM/qeCXOTJUt7we46hGSQkoPJLETdvPMqY5caStKvYF2oX3nZbBjg==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "async-foreach": "^0.1.3", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "gaze": "^1.0.0", + "get-stdin": "^4.0.1", + "glob": "^7.0.3", + "lodash": "^4.17.15", + "make-fetch-happen": "^15.0.2", + "meow": "^9.0.0", + "nan": "^2.17.0", + "node-gyp": "^11.4.2", + "sass-graph": "^4.0.1", + "stdout-stream": "^1.4.0", + "true-case-path": "^2.2.1" + }, + "bin": { + "node-sass": "bin/node-sass" + }, + "engines": { + "node": ">=20" + } + }, "node_modules/@eslint/eslintrc": { "version": "0.4.3", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", @@ -1381,10 +1413,10 @@ } }, "node_modules/cacache/node_modules/minimatch": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", - "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", - "license": "ISC", + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/brace-expansion": "^5.0.0" }, @@ -3325,9 +3357,9 @@ "optional": true }, "node_modules/node-gyp": { - "version": "11.4.2", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-11.4.2.tgz", - "integrity": "sha512-3gD+6zsrLQH7DyYOUIutaauuXrcyxeTPyQuZQCQoNPZMHMMS5m4y0xclNpvYzoK3VNzuyxT6eF4mkIL4WSZ1eQ==", + "version": "11.5.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-11.5.0.tgz", + "integrity": "sha512-ra7Kvlhxn5V9Slyus0ygMa2h+UqExPqUIkfk7Pc8QTLT956JLSy51uWFwHtIYy0vI8cB4BDhc/S03+880My/LQ==", "license": "MIT", "dependencies": { "env-paths": "^2.2.0", @@ -3520,34 +3552,6 @@ "integrity": "sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg==", "license": "MIT" }, - "node_modules/node-sass": { - "version": "9.0.0", - "resolved": "git+ssh://git@github.com/bigcommerce-labs/node-sass.git#e1004266211bba17142f0adee39a7c0f59d94331", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "async-foreach": "^0.1.3", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "lodash": "^4.17.15", - "make-fetch-happen": "^15.0.2", - "meow": "^9.0.0", - "nan": "^2.17.0", - "node-gyp": "^11.4.2", - "sass-graph": "^4.0.1", - "stdout-stream": "^1.4.0", - "true-case-path": "^2.2.1" - }, - "bin": { - "node-sass": "bin/node-sass" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/nopt": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz", @@ -4684,10 +4688,10 @@ "license": "MIT" }, "node_modules/tar": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz", - "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==", - "license": "ISC", + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz", + "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==", + "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", diff --git a/package.json b/package.json index 7d64dae..fa31c2b 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "autoprefixer": "^10.4.20", "cheerio": "^1.0.0-rc.12", "lodash": "^4.17.21", - "node-sass": "git+ssh://git@github.com/bigcommerce-labs/node-sass.git", + "@bigcommerce/node-sass": "10.0.0", "postcss": "^8.4.45", "recursive-readdir": "^2.2.3", "sass": "^1.58.0", diff --git a/test/ScssCompiler.js b/test/ScssCompiler.js index 6015468..3515d2a 100644 --- a/test/ScssCompiler.js +++ b/test/ScssCompiler.js @@ -2,7 +2,7 @@ const Code = require('@hapi/code'); const Os = require('os'); const Lab = require('@hapi/lab'); const sinon = require('sinon'); -const nodeSass = require('node-sass'); +const nodeSass = require('@bigcommerce/node-sass'); const ScssCompiler = require("../lib/ScssCompiler"); const themeSettingsMock = require('./mocks/settings.json');