sdc-build-wp 5.6.7 → 5.6.9
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.
- package/.phpcs.xml +1 -1
- package/lib/components/php.js +9 -8
- package/package.json +7 -7
package/.phpcs.xml
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
|
|
35
35
|
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie">
|
|
36
36
|
<properties>
|
|
37
|
-
<property name="checkFunctions" value="
|
|
37
|
+
<property name="checkFunctions" value="true" />
|
|
38
38
|
<property name="checkClosures" value="true" />
|
|
39
39
|
</properties>
|
|
40
40
|
</rule>
|
package/lib/components/php.js
CHANGED
|
@@ -81,22 +81,23 @@ export default class PHPComponent extends BaseComponent {
|
|
|
81
81
|
cwd: this.path.resolve(this.path.dirname(fileURLToPath(import.meta.url)), '../../')
|
|
82
82
|
}); // returns an error if any violations are found, so we can't rely on the try/catch as usual
|
|
83
83
|
} catch (error) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
// Filter out Time: and Memory: lines from error output
|
|
85
|
+
const filterLines = str => str
|
|
86
|
+
? str.split('\n').filter(line => !line.trim().startsWith('Time:') && !line.trim().startsWith('Memory:')).join('\n')
|
|
87
|
+
: str;
|
|
88
|
+
if (filterLines(error.stderr)?.length && error.stderr.includes('No fixable errors were found')) {
|
|
89
|
+
// No fixable errors were found
|
|
89
90
|
} else if (
|
|
90
|
-
error.stderr?.length ||
|
|
91
|
+
(filterLines(error.stderr)?.length && !error.stderr.trim().startsWith('Time:')) ||
|
|
91
92
|
(
|
|
92
|
-
error.stdout?.length &&
|
|
93
|
+
filterLines(error.stdout)?.length &&
|
|
93
94
|
(
|
|
94
95
|
error.stdout.startsWith('ERROR:') ||
|
|
95
96
|
error.stdout.includes('FAILED TO FIX')
|
|
96
97
|
)
|
|
97
98
|
)
|
|
98
99
|
) {
|
|
99
|
-
this.log(null, error.stderr?.length ? error.stderr : error.stdout);
|
|
100
|
+
this.log(null, filterLines(error.stderr)?.length ? filterLines(error.stderr) : filterLines(error.stdout));
|
|
100
101
|
this.log('error', `Failed linting ${entryLabel.replace(this.project.path, '')} - See above error.`);
|
|
101
102
|
return false;
|
|
102
103
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdc-build-wp",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.9",
|
|
4
4
|
"description": "Custom WordPress build process.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
"@mishieck/ink-titled-box": "^0.4.2",
|
|
30
30
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
31
31
|
"@stylistic/stylelint-plugin": "^5.0.1",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.57.
|
|
33
|
-
"@typescript-eslint/parser": "^8.57.
|
|
34
|
-
"@wordpress/scripts": "^31.
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
33
|
+
"@typescript-eslint/parser": "^8.57.2",
|
|
34
|
+
"@wordpress/scripts": "^31.7.0",
|
|
35
35
|
"ajv": "^8.18.0",
|
|
36
36
|
"autoprefixer": "^10.4.27",
|
|
37
37
|
"browser-sync": "^3.0.4",
|
|
38
38
|
"chokidar": "^5.0.0",
|
|
39
39
|
"esbuild": "^0.27.4",
|
|
40
|
-
"eslint": "^10.0
|
|
40
|
+
"eslint": "^10.1.0",
|
|
41
41
|
"ink": "^6.8.0",
|
|
42
42
|
"ink-spinner": "^5.0.0",
|
|
43
43
|
"postcss": "^8.5.8",
|
|
44
44
|
"postcss-scss": "^4.0.9",
|
|
45
|
-
"postcss-sort-media-queries": "^6.3.
|
|
45
|
+
"postcss-sort-media-queries": "^6.3.3",
|
|
46
46
|
"prettier": "^3.8.1",
|
|
47
47
|
"react": "^19.2.4",
|
|
48
48
|
"react-dom": "^19.2.4",
|
|
49
49
|
"sass": "^1.98.0",
|
|
50
50
|
"sharp": "^0.34.5",
|
|
51
|
-
"stylelint": "^17.
|
|
51
|
+
"stylelint": "^17.5.0",
|
|
52
52
|
"stylelint-use-logical": "^2.1.3",
|
|
53
53
|
"svgo": "^4.0.1",
|
|
54
54
|
"tail": "^2.2.6",
|