@bigcommerce/stencil-cli 7.3.4 → 7.4.1
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.
|
@@ -13,7 +13,7 @@ class UndefinedVariableFixer extends BaseFixer {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
getUndefinedVariableName(errorMessage) {
|
|
16
|
-
const match = errorMessage.match(/\$
|
|
16
|
+
const match = errorMessage.match(/\$[a-zA-Z_-]+/gi);
|
|
17
17
|
if (!match) {
|
|
18
18
|
throw new Error("Couldn't detemine undefined variable name!");
|
|
19
19
|
}
|
|
@@ -10,6 +10,7 @@ const dynamicComponentRegex = /\{\{\s*?dynamicComponent\s*(?:'|")([_|\-|a-zA-Z0-
|
|
|
10
10
|
const includeRegex = /{{2}>\s*([_|\-|a-zA-Z0-9/]+)[^{]*?}{2}/g;
|
|
11
11
|
const pathStringRegex = /^["'].+["']$/;
|
|
12
12
|
const packageMarker = 'external/';
|
|
13
|
+
const partialBlock = '@partial-block';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* indicates if a template source is a node modules dependency
|
|
@@ -169,7 +170,9 @@ function getTemplatePaths(templatesFolder, templates, options, callback) {
|
|
|
169
170
|
while (match !== null) {
|
|
170
171
|
[, partialPath] = match;
|
|
171
172
|
if (!templatePaths.includes(partialPath)) {
|
|
172
|
-
|
|
173
|
+
if (partialPath !== partialBlock) {
|
|
174
|
+
matches.push(partialPath);
|
|
175
|
+
}
|
|
173
176
|
}
|
|
174
177
|
match = partialRegex.exec(content);
|
|
175
178
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigcommerce/stencil-cli",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "CLI tool to run BigCommerce Stores locally for theme development.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=16.0.0 <19.0.0",
|
|
8
|
-
"npm": ">=8.0.0
|
|
8
|
+
"npm": ">=8.0.0"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . && prettier --check . --ignore-unknown",
|